Vertical and Horizontal Scroll Bar Processing

Post Reply
User avatar
don lowenstein
Posts: 204
Joined: Mon Oct 17, 2005 9:09 pm
Been thanked: 3 times
Contact:

Vertical and Horizontal Scroll Bar Processing

Post by don lowenstein »

Is there a way with Fivewin to build a dialog with automatic vertical and horizontal scroll bar processing that moves the display area as scroll bars are clicked?
Don Lowenstein
www.laapc.com
User avatar
karinha
Posts: 8057
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 10 times
Contact:

Re: Vertical and Horizontal Scroll Bar Processing

Post by karinha »

Hello, maybe, C:\FWH..\SAMPLES\DON.PRG

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Antonio Linares
Site Admin
Posts: 42833
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 167 times
Been thanked: 123 times
Contact:

Re: Vertical and Horizontal Scroll Bar Processing

Post by Antonio Linares »

Dear Don,

Code: Select all | Expand

#include "FiveWin.ch"function Main()   local oDlg, oScrollPanel   DEFINE DIALOG oDlg SIZE 520, 520 COLOR "W/RB"   ACTIVATE DIALOG oDlg CENTERED ;      ON INIT ( oScrollPanel := TScrollPanel():New( 20, 20, 500, 500, oDlg ),;                oScrollPanel:SetColor( "W/B" ),;                BuildPanel( oScrollPanel ), .T. )return nilfunction BuildPanel( oScrollPanel )   local cName := Space( 20 ), cSurName := Space( 20 )   @ 2, 2 GET cName OF oScrollPanel   @ 5, 2 GET cSurName OF oScrollPanel   oScrollPanel:SetRange()return nil

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply