$root.$iwindows.WINDOW.$objs.Push Button

Parent: $root.$iwindows.WINDOW.$objs
 
Children 

Class notation

Properties Methods Events 

Push buttons are control fields that activate either user-defined methods or standard Omnis database commands such as Find, Next, and Previous.

Properties

Object specific 
$actedataIf true, the control is active during enter data
 
Note the button will not work if this is set to false, in particular on modeless enter data windows.
$actnomethodIf true, the control is active when no methods are running
 
Note the button will not work if this is set to false, in particular on modeless enter data windows.
$borderradiusRadius for rounded border corners.1 to 4 pixel values separated by -,in order topleft,topright,bottomright,bottomleft.If bottomleft is omitted it is topright.If bottomright is omitted it is topleft.If topright is omitted it is topleft
$buttonmodeThe button mode for pushbuttons. A kBM... constant. The values other than kBMuser,kBMok,kBMcancel,kBMcolorpicker,kBMlinestylepicker,kBMpatternpicker indicate that the button carries out the appropriate Omnis data file operation
kBMcancel kBMclear kBMcolorpicker kBMdelete kBMedit kBMfind kBMinsert kBMinsertcv kBMlinestylepicker kBMmainfile kBMnext kBMok kBMpatternpicker kBMprev kBMuser
$buttonstyleThe drawing style of a button:kSystemButton,kUserButton,kNoBorderButton,kHeadingButton,kComboButton,kRoundButton,kLargeRoundButton, or kIDEButton.For headed and tree lists,it is the style of the header button: kSystemButton or kUserButton
kComboButton kHeadingButton kIDEButton kLargeRoundButton kNoBorderButton kRoundButton kSystemButton kUserButton
$contentsFor buttons with a kBM...picker mode,the current color,line style or pattern
$fieldstylefocusedThe style in system class #STYLES assigned to this field in addition to $fieldstyle when the control has focus
$gridsectionThe type of the complex grid section containing the object. One of the kGrid... constants
$iconcolorThe color used to draw the icon for the item, when the icon is a themed SVG icon
$iconidThe icon identifier used to reference the icon
$inactnorecIf true, the button is inactive when there is no current record
 
Note the button will not work if this is set to false, in particular on modeless enter data windows.
$nograyIf true, the object does not gray when it is disabled
$styledtextIf true, the field supports styled text. The text styles are stripped for objects on macOS style top toolbars,and for the menus created in place of lists to support vertical docking areas
$textThe text or calculation stored with the object
$timeoutAssign positive integer N to start a countdown timer that runs for N seconds,appending the time left to the button text.Assign zero to stop the timer.When the timer expires,the button receives evClick with event parameter pTimeout set to kTrue
$tooltipposA kTooltipPos... constant that specifies where $tooltip appears relative to the control
kTooltipPosBottom kTooltipPosLeft kTooltipPosMouse kTooltipPosRight kTooltipPosTop
Standard$active $align $alpha $backcolor $backgroundtheme $backpattern $bordercolor $candropcursor $componentinfo $container $contextmenu $cursor $disablefocus $dragborder $dragiconid $dragmode $dragrange $dropmode $edgefloat $enabled $fieldstyle $font $fontsize $fontstyle $forecolor $framehwnd $gridcolumn $hasfocus $height $helpfile $hwnd $ident $keyevents $left $mouseevents $name $nodropcursor $objtype $order $osdropflags $rmouseevents $selected $sidepanel $sidepanelmode $statusevents $subwindowstyle $textcolor $tooltip $top $userinfo $visible $width

Methods

Object specific 
$sendevent$sendevent(iEvent[,eventParameters...]) Sends event iEvent (an ev... constant value) to the object with eventParameters passed as name,value pairs, for example $sendevent(evClick,'pLineNumber',2).Returns kFalse if the event is discarded
$showpanel$showpanel(iAction[,iMode=kSidePanelModeAuto]) executes kSidePanelAction... on a side panel object. iMode only applies to kSidePanelActionShow,and must be kSidePanelModeCover/Push/Auto. For JS client,$showpanel must be executed on the client
Standard$redraw

Events

Object specific 
evWillHideSent to a field before it is hidden. Currently only used when the field is set as a side panel
Parameters
pEventCodeThe event code
pSidePanelIf true,this object is being hidden or shown as a side panel
evWillShowSent to a field before it becomes visible. Currently only used when the field is set as a side panel
Parameters
pEventCodeThe event code
pSidePanelIf true,this object is being hidden or shown as a side panel
StandardevAfter evBefore evCanDrop evClick evClipChangedData evDisabled evDoubleClick evDrag evDragBorder evDragFinished evDrop evEnabled evHidden evKey evMouseDouble evMouseDown evMouseEnter evMouseLeave evMouseUp evOpenContextMenu evRMouseDouble evRMouseDown evRMouseUp evSent evShiftTab evShown evTab evWillDrop

Children

Top 

$methods