Page 1 of 1
bold menu items
Posted: Wed Jun 25, 2008 1:42 pm
by sverson
bold menu items
... for Menu/PopupMenu/ImageMenu/PopupImageMenu!*
#PB_MenuItem_Checked = 1
#PB_MenuItem_Bold = 2
SetMenuItemState(0,0,
#PB_MenuItem_Bold)
http://www.purebasic.fr/english/viewtop ... 461#249461
*the following code only works on non image menus
Code: Select all
Procedure.l SetMenuItemBold(MenuID.l,MenuItemPos.l)
#MIIM_STATE=1
#MFS_DEFAULT=4096
Protected mib.MENUITEMINFO
mib\cbSize=SizeOf(mib)
mib\fMask=#MIIM_STATE
mib\fState=#MFS_DEFAULT
SetMenuItemInfo_(MenuID,MenuItemPos,#False,mib)
EndProcedure

sverson
Re: bold menu items
Posted: Fri Sep 27, 2013 2:51 pm
by ehowington
BIG BUMP on this thread fred um where is this ???????????????????
Re: bold menu items
Posted: Fri Sep 27, 2013 3:23 pm
by freak
ehowington wrote:BIG BUMP on this thread fred um where is this ???????????????????
Not yet implemented!!!!!!!!!!!!!!!!!!!111oneoneone
Where else did you think it is?
Re: bold menu items
Posted: Fri Sep 27, 2013 4:40 pm
by ehowington
Well makes a valid point with this.
Also while I'm at it there needs to be better ability's to color borders for things like frames for gadgets strings frames buttons and many other gadgets in general having better color control of all aspects of a gadget not just the background or text but frames even frame width? Along with changing those extra aspects.
And much better networking.
Re: bold menu items
Posted: Fri Sep 27, 2013 5:42 pm
by BorisTheOld
ehowington wrote:....there needs to be better ability's to color borders for things like frames for gadgets strings frames buttons and many other gadgets......
That's why we're slowly replacing standard PB gadgets with our own versions, based on the Canvas gadget. And it helps that we're writing all our code using custom classes.
We started down this road because we needed Focus and LostFocus events for Buttons. We then discovered that wrapping each PB gadget in a class would allow us to add auto-sizing to our code. So I'm now on a mission to convert most of PB's gadgets to custom controls -- all based on the Canvas gadget.
This allows us to write fully-featured cross-platform apps, without needing to use any OS API features.
Re: bold menu items
Posted: Fri Oct 11, 2013 9:17 pm
by ehowington
BorisTheOld wrote:ehowington wrote:....there needs to be better ability's to color borders for things like frames for gadgets strings frames buttons and many other gadgets......
That's why we're slowly replacing standard PB gadgets with our own versions, based on the Canvas gadget. And it helps that we're writing all our code using custom classes.
We started down this road because we needed Focus and LostFocus events for Buttons. We then discovered that wrapping each PB gadget in a class would allow us to add auto-sizing to our code. So I'm now on a mission to convert most of PB's gadgets to custom controls -- all based on the Canvas gadget.
This allows us to write fully-featured cross-platform apps, without needing to use any OS API features.
Boris I would like to discuss this further with you and see if possible what your working on here if your up to that perhaps you can help me with some controls aka gadgets that i would like to implement that are just not there.