Page 1 of 1
Scrollbar wbrowse FIVEWIN and PPC
Posted: Wed Dec 31, 2008 9:52 pm
by Otto
Is it possible to turn on scrollbar immediately.
I noticed that the scrollbar shows after you insert the second item.
Especially on the PPC this behavior disturbs the screen and the
application seems flickering and not solid.
Thanks in advance
Otto
Otto
Posts: 1067
Joined: Fri Oct 07, 2005 7:07 pm
Website Top
Re: Scrollbar wbrowse FIVEWIN and PPC
Posted: Thu Jan 01, 2009 12:28 pm
by Antonio Linares
Otto,
The scrollbar gets visible once there are two or more records to show.
Re: Scrollbar wbrowse FIVEWIN and PPC
Posted: Thu Jan 01, 2009 6:55 pm
by Otto
Hello Antonio,
Yes I noticed this. But the browser repaints and the applications seems for an enduser very unstable and flickering.
Therefore it would be better if the scrollbar would be there when starting the application.
Regards,
Otto
Re: Scrollbar wbrowse FIVEWIN and PPC
Posted: Thu Jan 01, 2009 9:33 pm
by Antonio Linares
Otto,
In order to turn the scrollbar visible it needs to have a range different from 0,0.
Maybe a solution is to do a oBrw:oVScroll:SetRange( 0, 1 ) even if we just have one record to show
Re: Scrollbar wbrowse FIVEWIN and PPC
Posted: Thu Jan 01, 2009 11:53 pm
by Otto
Hello Antonio,
Thank you for your help.
If I change the method I get what I want with FIVEWIN.
METHOD VSetRange() INLINE ::nVScrollPos := 1,;
iif(::nlen<2,;
::oVScroll:SetRange( Min( 1,1 ), Min( VSCROLL_MAXVALUE, 0)),;
::oVScroll:SetRange( Min( 1,::nLen ), Min( VSCROLL_MAXVALUE, ::nLen)))
But I don’t know how to link in the changed wbrowse.prg or an inherited one with the changed method in FWPPC.
Could you please show me how to compile and link in files in FWPPC.
I use UEStudio and setup in “Tool Configuration” C:\Fwppc\SAMPLES\Buildce.bat %P%N .
Buildce.bat is original FWPPC.
Thanks in advance
Otto
Re: Scrollbar wbrowse FIVEWIN and PPC
Posted: Fri Jan 02, 2009 12:34 am
by Antonio Linares
Otto,
To test it simply compile and link wbrowse.prg as another prg of your application,
or just add it source code at the bottom of your main PRG