Date: 02-16-2022
Return to Index
created by gbSnippets
'Covers PowerBASIC controls: Button, Option, Checkbox, Check3State, Frame, ImgButton
'In Windows, the button class is used to create not only what a user normally thinks of as
'a push button, but it is also used to create the checkbox, option (radio), and group (frame)
'controls. A button can also include an image. The type of button that is visible is controlled
'by the various button style options.
'Commonly Used Styles:
%BS_PUSHBUTTON 'Push button that posts a %WM_COMMAND when selected
%BS_DEFPUSHBUTTON '%BS_PUSHBUTTON with heavy black border. Enter also selects.
%BS_AUTO3STATE 'button check box, except that the box changes its state
%BS_AUTOCHECKBOX 'auto toggle between checkd/unchecked
%BS_AUTORADIOBUTTON 'checked radio button, sets all button in same group to unchecked
'Special Styles
%BS_GROUPBOX 'Frame: creates a rectangle in which other controls can be grouped
%BS_OWNERDRAW 'Owner-drawn button. %WM_MEASUREITEM when created, %WM_DRAWITEM when changed
%BS_SplitButton 'Pushbutton plus down arrow with menu
%BS_CommandLink 'Green arrow pointing to text (2 fonts sizes of text)
'MSDN: button control home page
http://msdn.microsoft.com/en-us/library/bb775943%28VS.85%29.aspx
'gbs_00386
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm