bold menu items

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
sverson
Enthusiast
Enthusiast
Posts: 286
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

bold menu items

Post by sverson »

bold menu items

... for Menu/PopupMenu/ImageMenu/PopupImageMenu!*

#PB_MenuItem_Checked = 1
#PB_MenuItem_Bold = 2

SetMenuItemState(0,0,#PB_MenuItem_Bold)

:arrow: 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 

:wink: sverson
ehowington
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 12, 2009 3:06 pm

Re: bold menu items

Post by ehowington »

BIG BUMP on this thread fred um where is this ???????????????????
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: bold menu items

Post 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?
quidquid Latine dictum sit altum videtur
ehowington
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 12, 2009 3:06 pm

Re: bold menu items

Post 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.
BorisTheOld
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Apr 24, 2012 5:08 pm
Location: Ontario, Canada

Re: bold menu items

Post 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.
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
ehowington
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 12, 2009 3:06 pm

Re: bold menu items

Post 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.
Post Reply