ListBox
|
![]() ![]() ![]() |
Define and Properties |
CREATE LISTBOX 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. | ||||
[ ITEM nItem [ , cText ] ] | ![]() | Value text of item nItem (ONLY available for mg_Get() and mg_Set() functions) | ||||
[ ITEMICON nItem , cIconName ] | ![]() | Icon name for item nItem. The item must already exist. (ONLY available for mg_Get() and mg_Set() functions) | ||||
[ ITEMS aItemsTexts ] | ![]() | An array with control items | ||||
[ ITEMSICONS aItemsIconNames ] | ![]() | An array with icons for control items | ||||
[ ITEMCOUNT ] | ![]() | Only for mg_Get() function. It returns the total amount of items in control | ||||
[ ENABLED .T. | .F. ] | ![]() | Enable or Disable control. You can use this property to set/get ENABLED an item by coding it in that way: mg_set( <cWindow> , <cControl> , <nItem> , .T. | .F. ) mg_get( <cWindow> , <cControl> , <nItem> ) | ||||
[ 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 | ||||
[ FONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set foreground color (text color) | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ ALIGN nAlign ] | ![]() | Align text, most common value are Qt_AlignLeft , Qt_AlignCenter and Qt_AlignRight | ||||
[ MULTISELECT .T. | .F. ] | ![]() | It allow user to select one or more items | ||||
[ SELECTALL .T. | .F. ] | ![]() | Select or unSelect all items of ListBox control when MultiSelect .T. was used | ||||
[ VALUE nValue ] | ![]() | Item to display. If MULTISELECT clause is used VALUE must be a numeric array, containing the index position of selected items. | ||||
[ SORT .T. | .F. ] | ![]() | Sort Item Lists before display it | ||||
[ DISPLAYEDIT .T. | .F. ] | ![]() | Allow edit the selected item | ||||
[ NOTABSTOP .T. | .F. ] | ![]() | This property force that TAB key doesn't stop in this control | ||||
[ 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. | ||||
[ ONCHANGE cOnChange | {BOnChange} ] | ![]() | An action to be performed when control value is changed | ||||
[ ONSELECTIONCHANGE cOnSelectionChange | {BOnSelectionChange} ] | ![]() | An action to be performed when items selected 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 | ||||
[ ONCLICK cOnClick | {BOnClick} ] | ![]() | An action to be performed when control is clicking | ||||
[ ONDBLCLICK cOnDblClick | {BOnDblClick} ] | ![]() | An action to be performed when user press double mouse click | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide control (like methods SHOW and HIDE) | ||||
[ 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. | ||||
[ 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 LISTBOX |
Jump to Context Menu topic |
Methods |
HIDE | ![]() | This method HIDE the control | ||||
SHOW | ![]() | This method SHOW the control | ||||
SELECT aItems | ![]() | Select all items of aItems for a ListBox when MULTISELECT .T. was used | ||||
SELECTALL | ![]() | Select all items of a ListBox when MULTISELECT .T. was used | ||||
UNSELECT aItems | ![]() | UnSelect all items of aItems for a ListBox when MULTISELECT .T. was used | ||||
UNSELECTALL | ![]() | Unselect all items of a ListBox when MULTISELECT .T. was used | ||||
ISSELECT nItem | ![]() | Check if nItem is select or not | ||||
GETLASTITEMCLICKED | ![]() | Return the position of last item clicked (selected or unselected) | ||||
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 | ||||
SORT | ![]() | Sort control content in ascending order | ||||
ADDITEM cText | ![]() | Insert a new item to control. When the item was added, you can add ICON to item by ITEMICON property (mg_Set() function) | ||||
DELETEITEM nItem | ![]() | Delete item number nItem from control | ||||
DELETEALLITEMS | ![]() | Delete ALL items from control | ||||
ONCHANGE | ![]() | Execute ONCHANGE block coded in CREATE or seted by mg_Set | ||||
ONSELECTIONCHANGE | ![]() | Execute ONSELECTIONCHANGE 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 | ||||
ONCLICK | ![]() | Execute ONCLICK block coded in CREATE or seted by mg_Set | ||||
ONDBLCLICK | ![]() | Execute ONDBLCLICK block coded in CREATE or seted by mg_Set | ||||
ONENTER | ![]() | Execute ONENTER 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 |
|
![]() ![]() ![]() |