OpenSubMenu() with image

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

OpenSubMenu() with image

Post 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?
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: OpenSubMenu() with image

Post 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. :?

Image
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Post 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.
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post 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
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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. ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply