How to switch off VScroll?

How to switch off VScroll?

Postby Otto » Sat Nov 15, 2008 10:06 pm

lVScroll is not workting.
Regards,
Otto
User avatar
Otto
 
Posts: 6275
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Sat Nov 15, 2008 11:29 pm

Otto,

Could you please post a PRG example of what you are doing ? thanks
regards, saludos

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

Postby Otto » Sun Nov 16, 2008 8:25 am

Hello Antonio,

I am sorry I forgot to mention the class:
It is TPanel. oVScroll seems to me as hardcoded.

Best regards,
Otto

Code: Select all  Expand view
METHOD New( nTop, nLeft, nBottom, nRight, oWnd, lPixel, nClrText, nClrBack ) CLASS TPanel


   if ! Empty( ::oWnd:hWnd )
      ::Create()
      ::oWnd:AddControl( Self )
      DEFINE SCROLLBAR ::oVScroll VERTICAL OF Self
      ::oVScroll:SetRange( 0, 100 )
   else
      ::oWnd:DefControl( Self )
   endif

return Self

//----------------------------------------------------------------------------//
User avatar
Otto
 
Posts: 6275
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Sun Nov 16, 2008 9:48 am

Otto,

You can always turn it off doing:

oPanel:oVScroll:SetRange( 0, 0 )

Please review fwppc\samples\TestPane.prg to see the concept.
regards, saludos

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

Postby Otto » Sun Nov 16, 2008 7:08 pm

Antonio, thank you. It is working.
Best regards,
Otto
User avatar
Otto
 
Posts: 6275
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 28 guests