TextBox
|
![]() ![]() ![]() |
Define and Properties |
CREATE TEXTBOX 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. | ||||
[ AUTOSIZE .T. | .F. ] | ![]() | Auto adjust control size to text | ||||
[ ENABLED .T. | .F. ] | ![]() | Enable or Disable control | ||||
[ VALUE xValue ] | ![]() | A text expressions for the control (Character, Numeric, Date or Password according others properties was settings) | ||||
[ 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 | ||||
[ FONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set foreground color (text color) | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ SELECTIONFONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set font color for selected textbox area | ||||
[ SELECTIONBACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color for selected textbox area | ||||
[ CARETPOS nPosition ] | ![]() | Move cursor position to nPosition. Warnig, if you code CARETPOS before another property is posible that position change and doesn't respect your CARETPOS property. Then, coded CARETPOS before END TEXTBOX | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ READONLY .T. | .F. ] | ![]() | This property restrict the input from keyboard and the control is used as output mode only | ||||
[ ALIGN nAlign ] | ![]() | Align text, most common value are Qt_AlignLeft , Qt_AlignCenter and Qt_AlignRight | ||||
[ TEXT .T. | .F. ] | ![]() | Free text input (Default) | ||||
[ INPUTMASK cInputMask ] | ![]() | This property holds the validation input mask for TEXT only textboxes. Go to for a complete description | ||||
[ NUMERIC .T. | .F. ] | ![]() | Restrict input text to only digits | ||||
[ ALLOWNEGATIVE .T. | .F. ] | ![]() | Allow user to enter an negative number in an NUMERIC textbox | ||||
[ DECIMALPOINT ] | ![]() | Allow user to change character for decimal point. Accepted values are: Qt_DecimalPoint_Dot or Qt_DecimalPoint_Comma | ||||
[ DECIMALS nDecimals ] | ![]() | Override global SET DECIMALS TO nDec | ||||
[ FORMAT cFormat ] | ![]() | This property allow user to modify the display format of a NUMERIC textbox. Go to for a complete description | ||||
[ MONEYIDENTIFIER cMoneyIdentifier ] | ![]() | This property allow user to change the global SET MONEYIDENTIFIER used by FORMAT property to show a money identifier before NUMERIC value | ||||
[ PREFIX cPrefix ] | ![]() | This property allow user to change the default char used by FORMAT property to show a prefix identifier before NUMERIC value | ||||
[ SUFFIX cSuffix ] | ![]() | This property allow user to change the default char used by FORMAT property to show a suffix identifier after NUMERIC value | ||||
[ SELECTBY nMode ] | ![]() | This property allow user to specify witch part of DATE textbox will be selected when DATE textbox get the focus. Accepted values are: Qt_SelectByAll Qt_SelectByDay Qt_SelectByMonth Qt_SelectByYear | ||||
[ DATE .T. | .F. ] | ![]() | Restrict input text to DATE format | ||||
[ DATEVALID .T. | .F. ] | ![]() | Force user to enter a valid DATE. If not, control will send an error message | ||||
[ DATEVALIDMUTE .T. | .F. ] | ![]() | Supress error message when DATE is invalid and DATEVALID is true | ||||
[ ALLOWEMPTYDATE .T. | .F. ] | ![]() | Allow user to enter an empty date. If not, control will send an error message | ||||
[ ALLOWEMPTYDATEMUTE .T. | .F. ] | ![]() | Supress error message when DATE is empty and ALLOWEMPTYDATE is false | ||||
[ UPPERCASE .T. | .F. ] | ![]() | Convert input text to UPPERCASE | ||||
[ LOWERCASE .T. | .F. ] | ![]() | Convert input text to LOWERCASE | ||||
[ MAXLENGTH nMaxLength ] | ![]() | Max length input characters | ||||
[ PASSWORD .T. | .F. ] | ![]() | Replace display of real characters by asterisks | ||||
[ 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. | ||||
[ 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. | ||||
[ VALID cValid | {BValid} ] | ![]() | An action to be performed when control has lost focus. The user function or BLOCK can return any of this values: .T. : Value OK, lost focus .F. : Value ERROR, held focus "" : (empty string) Value OK, lost focus "user_message" : Value Error, held focus and control will send a message with the "user_message" | ||||
[ 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. | ||||
[ ONCHANGE cOnChange | {BOnChange} ] | ![]() | An action to be performed when control has changed | ||||
[ ONENTER cOnEnter | {BOnEnter} ] | ![]() | An action to be performed when user press ENTER or RETURN keys. You can interrupt the ENTER key propagate to the control returning the __MG_KEY_NO_PROPAGATE constant, e.g. to disable ENTERTAB behavior. | ||||
[ 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 | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide control (like methods SHOW and HIDE) | ||||
[ CONTEXTMENUSUPRESSED .T. | .F. ] | ![]() | Disable the display of the Context Menu of control. | ||||
[ CREATE CONTEXT MENU [ cName ] ] | ![]() | CONTEXT MENU for control | ||||
[ ......... ] | ![]() | You can see properties for this menu in CONTEXT MENU topic | ||||
[ END MENU ] | ![]() | |||||
END TEXTBOX |
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. | ||||
DATEVALID | ![]() | This method is used to check if a TEXTBOX DATE is valid | ||||
GETNUMBERFORMATED [ , cFormat ] | ![]() | This method is used to get the numeric value formated by cFormat. If cFormat is not specified, property FORMAT of textbox control will be used. | ||||
VALID | ![]() | Execute VALID block coded in CREATE or seted by mg_Set | ||||
RELEASE | ![]() | This method is used to destroy the control. | ||||
SETFOCUS | ![]() | This method put the program focus into control | ||||
ONCHANGE | ![]() | Execute ONCHANGE block coded in CREATE or seted by mg_Set | ||||
ONENTER | ![]() | Execute ONENTER 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 |
|
![]() ![]() ![]() |