December 14, 2019, 12:28:43 pm

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


5b. IWBasic Controls

Started by LarryMc, August 10, 2011, 08:49:45 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

Part B

IWBasic provides us with another command for creating controls, CONTROLEX.
Controls are created with the following command line:

Code Select
CONTROLEX parent, class, title, left, top, width, height, style_flags, exStyle_flags, id


parent,  title, left, top, width, height, style_flags, id

These parameters are exactly the same as described in  the CONTROL command discussion above.

exStyle_flags

These flags work exactly the same as the style_flags discussed previously.  The difference is that, while style_flags are control type specific, exStyle_flags are more global in nature.  These flags control such things as visibility and the type of border the control has.

class

This is a string that identifies the specific type of control being added.  To that extent it is doing what the type parameter does in the CONTROL command.

What the reader needs to understand is the control type constants are provided as a convenience to the user so that a class string doesn't have to be entered for each control.  That implies that the OS requires the class string.

________________________________

Coming Next: Pulling It Together
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library