20 May 2021, 19:05 | #1 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
Menu strip colours
Hey folks,
Just starting to try and remember some of what I've forgotten for a lot of years regarding Amiga C programming. I've done a bunch of CLI stuff and its mostly coming back, but now I'm trying to dip my toe into Intuition. I have a screen which I create with SA_LikeWorkbench and a window I put on that screen. So far, so good everything looks like a clone of the WB screen in terms of look and feel. title bar of the screen is draggable, shows the title and is black text on white, just like WB. I've just tried to add a simple menu strip and colours are off. On workbench: no right click - title is black-on-white right click on window - menus appear and bar is still black-on-white pull down a menu - menu items appear black-on-white with a black border select an item - selected box is white-on-black On my screen: no right click - title is black-on-white right click on window - menus appear and bar is grey-on-black pull down a menu - menu items appear white-on-black with a grey border select an item - selected box is blue-on-white So it seems like the pens are somehow mixed up, but since its created like workbench, all the other colours (window borders, screen and window gadgets) looks perfectly fine. I tried messing with the pens in the IntuiText structure for the menu items and all that did was make each individual line look weird, the menu itself was still a black strip with grey menu text. Anyhoo, any suggestions appreciated. Is there some place where I can tell either the screen or the window "your menu strip should be these colours" ? Alan Last edited by alancfrancis; 20 May 2021 at 19:15. |
20 May 2021, 19:40 | #2 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
Lighbulb moment. The menus I am looking at "on workbench" are the workbench menus themselves. If I start, say, ed and fire up the menus from *its* window, it's just like mine - grey on black, blue on white highlight.
So my screen+window *is* behaving just like a window on the workbench screen. I have to say I prefer the black on white that workbench uses itself though. ah well. |
20 May 2021, 19:47 | #3 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
Lightbulb 2: This is why I ask questions on this board cause as soon as I think I've exhausted every option and just ask the board, I find an answer so the universe can continue making me look dumb :-)
WFLG_NEWLOOKMENUS. ftw. |
20 May 2021, 21:32 | #4 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
|
Thumbs up!
|
21 May 2021, 17:32 | #5 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
I switched over to using GadTools/NewMenu structures and it changed colours again. Still a white background, but now grey text instead of black :-). The Command-Keys are still in black so I know its not disabled, and the text is definitely the standard grey colour, rather than the "greyed out".
Ah well, good enough that I'll move on and keep going with this learning exercise. The GadTools/NewMenu menus are much clearer to setup. |
21 May 2021, 17:47 | #6 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
Quote:
The NewLookMenu flags have to be set accordingly. If you use GFLG_NEWLOOKMENUS you have to set GTNM_NewLookMenus to TRUE, too. If you don't set GFLG_NEWLOOKMENUS you should set GTNM_NewLookMenus to FALSE or omit it. |
|
21 May 2021, 21:33 | #7 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
|
21 May 2021, 21:35 | #8 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
I can't seem to find either of those constants in the NDK headers ?
|
21 May 2021, 21:37 | #9 | |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
Quote:
Aha! I found GTMN_NewLookMenus, I just blindly searched for your typo (facepalm for me) but not GFLG_NEWLOOKMENUS... unless you meant WFLG_NEWLOOKMENUS ? |
|
21 May 2021, 21:44 | #10 |
Registered User
Join Date: Jun 2020
Location: Scotland
Posts: 146
|
Bingo. Worked like a charm. Thanks @Thomas !
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strip Poker datadisks | mai | request.Old Rare Games | 39 | 21 November 2022 18:45 |
Strip Fighter screenshots | Solo Kazuki | HOL contributions | 11 | 24 December 2020 18:33 |
Strip Poker Live (CDTV) | bagpipes | request.Old Rare Games | 119 | 11 November 2017 19:49 |
Strip Poker Live | mai | HOL contributions | 13 | 24 August 2008 17:05 |
Strip Pot CD32!!! | Big-Byte | MarketPlace | 0 | 29 January 2005 19:00 |
|
|