ScrollArea
|
![]() ![]() ![]() |
Define and Properties |
CREATE SCROLLAREA cName | (cVarName) | &(cExpression) | ||||||
[ PARENT cParentName ] | ![]() | Parent window for this widget | ||||
[ PARENTTYPE n/a ] | ![]() | Only for mg_get() function, this property returns the PARENT control type or "" if the parent was not set. | ||||
[ ROW nRow ] | ![]() | Row position on container desktop in pixels coordinates | ||||
[ COL nCol ] | ![]() | Col position on container desktop in pixels coordinates | ||||
[ WIDTH nWidth ] | ![]() | The desired width size of the window in pixels | ||||
[ HEIGHT nHeight ] | ![]() | The desired height size of the window in pixels | ||||
[ ROWBOTTOM nRow ] | ![]() | Bottom Row position on container desktop in pixels coordinates. This property adjust the HEIGHT property according the ROW property. | ||||
[ COLRIGHT nCol ] | ![]() | Right Col position on container desktop in pixels coordinates. This property adjust the WIDTH property according the COL property. | ||||
[ VIRTUALWIDTH nVirtualWidth ] | ![]() | The desired virtual width size of the scrollarea in pixels. This property must be greater than WIDTH property | ||||
[ VIRTUALHEIGHT nVirtualHeight ] | ![]() | The desired virtual height size of the scrollarea in pixels. This property must be greater than HEIGHT property | ||||
[ HSCROLL nTypeScrollBar ] | ![]() | This property enable/disable the horizontal scrollbar for VIRTUALWIDTH property. Accepted values are: Qt_ScrollBarAsNeeded = Shows a scroll bar when the content is too large to fit and not otherwise. This is the default. Qt_ScrollBarAlwaysOff = Never shows a scroll bar. Qt_ScrollBarAlwaysOn = Always shows a scroll bar. | ||||
[ VSCROLL nTypeScrollBar ] | ![]() | This property enable/disable the vertical scrollbar for VIRTUALHEIGHT property. Accepted values are: Qt_ScrollBarAsNeeded = Shows a scroll bar when the content is too large to fit and not otherwise. This is the default. Qt_ScrollBarAlwaysOff = Never shows a scroll bar. Qt_ScrollBarAlwaysOn = Always shows a scroll bar. | ||||
[ HSCROLLVALUE nValue ] | ![]() | This property move the horizontal scrollbar to nValue. This ScrollBar is used when VIRTUALWIDTH property is used. The minumum and maximun values can be consulted/seted by HScrollMin and HScrollMax properties. | ||||
[ VSCROLLVALUE nValue ] | ![]() | This property move the vertical scrollbar to nValue. This ScrollBar is used when VIRTUALHEIGHT property is used. The minumum and maximun values can be consulted/seted by VScrollMin and VScrollMax properties. | ||||
[ HSCROLLMIN nValueMin ] | ![]() | This property is used to get/set the minimum value for the horizontal scrollbar. This ScrollBar is used when VIRTUALWIDTH property is used. | ||||
[ HSCROLLMAX nValueMax ] | ![]() | This property is used to get/set the maximum value for the horizontal scrollbar. This ScrollBar is used when VIRTUALWIDTH property is used. | ||||
[ VSCROLLMIN nValueMin ] | ![]() | This property is used to get/set the minimum value for the vertical scrollbar. This ScrollBar is used when VIRTUALHEIGHT property is used. | ||||
[ VSCROLLMAX nValueMax ] | ![]() | This property is used to get/set the maximum value for the vertical scrollbar. This ScrollBar is used when VIRTUALHEIGHT property is used. | ||||
[ HASFOCUS ] | ![]() | Only for mg_Get() function. This property returns .T. if scrollarea has the application focus | ||||
[ CURSOR ] | ![]() | Change the cursor pointer shape for the scrollarea. Go to to learn more about it. | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ ENABLED .T. | .F. ] | ![]() | Enable or Disable ALL controls in scrollarea | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide scrollarea (like methods SHOW and HIDE) | ||||
[ ONCHANGEHSCROLL cOnChangeHScroll | {BOnChangeHScroll} ] | ![]() | An action to be performed when the Horizontal ScrollBar moved. This ScrollBar is used when VIRTUALWIDTH property is used | ||||
[ ONCHANGEVSCROLL cOnChangeVScroll | {BOnChangeVScroll} ] | ![]() | An action to be performed when the Vertical ScrollBar moved. This ScrollBar is used when VIRTUALHEIGHT property is used | ||||
[ ONGOTFOCUS cOnGotFocus | {BOnGotFocus} ] | ![]() | An action to be performed when the scrollarea is focused | ||||
[ ONLOSTFOCUS cOnLostFocus | {BOnLostFocus} ] | ![]() | An action to be performed when the scrollarea is lost focused | ||||
[ 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 SCROLLAREA |
Jump to Context Menu topic |
Methods |
RELEASE | ![]() | Release scrollarea | ||||
HIDE | ![]() | Hide scrollarea. | ||||
SHOW | ![]() | Show scrollarea. | ||||
ADDCONTROL cControlName [ , nRow ] [ , nCol ] | ![]() | This method ADD a previously created control in the SCROLLAREA, optionally, you can specify the row and col position into the SCROLLAREA. | ||||
UNSETCURSOR | ![]() | Reset the cursor pointer shape for the scrollarea to default (Qt_ArrowCursor). Go to to learn more about it. | ||||
HSCROLLMOVE | ![]() | Move Horizontal ScrollBar in scrollarea with VIRTUALWIDTH property seted Accepted values are: Qt_ScrollSingleStepAdd Qt_ScrollSingleStepSub Qt_ScrollPageStepAdd Qt_ScrollPageStepSub Qt_ScrollToMinimum Qt_ScrollToMaximum | ||||
VSCROLLMOVE | ![]() | Move Vertical ScrollBar in scrollarea with VIRTUALHEIGHt property seted Accepted values are: Qt_ScrollSingleStepAdd Qt_ScrollSingleStepSub Qt_ScrollPageStepAdd Qt_ScrollPageStepSub Qt_ScrollToMinimum Qt_ScrollToMaximum | ||||
SETFOCUS | ![]() | This method put the program focus into scrollarea | ||||
GETCHILDREN | ![]() | This method return an array containing a list of controls that have this control as parent | ||||
GETCONTROLS | ![]() | This method return an array containing a list of controls that have this control as parent, except those that are not shown on screen (e.g. TIMER or CONTEXTMENU) | ||||
ONGOTFOCUS | ![]() | Execute ONGOTFOCUS block coded in CREATE or seted by mg_Set | ||||
ONLOSTFOCUS | ![]() | Execute ONLOSTFOCUS block coded in CREATE or seted by mg_Set | ||||
ONCHANGEHSCROLL | ![]() | Execute ONCHANGEHSCROLL block coded in CREATE or seted by mg_Set | ||||
ONCHANGEVSCROLL | ![]() | Execute ONCHANGEVSCROLL 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 |
|
![]() ![]() ![]() |