If flag is w32True, controls of type are set to have Auto-Selection, otherwise they do not have Auto-Selection behaviour by default when created.
type can be either a single control type or a list of types in a sequence.
Auto-selection means that when the edit control gets focus, all its contents is selected automatically for you.
Example:
-- Set the default for EditText fields. classAutoSelect(EditText, w32True)
See Also: classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
class is the type of control whose defaults you want to change.
pData is a sequence that contains zero or more sub-sequences. Each
sub-sequence must have two elements, the first is the type of flag being
changed, and the other is the new value for the flag. The flag value can
be either an atom with all the flags or'd, or a sequence of individual
flags.
The types of flags that can be changed are:
Note, if pData is an empty sequence, the current flags are returned. example:
sequence oldFlags -- Make LText initially hidden and have a border when displayed. oldFlags = classDefaults(LText, { {CCflags, {WS_CHILD, ES_LEFT}}, {CCexflags, WS_EX_CLIENTEDGE} }) -- Change the default class flags for windows. oldFlags = classDefaults(Window, { {CCwinstyle, {CS_HREDRAW,CS_DBLCLKS}} })
See Also: classAutoSelect, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
xy is a sequence in the format { X, Y} which specifies a point in the control id1. This value is transformed so that it is relative to the control id2.
Example
sequence mXY -- Find where the point 2,-4 relative to the editbox is -- relative to the label. mXY = clientToClient(MyEditBox, MyLabelText, {2, -4 })
See Also: classAutoSelect, classDefaults, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Example
sequence sPosn -- Find the screen position of the window's top left corner. sPosn = ClientToScreen(myWindow, 0, 0) printf(o, "Window is at %d, %d", {sPosn[1], sPosn[2]})
See Also: classAutoSelect, classDefaults, clientToClient, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
This is used internally by create() and a number of other routines to convert things like %values to pixels.
Each dimension can be expressed as either...
a) an integer >= 0, in which case it is not touched.
eg. 50 (= 50 pixels)
b) an atom in the range > 0 and < 1, which is taken to be a %
of the control's parent dimension.
eg. 0.50 (= 50% of parent's size)
c) The constant w32Edge which signifies the parent's extreme
client edge for the dimension. That is, either the rightmost or
bottom most edge, as appropriate.
d) a sequence of two elements, the first as in (b) or (c) above, and
the other a pixel offset. The offset is added after converting.
eg. {0.50, -3} ( = 50% of parent size less 3 pixels)
eq (w32Edge, -10} ( = right/bottom pixel less 10 pixels)
e) a sequence of three elements, the first two as in (d), and
the other a two-element sequence containing the minimum and
maximum allowable values. These can be a percentage or a
pixel amount.
eg. {0.50, -3, {0.2, 300}} ( = 50% of parent size less
3 pixels, and a minimum of 20 pixels and a
maximum of 300 pixels)
Example:
sequence BBox BBox = convPctToPixels( myEditBox, 0.30, {w32Edge,-40}, {0.1,4}, 35)
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
ClassName can be zero or a string containing the registered
classname of the window you are looking for.
WindowTitle can be zero or a string containing the sought after
window's caption text.
Note: You must supply at least one non-zero parameter.
Example
sequence h h = findWindow(0, "Super Database") if equal(h, {0,0}) then -- not found else if h[1] > 0 then -- A control in my running app else -- A window belonging to another app end if end if
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
You can use this to find out if the application is currently the active one.
Example:
integer ActiveID ActiveID = getActiveWindow() if ActiveID = 0 then -- No window for this app is active else -- I have an active window. end if
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Example
sequence lName lName = getClassName( fld1 )
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
This aborts the application if the specified id is invalid.
This can also return the handle of a treeview item by using the syntax {tv, tvitem}
Example
atom hWnd, hTV hWnd = getHandle(myWindow) hTV = getHandle( {myTreeView, Itemx} )
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
This function is almost the same as getHandle except that it does not
validate the controlID value supplied to it, and it cannot be used
to get the handle of a Treeview item.
You would use this function if you already knew that the controlID was
valid and you needed a faster routine than getHandle.
Example
atom hWnd hWnd = getHWND(myWindow)
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
If the supplied hWnd is invalid or not belonging to a control created by win32lib, this function will return zero.
Note 1 this can be used to find a TreeView Item's Id from it's handle by using the syntax: id = getId( {TV, hTVI} )
Note 2 if hWnd is the special value w32GetMainWindow, it will return the Id of the main window as used in the MainWin() routine. This is useful if you are writing an add-on library to this one.
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Also see: setIDName and newUIObj
A return of "" means that the controlID was not valid.
A return of 0 means that the controlID has no name.
Example
sequence name name = getIdName(myWindow)
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Example:
if getKeyState( VK_NUMPAD0) then cmd = kStop elsif getKeyState( VK_NUMPAD2) then cmd = kDown elsif getKeyState( VK_NUMPAD4) then cmd = kLeft elsif getKeyState( VK_NUMPAD6) then cmd = kRight elsif getKeyState( VK_NUMPAD8) then cmd = kUp else cmd = 0 end if processCmd(cmd)
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Example
win = getMainWindow()
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Also see: setIdName, getIdName and newUIObj
A return of zero indicates that the name was not found.
If more than one control has the same name, the result is
still returned but it may be any of those controls. In this
case it might be better to use getNameIdInContext().
Example
integer id id = getNameId("Prime Window")
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Also see: setIdName, getNameId, getIdName and newUIObj
A return of zero indicates that the name was not found.
Example
integer id id = getNameIdInContext("AcceptButton", CustomerWindow)
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
The system colors in Windows are:
Example:
-- Set the window to the button color setWindowBackColor( MyWindow, getSysColor( COLOR_BTNFACE ) )
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Note that Code can be an atom for single requests or a sequence of
atoms for multiple requests in one call.
The codes and their return values are...
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Example:
sequence lUser lUser = getUserName()
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
WinVer return value can be one of ...
Example
sequence winver winver = getWinVersion()
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
iconfile is the name of an icon file. This can be a ICO, EXE, or DLL file. However, this will only fetch the first icon in that file. Some icon files can contain multiple icons. To use one of the other icons in a multi-icon file, you need to use the syntax {filename, icon#}. The icon# is the number of the icon to use. The first icon is 1, the second is 2, etc...
Example:
-- get the icon from a file hIcon = loadIconFromFile("euphoria.ico" )-- get the 3rd icon from a file hIcon = loadIconFromFile({"applib.ico", 3} )
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Use this to activate or deactivate the current tooltip control, or to just get the id of the current tooltip control.
Set pAction to 1 to activate tooltips or 0 to deactivate them.
Any other value has no effect.
In all cases, the id of the current tooltip control is returned.
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
Example
sequence cPosn, mXY -- Find where the mouse is relative to the window. mYX = getPointerPos() cPosn = ScreenToClient(myWindow, mXY[1], mXY[2]) printf(o, "Mouse is at %d, %d", {cPosn[1], cPosn[2]})
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
This needs to be run before the first Window is created in your application. The initial value is Win32Lib AppWindow
A non-zero return code is actually the Windows hWnd value for the other instance of the application.
Example
if setAppName("Super Database") != 0 then warnErr("Application is already running") end if
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
By default, this is set to w32False. Which means that any '&' in label captions
is ignored as far as setting focus to a subsequently defined input field.
If you set this to w32True then the '&' notation will cause focus to move to
the next input field defined after the label.
Example:
integer lPrevFlag . . . -- Make labels focus on its input field. lPrevFlag = setAutoFocusLabels(w32True) -- The '&N' in the caption means that Alt-N will -- set focus to the next input field. lblX = create(LText, "&Name", Win, 5, 5, 40, 25, 0) fldX = create(Editbox, "", Win, 5, 30, 120, 25, 0) -- Set the flag back to whatever it was. lPrevFlag = setAutoFocusLabels(lPrevFlag)
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setCreateFont, setEndAction, setIdName, setMainWindow, validId, WinMain
When controls are created, they need to have a font associated with them. By default Win32lib initially uses "ms sans serif, 8 point, Normal. You can use this function to set a different font for new controls rather than change the font after they are created.
Example
sequence oldFont -- Set a special font to use. oldFont = setCreateFont("Times New Roman", 14, Normal, Black) -- Create some controls fldA = create(Editbox, ... fldB = create(Editbox, ... fldC = create(List, ... -- Restore fot to initial one. VOID = setCreateFont(oldFont[1], oldFont[2], oldFont[3], oldFont[4])
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setEndAction, setIdName, setMainWindow, validId, WinMain
This is used to signal what is to happen when the main window is closed. At that time, if the last use of setEndAction() uses a code less than zero, control returns to the application from the WinMain() call. However, a code of zero or higher causes the library to call the standard Euphoria abort() routine using the value of code.
Example
integer CurrentVal -- Set the app to end when the main window is closed. CurrentVal = setEndAction(0)
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setIdName, setMainWindow, validId, WinMain
Also see: getIDName and newUIObj
This routine ensures that only alphanumeric and '_' characters are in the name. All
other characters stripped off the Name parameter.
Example
sequence name setIdName(myWindow, "Prime Window")
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setMainWindow, validId, WinMain
This is only used if you wish to change the default window that is set by calling WinMain().
Example
integer CurWin CurWin = setMainWindow( AltWindow )
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, validId, WinMain
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, WinMain
This is the main processing loop for Win32Lib. Call WinMain after all the controls and their handlers have been defined for the initial running of the application.
The main window is set to window. When window is closed, the application is shut down. Note that if window is -1 then the first window defined is used as the primary window.
If you wish to have an application that has no window under the control of win32lib, but still wish to use its Windows Message loop, then set window as 0.
The style flag is one of the following:
The WinMain function will open the application's main window.
It it possible to specify the control that will get the initial focus when the window opens. See openWIndow for details.
For example:
-- set MyWindow as main window, open normally -- with the initial focus on the Login button. WinMain( {MyWindow, btnLogin}, Normal )
See Also: classAutoSelect, classDefaults, clientToClient, ClientToScreen, convPctToPixel, findWindow, getActiveWindow, getAppName, getClassName, getHandle, getHWND, getId, getIdName, getKeyState, getMainWindow, getNameId, getNameIdInContext, getSysColor, getSystemMetrics, getUserName, getWinVersion, loadIconFromFile, manageToolTip, ScreenToClient, setAppName, setAutoFocusLabels, setCreateFont, setEndAction, setIdName, setMainWindow, validId