Scrolling
Posted: Tue Mar 12, 2013 9:13 am
Hello,
I have some problems to understand VSCROLL and HSCROLL of DCSTATIC. If I scroll down in my sample, the static scrolls over the button on the top of the dialog. The scrollarea should only be in the area of oStatic2.
I also would like to make the scroll buttons larger. I think I can go throug the getlist and change the size of the object, but is there an easier way to do this ?
regards
Rudolf
I have some problems to understand VSCROLL and HSCROLL of DCSTATIC. If I scroll down in my sample, the static scrolls over the button on the top of the dialog. The scrollarea should only be in the area of oStatic2.
I also would like to make the scroll buttons larger. I think I can go throug the getlist and change the size of the object, but is there an easier way to do this ?
regards
Rudolf
Code: Select all
#INCLUDE "dcdialog.CH"
function Main()
******************************************************************
local getlist := {},x,oStatic1,oStatic2
@ 0,0 DCSTATIC TYPE XBPSTATIC_TYPE_RECESSEDBOX SIZE 500,700 OBJECT oStatic1 PIXEL RESIZE DCGUI_RESIZE_AUTORESIZE_SCALEFONT
@ 1,1 DCPUSHBUTTONXP size 500,40 caption "buttons" PIXEL PARENT oStatic1
@ 42,0 DCSTATIC TYPE XBPSTATIC_TYPE_TEXT SIZE 500,700-42 OBJECT oStatic2 PARENT oStatic1 PIXEL RESIZE DCGUI_RESIZE_AUTORESIZE_SCALEFONT;
VSCROLL oStatic1 RANGE 0,500 INCREMENT 10 ;
HSCROLL oStatic1 RANGE 0,500 INCREMENT 10
for x := 1 to 100 step 20
@ x,20 dcsay "Test" saysize 0 parent oStatic2 PIXEL
next x
DCREAD GUI TITLE "Test" FIT EVAL {|o|SetAppWindow(o)}
return .t.
PROC appsys
return