Page 1 of 1
OpenSubMenu() with image
Posted: Wed Sep 24, 2008 8:55 am
by lexvictory
can an optional imageid parameter be added to OpenSubMenu(), like that of MenuItem()?
When using a popup menu with images I would like to add an image to the sub menu title. Unless I'm mistaken, this is currently not possible?
Re: OpenSubMenu() with image
Posted: Sun Jan 25, 2009 2:45 pm
by PB
+1
Just started to explore icons in menus and was surprised to see this not yet
supported. So, yeah, I'd like to see it added too. The big gap left by it makes
the menus look... ugly.

Posted: Sun Jan 25, 2009 6:44 pm
by LCD
[+1]
But how about this?
http://www.purebasic.fr/english/viewtopic.php?t=35859
|-D. Okay, no text there, but I like it.
Posted: Mon Jan 26, 2009 3:27 am
by PB
Thanks LCD, but I'd rather wait for a native solution, rather than use a DLL.
Come to think of it, I can probably force an icon using the Win32 API in the
meantime. Will have a play and see.
Posted: Mon Jan 26, 2009 3:58 am
by lexvictory
PB wrote:I can probably force an icon using the Win32 API in the meantime.
I think I remember reading a post from freak a while ago saying they're ownerdrawn...
Don't take my word for it though
Posted: Mon Jan 26, 2009 4:32 am
by PB
I just found (and updated) GreenGiant's code here:
http://www.purebasic.fr/english/viewtop ... 0&start=15
A native solution is still my wish, though.
