• Welcome to PlanetSquires Forums.
 

Where is BS_RADIOBUTTON/CHECKBOX?

Started by Roger Garstang, June 25, 2004, 08:24:09 PM

Previous topic - Next topic

Roger Garstang

Can we not make the Auto option for Radio Buttons and Check Boxes the default and only choice.  I have some apps I manually set these values and don't want windows automatically setting them on clicks.

BS_PUSHLIKE also needs to be added to buttons, although if you take off the auto options of the others they can be made to have the same effect as a button that toggles, etc...whatever way you want to do it.  I usually made a toggle button with Control Add Button in DDT using the style- %BS_PUSHLIKE OR %BS_CHECKBOX.  There are also 3-State Checkboxes, although I haven't used them yet.

API list all these as styles:

' Button Control Styles
%BS_TEXT            = &H0&
%BS_PUSHBUTTON      = &H0&
%BS_DEFPUSHBUTTON   = &H1&
%BS_DEFAULT         = %BS_DEFPUSHBUTTON
%BS_CHECKBOX        = &H2&
%BS_AUTOCHECKBOX    = &H3&
%BS_RADIOBUTTON     = &H4&
%BS_3STATE          = &H5&
%BS_AUTO3STATE      = &H6&
%BS_GROUPBOX        = &H7&
%BS_USERBUTTON      = &H8&
%BS_AUTORADIOBUTTON = &H9&
%BS_OWNERDRAW       = &HB&
%BS_LEFTTEXT        = &H20&
%BS_ICON            = &H40&
%BS_BITMAP          = &H80&
%BS_LEFT            = &H100&
%BS_RIGHT           = &H200&
%BS_CENTER          = &H300&
%BS_TOP             = &H400&
%BS_BOTTOM          = &H800&
%BS_VCENTER         = &HC00&
%BS_PUSHLIKE        = &H00001000&
%BS_MULTILINE       = &H00002000&
%BS_NOTIFY          = &H00004000&
%BS_FLAT            = &H00008000&
%BS_RIGHTBUTTON     = %BS_LEFTTEXT  


You could even combine the two button types (Command/Image) and let us select icon or bitmap styles like I had suggested for the picture control before as well.