Button
|
![]() ![]() ![]() |
Define and Properties |
CREATE BUTTON cName | (cVarName) | &(cExpression) | ||||||
[ ; OF cWindow | (cVarName) | &(cExpression) ] | ![]() | A reference to the Parent Window | ||||
[ ROW nRow ] | ![]() | Row position on container window in pixels coordinates | ||||
[ COL nCol ] | ![]() | Col position on container window in pixels coordinates | ||||
[ WIDTH nWidth ] | ![]() | The desired width size of the Control in pixels | ||||
[ HEIGHT nHeight ] | ![]() | The desired height size of the Control in pixels | ||||
[ ROWBOTTOM nRow ] | ![]() | Bottom Row position on container window in pixels coordinates. This property adjust the HEIGHT property according the ROW property. | ||||
[ COLRIGHT nCol ] | ![]() | Right Col position on container window in pixels coordinates. This property adjust the WIDTH property according the COL property. | ||||
[ ENABLED .T. | .F. ] | ![]() | Enable or Disable control | ||||
[ CAPTION cCaption ] | ![]() | A text expressions for the control | ||||
[ AUTOSIZE .T. | .F. ] | ![]() | Auto adjust control size to text | ||||
[ FONTNAME "cFontName" ] | ![]() | Font family for control text | ||||
[ FONTSIZE nPoints ] | ![]() | Font size for control text | ||||
[ FONTBOLD .T. | .F. ] | ![]() | Set Bold attribute to control text | ||||
[ FONTITALIC .T. | .F. ] | ![]() | Set Italic attribute to control text | ||||
[ FONTUNDERLINE .T. | .F. ] | ![]() | Set Underline attribute to control text | ||||
[ FONTSTRIKEOUT .T. | .F. ] | ![]() | Set Strikeout attribute to control text | ||||
[ FONTBLINK .T. | .F. ] | ![]() | Set Blink attribute to control text | ||||
[ BORDER .T. | .F. ] | ![]() | ? | ||||
[ FLAT .T. | .F. ] | ![]() | Set Flat attibute for control. The control don't will have 3D aspect. | ||||
[ PICTURE "cPictureName" ] | ![]() | Picture name for display into control | ||||
[ CLIENTEDGE .T. | .F. ] | ![]() | ? | ||||
[ HSCROLL .T. | .F. ] | ![]() | ? | ||||
[ VSCROLL .T. | .F. ] | ![]() | ? | ||||
[ TRANSPARENT .T. | .F. ] | ![]() | Don't fill background control, set Transparent attibute | ||||
[ NOTRANSPARENT .T. | .F. ] | ![]() | Property for control with bitmap picture (default: false) | ||||
[ NOXPSTYLE .T. | .F. ] | ![]() | Preserve standard control look even on styled Windows XP (Only Windows OS) | ||||
[ FONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set foreground color (text color) | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ DEFAULT .T. | .F. ] | ![]() | ? | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide control (like methods SHOW and HIDE) | ||||
[ VERTICAL .T. | .F. ] | ![]() | Clause is used to set Picture/Text aspect on control (default: false) | ||||
[ NOTABSTOP .T. | .F. ] | ![]() | This property force that TAB key doesn't stop in this control | ||||
[ PARENT cControlParent ] | ![]() | Get or Set the control name of parent widget | ||||
[ PARENTTYPE n/a ] | ![]() | Only for mg_get() function, this property returns the PARENT control type or "" if the parent was not set. | ||||
[ DISABLEENTER .T. | .F. ] | ![]() | By default, event ONCLICK also start by pressing the ENTER (or RETURN) key. Setting DISABLEENTER to .T. disable this behavior | ||||
[ PERMANENT .T. | .F. ] | ![]() | Only for controls defined into STATUSBAR. This property force this control as permanent statusbar message. Control will be placed at right corner of statusbar and it is never hidden. Used for important mode indications, for example, some applications put a Caps Lock indicator in the status bar. | ||||
[ HASFOCUS ] | ![]() | Only for mg_Get() function. This property returns .T. if control has the application focus | ||||
[ CURSOR ] | ![]() | Change the cursor pointer shape for the control. Go to to learn more about it. | ||||
[ FORCEACTION .T. | .F. ] | ![]() | It force the execution of the actions defined by methods like ACTION, ONENTER, ONCLICK, ONDBLCLICK, etc. when NOTABSTOP property was set '.T.'. This property is useful when application focus is over a control when a VALID clause and it doesn't permit lostfocus. | ||||
[ ONCLICK cOnClick | {BOnClick} ] | ![]() | An action to be performed when control is clicking | ||||
[ ONGOTFOCUS cOnGotFocus | {BOnGotFocus} ] | ![]() | An action to be performed when control is focused | ||||
[ ONLOSTFOCUS cOnLostFocus | {BOnLostFocus} ] | ![]() | An action to be performed when control is lost focused | ||||
[ CREATE CONTEXT MENU [ cName ] ] | ![]() | CONTEXT MENU for control | ||||
[ ......... ] | ![]() | You can see properties for this menu in CONTEXT MENU topic | ||||
[ END MENU ] | ![]() | |||||
END BUTTON |
Jump to Context Menu topic |
Methods |
HIDE | ![]() | This method HIDE the control | ||||
SHOW | ![]() | This method SHOW the control | ||||
UNSETCURSOR | ![]() | Reset the cursor pointer shape for the control to default (Qt_ArrowCursor). Go to to learn more about it. | ||||
RELEASE | ![]() | This method is used to destroy the control. | ||||
SETFOCUS | ![]() | This method put the program focus into control | ||||
ONCLICK | ![]() | Execute ONCLICK block coded in CREATE or seted by mg_Set | ||||
ONGOTFOCUS | ![]() | Execute ONGOTFOCUS block coded in CREATE or seted by mg_Set | ||||
ONLOSTFOCUS | ![]() | Execute ONLOSTFOCUS block coded in CREATE or seted by mg_Set |
Marinas-GUI Version 03.06 and Marinas-IDE Version 05.06 and LEX Files Version 02.06 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- last update: April 27 2017 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ![]() A Harbour/QT framework to make multiplatform programs (©) Copyright 2009-2017 by Fernando Santolin (aka CarozoDeQuilmes) CarozoDeQuilmes@gmail.com 2009-2017 Beta tester and full English translator: Bruno Luciani Bruno.Luciani@gmail.com 2014-2015 Final English corrector: David Worboys DavidWorboys@hotmail.com --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- www.marinas-gui.org |
|
![]() ![]() ![]() |