Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Minuous on April 20, 2011, 02:35:22 PM

Title: OS4 pen issues
Post by: Minuous on April 20, 2011, 02:35:22 PM
Can anyone tell me what pen is used for the text of ghosted menu items under OS4? In my program (Saga) under OS4 the ghosted menu items are looking the same as the normal menu items :-)

Looking in screens.h I can see pens for everything else, but nothing like MENUDISABLEDTEXTPEN. Does anyone know why this omission, and what the workaround is? Thanks.
Title: Re: OS4 pen issues
Post by: Thomas on April 20, 2011, 02:54:30 PM
Try SA_LikeWorkbench,TRUE on your OpenScreenTags() call.
Title: Re: OS4 pen issues
Post by: Minuous on April 21, 2011, 03:15:35 AM
Yes. Surprisingly, this does seem to work. Thanks Thomas!
  (Of course, it isn't the ideal solution. MENUDISABLEDTEXTPEN should exist and then this kind of kludge wouldn't be necessary. Hopefully Hyperion will add this for OS4.2.)