BBC BASIC for Windows
Programming >> User Interface >> Menu Bar
http://bb4w.conforums.com/index.cgi?board=ui&action=display&num=1326217494

Menu Bar
Post by JB91 on Jan 10th, 2012, 4:44pm

In the BB4W Wiki it shows how to put images next to the options in a combo box. Is it possible to do this but with a menu bar instead of a combo box?

Josh.
Re: Menu Bar
Post by admin on Jan 10th, 2012, 5:27pm

on Jan 10th, 2012, 4:44pm, JB91 wrote:
In the BB4W Wiki it shows how to put images next to the options. Is it possible to do this but with a menu bar instead of a combo box?

You can put images next to menu items in drop-down menus, so quite probably you can do it in a Menu Bar too, but I've never tried.

For putting images alongside menu items check out the MENUITEMINFO structure here:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms647578.aspx

You'll need to put the bitmap handle(s) in the hbmpChecked and hbmpUnchecked members, and set the MIIM_CHECKMARKS flags in fMask.

Richard.