See Also: alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
ids is a sequence of ids to change
disttype is one of, or a list of ...
pValue, if used with the ...Most options, is the minimum position. When used with the other options it is the exact position to use. It can be a pixel value or an id value in a sequence.
Example
-- Align them all to fld3's left edge. alignControls({fld1,fld3,fld4,fld7}, w32LeftEdge, {fld3})-- Move these up to whatever among them is the topmost fld. alignControls({fld2,fld0,fld9,fld5}, w32TopMost, 0 )
-- Center fld9 with respect to the screen alignControls(fld9, {w32VertCentre,w32HorzCentre}, {Screen} )
See Also: addToBand, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
If flag is w32True, the control id is set to have CanFocus, otherwise it is set off. The default for controls is on.
id can be either a single control id or a list of ids in a sequence.
If id is a single control id, then the return value is a integer.
If id is a sequence of controls, then the return value is a sequence
containing one status flag per control referenced in id.
CanFocus means that when the control gets focus, and if its CanFocus property is off, then the focus is not set.
If any of the supplied ids are not managed by win32lib, no action is taken and the returned status for this id is -1.
Using w32GetValue as an atom or in a sequence will cause the corresponding id to be left alone: its current CanFocus property is simply returned.
Example:
-- disallows two controls from getting focus, and retrieving their current status. sequence asv asv = canFocus({fldName, fldAddress}, w32False)
See Also: addToBand, alignControls, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Example:
centerControl(CustDialog, Screen) centerControl(BtnX, CustDialog)
See Also: addToBand, alignControls, canFocus, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This is used to wipe a Window or Pixmap.
Example:
clearWindow( MyWindow ) clearWindow( MyPixmap )
See Also: addToBand, alignControls, canFocus, centerControl, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
desg Retrieves or changes the (extended) style(s) for a control
This function is more flexible than addStyle() and removeStyle().
id is the control being queried, and flags either the sum of style flags or a
sequence of them to be or'ed together.
Set exteded to w32True to operate on extended styles, and to w32False for regular styles.
action is any of:
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
pControl specifies either a single control id or a list of control ids
pPropId specifies a unique 'name' or number for the property.
pData is the data used to initialize the property. This value is also used
by resetUserProperty.
This is used to create a property or attribute of a control that is not standard. You can use this property however you like; the library doesn't use them and Windows doesn't know about them.. The most common usage is to store information for specific controls that are not normally tracked.
Example:
-- Create a property called 'OrigValue' for three controls. defineUserProperty({fldName, fldAddr, fldPhone}, "OrigValue", "")
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
pControl specifies the id of the control. This can be either a
single id, or a list of ids in a sequence.
pPropId specifies a
property defined by an earlier call to defineUserProperty.
Examples:
deleteUserProperty(fldX, "Animation") deleteUserProperty( {fldA, fldB, fldC}, "TimeOut")
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
When a control is destroyed, it releases its resources back to Windows. This also means that a parent control also destroys its child controls.
When the control being destroyed is a Window, it cannot be reopened. If you want to be able to reopen a window, use closeWindow() instead of destroy().
When this is called, but before the control is actually destroyed, the w32HDestroy event is triggered, enabling you to clean up things associated with this control. Or even prevent the control from being destroyed, by returning -1 from the event handler.
The following will destroy a pushbutton called MyButton.
-- destroy a pushbutton destroy( MyButton )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
ids is the set of controls to distribute. There must be at least two ids
in the sequence.
disttype is the type of distribution required. It can be one of...
Examples
-- Move these fields such that the horizontal gap between -- each is the same amount. In this case, fld1 and fld3 remain -- still while fld2 is centered between them. distributeControls( {fld1, fld2, fld3}, w32HorzGap, 0)-- Move these fields such that the horizontal gap between -- each is the same amount. In this case, only fld1 remains -- still while fld2 and fld3 are moved such that the distance -- between fld1 and fld3 is 200 pixels. distributeControls( {fld1, fld2, fld3}, w32HorzGap, 200)
-- Move these fields such that the horizontal gap between -- each is the same amount. In this case, only fld1 remains -- still while fld2 and fld3 are moved such that the distance -- between fld1 and fld3 is the width of fld4. distributeControls( {fld1, fld2, fld3}, w32HorzGap, {fld4} )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Each subsequence returned has the control id and the control's type, for
all the controls owned by id.
It returns an empty sequence if the id has no children.
For subclased controls, you get either the list of children created by the application if any,
the list of items if applicable, or a list of child handles (no attempt is made to guess their type or class).
Example
sequence children -- Get a list of all the controls owned by this window children = findChildren(myWin)-- Set the caption for each of the PushButtons. for i = 1 to length(children) do if find(children[i][2],{PushButton,DefPushButton}) then setText(children[i][1], sprintf("Button%d", i)) end if end for
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This can be used for TreeView items as well by using the syntax for id as { TV, TVItemId }
If the id has no parent, this function returns 0.
If the id is invalid, this function returns -1.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
The first subsequences is a list of all the child controls' ids.
The second subsequence is a list of their corresponding control type codes.
It returns an empty subsequences if the id has no children.
For subclassed controls, if the application didn't create children and they have no items,
a sequence containing a single handle list is returned.
Example
sequence children -- Get a list of all the controls owned by this window children = getChildren(myWin)-- Set the caption for each of the PushButtons. for i = 1 to length(children) do if find(children[2][i],{PushButton,DefPushButton}) then setText(children[1][i], sprintf("Button%d", i)) end if end for
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This routine handles relative positions similar to the create() routine
Example:
-- where does {0.50, 10} in MyWindow appear on the screen? sequence point-- get the screen position point = getClientPoint( MyWindow, 0.50, 10 )
-- display the size wPrintf( MyWindow, "The point {0.50,10} maps to {%d, %d on the screen"}, point )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Unlike the menu, toolbar and statusbar both occupy space in the window. To determine what part of the window's client area is not covered, use this function. This function can be used even if there is no toolbar or statusbar in the window.
For example, the generic demo has a MleText that needs to be resized every time the window is resized. It uses getClientRect to determine the metrics of the MleText.
Note that, for a TabItem "control", the client area is the whole area of the parent TabControl, including the tabs proper. Send the parent TabControl the TCM_ADJUSTRECT message to convert work area to bounding rectangle and vice versa.
-- color the unoccupied portion of the window red sequence rect----------------------------------------------------------------------------- find out what portion of the window is available rect = getClientRect( TheWindow )
-- draw a filled rectangle setPenColor( TheWindow, Red ) drawRectangle( TheWindow, w32True, rect[1], rect[2], rect[1]+rect[3], rect[2]+rect[4] )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
The returns the pixel positions of the top-left corner, relative to the screen and the width and height of the client area. For Screen, Printer and Pixmap the top-left is always 0,0
Example:
-- where is the button located? sequence extent-- get the extent of the button extent = getClientSize( MyButton )
-- display the position wPrintf( MyWindow, "MyButton is at %d,%d and width=%d, height=%d", extent )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id is the id of a control that you want information from.
pFields is a list of fields whose value can be requested.
Note that you can index the entries in the returned sequence for CONTROLINFO_font using the following index values:
Note that you can index the entries in the returned sequence for CONTROLINFO_pen using the following index values:
Example:
sequence lValues lValues = getControlInfo(myWin, {CONTROLINFO_handle, CONTROLINFO_owner, CONTROLINFO_type })
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Example:
-- how large is TheButton? sequence size-- get the size of TheButton size = getCtlSize( TheButton )
-- display the size wPrintf( MyWindow, "TheButton is %d by %d"}, size )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Example:
-- Where is TheButton? sequence posn-- get the position of TheButton posn = getPosition( TheButton )
-- display the position wPrintf( MyWindow, "TheButton is at %d, %d}, posn )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
The function returns the pixel positions of the top-left corner and the bottom right corner. For Screen, Printer and bitmaps the top-left is always 0,0 and thus right is the width and bottom is the height.
For invisible controls, including Menus not dropping down, or menu items whose parent doesn't display, {0,0,0,0} is returned.
Example:
-- where is the window located? sequence extent-- get the extent of the window extent = getRect( MyWindow )
-- display the position wPrintf( MyWindow, "MyWindow is located at %d,%d }, extent[1 .. 2] )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This is used by event handlers to find out which control was active when the event was invoked.
Example
procedure Clicker() integer lSelflSelf = getSelf() if lSelf = btnOne then ... else ... end if end procedure
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
pControl specifies the id of the control. This can be either a
single id, or a list of ids in a sequence.
pPropId specifies a
property defined by an early call to defineUserProperty.
The data is returned as the first, and only, element in a sequence.
If an empty sequence is returned, it means that the specified
property has not been defined for this control.
If id is a sequence, then the returned sequence contains two
subsequences. The first is a list of the returned property values and
the second is a list of w32True/w32False values; one per control listed
in id. A w32True indicates that the respective control has this property
set and w32False indicates that it has not been set.
Examples:
sequence lValues lValues = getUserProperty(fldX, "Animation") if length(lValues) = 0 then -- No value, so use a default. lValues = {20} end if -- NB: The property value is always in element [1]! doAnimation( lValues[1] )
This next example shows how to get the property values from a list of controls
sequence lValues sequence lFldslFlds = {fldA, fldB, fldC} lValues = getUserProperty( lFlds, "TimeOut") for i = 1 to length(lValues) do if lValues[2][i] = w32False then -- Provide a default value then. lValues[1][i] = 5 end if -- Process the property value which is in lValues[1][i] doSomethingClever( lFlds[i], lValues[1][i]) end for
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id is the id of a window that you want information from.
pFields is a list of fields whose value can be requested.
Example:
sequence lValues lValues = getWindowInfo(myWin, {WINDOWINFO_WLeft, WINDOWINFO_WTop, WINDOWINFO_WindowStatus }) printf(o, "Window is at %d, %d and is %s", {lValues[1], lValues[2], w32iff(lValues[3], "active", "inactive")})
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id is either a menu (item) id, a TabItem id, or a pair {parent id,item id}, where the parent id is the one of a ListView or TreeView control.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
The parent may be either a Menu, TabControl, ListView or TreeView. Otherwise, an invalid id of -1 is returned. If the parent is a TreeView, the index must have the form {parent node,index}, where parent node is the TreeView item id of the parent node of the sought after item.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This routine applies to any control of the LIST or COMBO family (DropDownList, ComboBox, ListBox, SimpleCombo, ...), and to ComboBoxEx, as well as to Menus and Popups. 0 is returned otherwise.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Note: A TabItem is always enabled. Example:
-- is TheButton enabled? integer flagflag = isEnabled( TheButton )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Example:
-- Restore a maximized window? if isMaximized( myWindow ) then showWindow( myWindow, SW_RESTORE) end if
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Example:
-- Restore a minimized window? if isMinimized( myWindow ) then showWindow( myWindow, SW_RESTORE) end if
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This is used for hit testing, to determine if a point lies on a control.
Example:
-- check if screen point {10,10} lies in MyWindow if isScreenPointIn( MyWindow, 10, 10 ) then -- point is in MyWindow end if
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Example:
if isTopLevelWindow(xx) then moveWindow( . . . ) end if
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Note: A TabItem is always visible.
Example:
-- is TheButton visible? integer flagflag = isVisible( TheButton )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id can either be a control's id value or take the form {hWnd}.
Example:
atom hwnd_MsgWindow hwnd_MsgWindow = getHandle(MsgWindow) . . . -- Using a control id makeFront( GroupX ) -- Using a hWnd makeFront( {hwnd_MsgWindow} )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
ztype can be one of HWND_TOP, HWND_BOTTOM, HWND_TOPMOST or HWND_NOTOPMOST, or another control id. In the latter case, id will appear in front of ztype.
Example:
-- change the order of this window. moveZOrder( msgWindow, HWND_TOPMOST)-- move id in front of id2 moveZOrder( id, id2)
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
The id is either a control id, a two-element sequence containing {control id, focus id}.
-There is a difference between this and openWindow(..., Modal).
Here's some examples....
while length(filename) = 0 do openWindow(myFileDialog, Modal) end forand
while length(filename) = 0 do openDialog(myFileDialog) end for
In the first snippet, this would start a very tight loop in which the user could not enter data. This is because the openWindow() would execute and not wait for the user to enter any data into the new window before executing the while test again. Whereas the openDialog() routine opens a modal window then waits for that window to close before executing the line after the openDialog() statement. During this time, any event handlers set up for the dialog window would still fire correctly.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
window is either a control id, a two-element sequence containing {control id, focus id}, or the name of a Window control.
If window is a Window then the style flag is one of the following:
The openWindow function will trigger an w32HOpen event before it is opened
and a w32HActivate event after it is opened.
If the w32HOpen event calls returnValue(-1), the window is not opened.
It it possible to specify the control that will get the initial focus when the window opens. To do this, the window parameter must be specified in the form {window_id, focus_id}. If the focus_id is zero, then the first Edit type control is given focus. If there are no edit boxes, then the first button type control is given focus. If you don't specify the initial focus control, then the control that last had focus in the window is used.
Example:
-- Open the Login window, giving focus to the User ID field. openWindow({formLogin txtUserId}, Normal)-- Open the Messages window. openWindow("Message List", Normal)
-- Open an input form openWindow(vPromptCust, {"Name","<unknown>"} )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
The coordinates x and y are relative to the parent window of the popup menu. If you are trapping the mouse position relative to some other control, you will need to pass both the id of the popup menu and the reference control for the coordiniates passed. This is done by passing the first parameter as a 2-element sequence {popup, controlId}.
Example: Hard coded location relative to parent window.
-- create a popup for MyWindow constant MyPopup = create( Popup, "", MyWindow, 0, 0, 0, 0, 0 )
-- add four items into it constant Item1 = create( MenuItem, "Item 1", MyPopup, 0, 0, 0, 0, 0 ), Item2 = create( MenuItem, "Item 2", MyPopup, 0, 0, 0, 0, 0 ), Item3 = create( MenuItem, "Item 3", MyPopup, 0, 0, 0, 0, 0 ), Item4 = create( MenuItem, "Item 4", MyPopup, 0, 0, 0, 0, 0 )
-- popup the menu at {10,10} in MyWindow popup( MyPopup, 10, 10 )
Example: Location relative to some other control.
-------------------------------- procedure Mouse_TV(integer self, integer event, sequence parms) -------------------------------- integer indexif parms[1] = WM_RBUTTONDOWN then -- The coordinates are relative to self and -- not the parent window. popup({TVPopup, self}, parms[2], parms[3] ) end if
end procedure
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
If device is an atom, the request concrns the screen. If it is a sequence, it concerns a printer.
If the sequence is empty, the current printer will be queried, otherwise the printer with the supplied name will.
Look up this list
for recognised constants which can be passes as attribute, or the
Microsoft documentation for the GetDeviceCaps() API.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
ids can be either a single control id or a sequence of ids.
Example:
refreshWindow({btn1, btn2})
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Any control or Window can have any number of hotkeys registered.
id is the control/window id returned by create()
caption is either a single keycode, or a string containing a '&' character.
If using a keycode, you must use the keycode names in w32Keys.e. If using a string,
the uppercase version of the character following the '&' is used. Note that this
is happens automatically when you create() a control with some caption text. Also,
the default pushbutton, if any, is automatically registered with VK_RETURN.
Typical use of this procedure is when a control is created without a caption.
example:
-- Attached the '+' keys to the addBtn control. registerHotKey( addBtn, VK_ADD) registerHotKey( addBtn, VK_OEM_PLUS)
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
pControl specifies either a single control id or a list of control ids
pPropId specifies a property defined by an early call to defineUserProperty.
The property is reset to the initial value originally supplied
when defined with defineUserProperty.
Example:
-- Set the original values back to their initial value. resetUserProperty({fldName,fldAddr, fldPhone}, "OrigValue")
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id is the target control. The procedure will not affect buttons, menus and tab controls.
flag is either w32False or w32True. If w32False, bkData is a color specification,
and the call is equivalent to setWinbackColor(/i id, bkData).
Otherwise, bkData is either a bitmap handle or a three element sequence.
In the former case, the bitmap is tiled to form the background of the window.
In the latter case, a hatch pattern is being specified as
{style, background color, line color}.
The style parameter is any of the following:
-- Set the window background color to bright white setBackground( MyWindow, w32False, BrightWhite ) -- Set the background to vertical yellow and cyan stripes. setBackground( {ctrl1 ctrl2, ctrl3}, w32True, {HatchVert, Yellow, Cyan})
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
The client area is the area used by the application. It excludes toolbar,
statusbar, menu area, etc...
After using this routine, the window will be larger than the dimensions
specified here. Use getRect() to retrive to total window area.
Example
--Set the client area to exactly 300 by 200 pixels setClientRect(myWindow, 300, 200)----------------------------
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Example
setCtlPosition( myBtn, 100, 200)
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
If either Width or Height has the value w32SameSize then the dimension is unchanged.
Example:
-- size Button1 to 60 pixels wide by 32 pixels high setCtlSize( Button1, 60, 32 ) -- size Button2 to 60 pixels wide, leaving the height unchanged. setCtlSize( Button2, 60, w32SameSize ) -- size Button3 to 25 pixels high, leaving the width unchanged. setCtlSize( Button3, w32SameSize, 25 )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id is the target control.
bkData is the new color to use.
The procedure will not affect buttons, menus and tab controls.
Example:
setDisableBg( myCtrl, Cyan)
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id can be a sequence of control ids. Use the MF_ENABLED value in flag to enable a menu or menu item, and anything else to disable it. For other controls, a value of 0 disables and any other enables.
Example:
-- disable TheButton setEnable( TheButton, w32False ) -- Disable lists one and two. setEnable( {List1, List2}, w32False ) -- Enable lists three and four. setEnable( {List3, List4}, w32True )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id is a control id.
If Flag is negative (eg. -1) then this routine just returns the current
policy value. If it is zero it sets the policy that the window's background
is automatically cleared to the default color whenever it needs erasing. If
it is positive (eg. 1) then the application must take responsibility of
erasing the background during a Paint event.
Example:
integer oldval oldval = setErasePolicy( TickerWin, 1)
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This will cause the window or control that currently has focus to lose it.
The window or control losing focus will get an LostFocus event, and the window or control that is getting focus will get an GotFocus event.
Controls that are not visible or not enabled, will never receive focus. Neither will the controls whose ability to get focus was disabled using canFocus(). If you try to, nothing will actually happen.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
If the mouse stays still over a control that has tooltip text associated with it, a small window displaying the tooltip text will appear.
Any control that can get mouse events can have tooltips associated with it, although it tends to work best with PictureButtons, typically in the ToolBar.
Setting the text to "" effectively removes the tooltip.
Note: When setting tooltips for multipanelled StatusBar controls, you need to specify which panel the tip applies to. You do this by setting the control parameter as a sequence in the form {id, panel} where id is the StatusBar control and panel is the panel number.
It is possible to dynamically set the text of a tooltip so that each time the control needs to display a tip, it first calls a routine of your own that must supply the text to display. To do this, set the text parameter to the routine_id of your function. Your function will receive two parameters: ( id, width ) where id is the control that needs a tip, and width is the width of the tooltip box that will be used (in pixels). Your function must return a sequence. That sequence can simply be the tip text, or a 2-element sequence in the form { tiptext, newwidth }.
Example:
-- set hint for CloseButton setHint( CloseButton, "Closes the window" )function gettip( integer id, integer width) sequence newtext sequence AccountRecord
AccountRecord = getAccountFromName(getText(id)) if length(AccountRecord) > 0 then newtext = sprintf("Account %d has a balance of %12.2f", {AccountRecord[fAcctNo], AccountRecord[fCurBal]}) else newtext = "No account found for this name." end if return newtext end function setHint( txtAccountName, routine_id("gettip") )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This is identical to setHint() except that you can use extra flags when creating the tooltip for a control. These flags are those whose names starts with TTF_.
Example:
-- set hint for CloseButton setHintEx( CloseButton, "Closes the window", TTF_CENTERTIP )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Pass a negative value to just return the current maximum width.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
If newVal is -1, the returned value is the default one for the actual class of id; If it is any other integer, this integer is returned; If it is an empty sequence, the current return policy remains unchanged; Otherwise, the first element must be a positive integer, the routine_id of a function. The function is called with the parameters of the message, and its returned value is returned to Windows. The returned values are either one or more DLGC_ flags or'ed together, or -1 to revert to the defaults for the control's class.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
When id is a menu or menu item, index is a sequence {position_type,position_value,caption}:
When id references a TabItem, index is the new 1-based index it is suppose to have in its new parent. Note that it is unsafe to change the parent of a subclassed TabControl or TabItem, since Windows doesn't keep track of the controls that display when some tab item is selected.
When id is a sequence {TV_id,TVitem_id}, index is a pair {new TVitem_id of parent, position}. The position is either a 1-based one to insert before, or any of:
When id is a sequence and id[1] is a ListView, id[2] is an item id if id has more elements, or a 1-based position otherwise. Then, index is the position at which to insert in the target ListView.
Otherwise, index is {x,y}, the new position of the control, and the control id gets focus.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
YesNo is w32True to set it to read-only, and w32False to allow keystrokes.
Example:
-- the following prevents keyboard input to myEdit (paste still works) setReadOnly( myEdit, w32True)
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Flag is either w32True to enable Win32Lib to automatically take care of moving controls around relative to the height of the ReBar control, w32False to disable this facility, or w32GetValue to get the current status..
The current value for this facility is returned. Initially this facility is disabled.
Example:
integer CurVal -- Enable automatic handling of rebar height changes. CurVal = setReBarAutoSizing( w32True )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
control is moved to x, y, and sized to cx, cy. If the repaint flag is set, the window is repainted.
To find the current size and position of control, use getRect.
Example:
-- move Button1 to 20x20 sequence size-- get the current size size = getCtlSize( Button1 )
-- change the size and repaint setRect( Button1, 20, 20, size[1], size[2], w32True )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
pID must refer to a status bar control.
pPartInfo is a list of panel size specifiers for each
subfield (a.k.a. panel) in the statusbar.
Each value in this list can be expressed in one of four
ways:
You can use setText() and getText() to write and read these panels.
Example:
-- This specifies 6 panels. -- The first one's rightedge is at pixel 55. -- The second is 100 pixels wide. -- The third is 10% of the window width. -- The 4th is 20 pixels wide. -- The 5th is 10 pixels in from the window's RHS. -- The last one extends to the window's edge. setSubFields(SB, {55, {100}, 0.10, {20},-10,-1})
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
If image is an integer, it is an index into the common image list, as returned by addIcon() or addDIB(). If it is a sequence, it is a filename string possibly followed by a comma and the litteral representation of the icon index. The bitmap or icon will be loaded into the common image list. If image is "", then no attempt to set the image is made. If image is 0, there will be no image associated with id. If id is not a TabItem, -1 is returned; otherwise, the previous image index is returned (0 for no image).
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id is the Id of a control that contains other controls. Usually a Window,
Group, or TabItem.
The flds parameter specifies a list of control ids. The order of the ids
is the new order of tabbing. Any control that is not in this list is
ignored by the tabbing process.
Passing an atom in flds will only return the current tabbing order sequence. Example:
sequence OldFlds OldFlds = setTabStops(MainWin, {CustName, CustAddr, Telephone, OKBtn, CancelBtn})
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
pControl specifies either a single control id or a list of control ids
PropId specifies a property defined by an early call to defineUserProperty
Data is any data you wish to store in that property.
Note: If the property named in PropId hasn't been defined yet for id, this routine will automatically define it, using Data as the default value for it.
Example:
-- Set the original values for these fields. setUserProperty(fldName, "OrigValue", lRecord[cName]) setUserProperty(fldAddr, "OrigValue", lRecord[cAddr]) setUserProperty(fldPhone, "OrigValue", lRecord[cPhone])
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
id can also be a sequence of control ids.
Example:
-- make TheButton invisible setVisible( TheButton, w32False ) -- Hide lists one and two. setVisible( {List1, List2}, w32False ) -- Show lists three and four. setVisible( {List3, List4}, w32True )
Note: If object is a Window being made visible, it will trigger an Open event. However, if it is a Window being made invisible, it will not trigger any event. This should probably be corrected.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
This is used to change the background color of a window or control.
id can be a single control id or a list of ids.
Color can either be an atom with a rgb value or a three-element sequence
formated as {red, green, blue} values (0-255).
You can also use getSysColor to get a default system color.
This will trigger an Paint event.
Note: this will not affect menus, tab controls, buttons and toolbars.
Example:
-- Set the window background color to bright white setWindowBackColor( MyWindow, BrightWhite ) -- Set a list's background color to salmon pink setWindowBackColor( List1, {255, 128, 128} ) -- Set an edit field to look like a button color. setWindowBackColor( Edit1, getSysColor(COLOR_BTNFACE) ) -- Set a group of controls setWindowBackColor( {ctl1, ctl2, ctl3}, Cyan)
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowRect, showWindow, sizeControls, w32ColorNames, w32ColorValues
Rect is a sequence containing the { left, top, right, bottom } new coordinates of the control.
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, showWindow, sizeControls, w32ColorNames, w32ColorValues
window is either a control id or the name of a Window control.
The style flag is one of those in this list.
Example:
showWindow(formErrors, SW_HIDE) showWindow("Message List", SW_RESTORE)
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, sizeControls, w32ColorNames, w32ColorValues
ids is a sequence of ids to change, or a single id.
sizetype is one of, or a list of ...
pValue can be a pixel value or an id value in a sequence.
When using the ..est values for disttype, the ..est value is computed from both
pValue and the supplied id(s).
Example
sizeControls({fld1,fld3,fld4,fld7}, w32Widest, 200) sizeControls({fld2,fld0,fld9,fld5}, w32Tallest, {lblXYZ} ) -- fld3 and fld2 to the same dimensions as btnOne sizeControls({fld3,fld2}, {w32Height,w32Width}, {btnOne} )
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, w32ColorNames, w32ColorValues
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorValues
See Also: addToBand, alignControls, canFocus, centerControl, clearWindow, controlStyle, defineUserProperty, deleteUserProperty, destroy, distributeControls, findChildren, findParent, findParentWindow, getChildren, getClientPoint, getClientRect, getClientSize, getControlInfo, getCtlSize, getFocus, getHint, getParent, getPosition, getRect, getSelf, getUserProperty, getWindowInfo, getWindowRect, idToIndex, indexToId, isDropped, isEnabled, isMaximized, isMinimized, isScreenPointIn, isTopLevelWindow, isVisible, makeFront, moveZOrder, openDialog, openWindow, popup, queryDevice, refreshWindow, registerHotKey, resetUserProperty, setBackground, setClientRect, setCtlPosition, setCtlSize, setDisableBg, setEnable, setErasePolicy, setFocus, setHint, setHintEx, setHintWidth, setKbdInput, setParent, setReadOnly, setReBarAutoSizing, setRect, setSubFields, setTabImage, setTabStops, setUserProperty, setVisible, setWindowBackColor, setWindowRect, showWindow, sizeControls, w32ColorNames