HScroll and VScroll ON / OFF at runtime in xBrowse ?

HScroll and VScroll ON / OFF at runtime in xBrowse ?

Postby ukoenig » Sat Sep 06, 2008 6:23 pm

Hello,

I wanted to switch ON / OFF HScroll and VSroll in
xBrowse at Runtime.
It seems, it works only in a new dialog ( preview ).
I can create a extra dialog-preview like for the record-selector.
There, i had the same problem.

Image

Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Antonio Linares » Tue Sep 09, 2008 8:56 am

Uwe,

Please try this code to hide them:

oBrw:oVScroll:SetRange( 0, 0 )
oBrw:oHScroll:SetRange( 0, 0 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

HScroll and VScroll ON / OFF

Postby ukoenig » Thu Sep 11, 2008 6:15 am

Antonio,

I had a closer look at the problem.

oBrw:oVScroll:SetRange( 0, 0 )
oBrw:oHScroll:SetRange( 0, 0 )

Like you can see on the screenshot : the data-area is painted new,
but HScroll is still visible on top. In a new Dialog it is painted OK.
There is another thing i noticed : if hcroll and vscroll are defined
in resources and in my application i set them to .F., nothing
happens. Without define them in resources, oBrw:lHScroll := .F. and
oBrw:lVScroll := .F. are working.

Image

Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests