EditBox
|
![]() ![]() ![]() |
Define and Properties |
CREATE EDITBOX 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 | ||||
[ VALUE xValue ] | ![]() | A PLAIN text for the control | ||||
[ VALUEHTML xValueHtml ] | ![]() | A HTML text for the control (Rich 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 | ||||
[ FONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set foreground color (text color) | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ SELECTIONFONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set font color for selected area | ||||
[ SELECTIONBACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color for selected area | ||||
[ SELECTEDTEXT ] | ![]() | This property is used with mg_Get function, it returns the selected area from EditBox control. | ||||
[ PLAINTEXT .T. | .F. ] | ![]() | This property is used to change Qt Editbox Class to support large files, but, in contradistinction, the HTML features are limited | ||||
[ CARETPOS nPosition ] | ![]() | Move cursor position to nPosition. Warning, if you code CARETPOS before another property is posible that position change and doesn't respect your CARETPOS property. Then, coded CARETPOS before END EDITBOX. To move to end of document, use CARETPOS -1 | ||||
[ CURSORROW nRow ] | ![]() | Move cursor position to nRow (line). Warning, if you code CURSORROW before another property is posible that position change and doesn't respect your CURSORROW property. Then, coded CURSORROW before END EDITBOX. To move to end of document, use the CARETPOS property | ||||
[ CURSORCOL nCol ] | ![]() | Move cursor position to nCol in current line (row). Warning, if you code CURSORCOL before another property is posible that position change and doesn't respect your CURSORCOL property. Then, coded CURSORCOL before END EDITBOX. | ||||
[ 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 | ||||
[ 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. | ||||
[ 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. | ||||
[ ONCHANGE cOnChange | {BOnChange} ] | ![]() | An action to be performed when control has changed | ||||
[ ONCURSORMOVE cOnCursorMove | {BOnCursorMove} ] | ![]() | An action to be performed when cursor changes its position. | ||||
[ 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. | ||||
[ 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 | ||||
[ ONCONTROL+W cOnControl+W | {BOnControl+W} ] | ![]() | An action to be performed when CONTROL+W key has pressed | ||||
[ ONESCAPE cOnEscape | {BOnEscape} ] | ![]() | An action to be performed when ESCAPE key has pressed | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide control (like methods SHOW and HIDE) | ||||
[ WORDWRAP .T. | .F. ] | ![]() | Breaks lines at word boundaries. | ||||
[ 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 EDITBOX |
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 | ||||
FIND cText | ![]() | Find string cText if EDITBOX and move cursor to position. If the string was found, the text is highlighted (selected) | ||||
COPY | ![]() | Copy selected area to Clipboard | ||||
CUT | ![]() | Move selected area to Clipboard | ||||
PASTE | ![]() | Copy Clipboard content to EditBox control at the current cursor position. There is an area selected, it will be replaced, else, the clipboard content will be insert | ||||
SELECTALL | ![]() | Select all EditBox content. | ||||
UNDO | ![]() | Undoes the last operation. | ||||
REDO | ![]() | Redoes the last operation. | ||||
APPENDHTML | ![]() | Append a HTML text at end of current content | ||||
APPENDTEXT | ![]() | Append a PLAIN text at end of current content | ||||
INSERTHTML | ![]() | Insert a HTML text at current cursor position | ||||
INSERTTEXT | ![]() | Append a PLAIN text at current cursor position | ||||
GOTOLINE nLine | ![]() | Move the cursor to nLine | ||||
ONCHANGE | ![]() | Execute ONCHANGE block coded in CREATE or seted by mg_Set | ||||
ONCURSORMOVE | ![]() | Execute ONCURSORMOVE 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 |
|
![]() ![]() ![]() |