*
Warning * The format is completely revamped
Now it is just Include
xControl.ew
This will allow me to add new controls without each one requiring an include statement in the main file.
Function: LS = xControl( HSplitter, “”,
Parent, 0,
StartingY, 0,
0, 0,
GMID )
Creates a new horizontal splitter control and returns it's ID. The extra fields colored in red are not used in this control but needed for uniformity.
This control is used in conjunction with a Geometry object. One must be created beforehand to pass its GMID into parameter 9.
StartingY:
Vertical placement of the splitter on the parent control
GMID:
The ID of the Geometry object to be associated with the splitter
Note: The splitter will shape and resize itself, the only managed objects added to the Geometry object should be pane windows. Also after adding all pane windows, a call should be made to manage_now to update the screen properly.
Example:
main = create( Window, "", NULL, 0.25, 0.25, 0.5, 0.5, 0 ),
GMID = xControl( Geometry, "", main, 0, 0, 0, 0, 0, 0 ),
pane1 = create( Window, "", main, 0, 0, 0, 0, {WS_CHILD,WS_VISIBLE,WS_CLIPSIBLINGS} ),
hsplit = xControl( HSplitter, "", main, 0, 100, 0, 0, 0, GMID ),
pane2 = create( Window, "", main, 0, 0, 0, 0, {WS_CHILD,WS_VISIBLE,WS_CLIPSIBLINGS} )
manage( GMID, pane1, {0,0}, {0,0}, {1.0,0}, {hsplit,0} )
manage( GMID, pane2, {0,0}, {hsplit,0}, {1.0,0}, {1.0,0} )
manage_now( GMID )
Version 1.0
Initial
release
Enjoy!
Any
questions, comments, suggestions, are welcome: