[futurebasic] Re: [FB] Re: ScrollBar

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1999 : Group Archive : Group : All Groups

From: GBeckman@...
Date: Mon, 19 Apr 1999 01:51:50 EDT
In a message dated 4/18/99 10:38:54 PM, allmedia@... writes:

>My edit field is resizeable (tied to a window) and is styled.
>The challenge is to find the number of visible lines in the field, and
>then
>set the 5ht parameter in SCROLL BUTTON accordingly within a _wndRefresh
>event.


I use PG to develop, so I don't exactly know how as it is all handled 
automatically.  However, if you don't want to use a PG edit field with a 
scroll bar grouped with it, you can get the height of the text and divide it 
into the height of your window/edit field.  For the text height, I use 
RowHt=USR FONTHEIGHT+3 in a program that has a grid and in which I need to 
set the scrolling.    The trick here is that in rich text, each line can be a 
different height.  Too much fussing for me.  I would think about looking at 
PG created or at least see how STAZ handles these things in the PG runtime.

If you do use a PG field, remember you have to add a Return  (chr$(13) ) to 
the field to "wake up" the scroll bars.

Hope this helps,

George