Re: Forms 5.0 - making Scrollable fields fixed...

From: <pberetta_at_my-deja.com>
Date: Wed, 01 Dec 1999 01:37:06 GMT
Message-ID: <821u42$dil$1_at_nnrp1.deja.com>


Henrik,
  How about this. Instead of a horizontal scroll bar, create two buttons, label them <- and -> (or whatever you want that will convey their purpose). Then use the Get_Item_Property and Set_Item_Property() builtins in WHEN-BUTTON-PRESSED triggers to "scroll" the columns. For example say you have a total of 7 columns, can only display 5, and want the first two as "fixed", and that you have laid out your form with these as your starting 'X Position' 'Y Position' and 'Visible' property settings:

COL1   X = 10   Y = 30  Visible = YES
COL2   X = 110  Y = 30     "       "
COL3   X = 210  Y = 30     "       "
COL4   X = 310  Y = 30     "       "
COL5   X = 410  Y = 30     "       "
COL6   X = 410  Y = 30  Visible = NO
COL7   X = 410  Y = 30     "       "

Now when the <- button is pressed you can determine the current VISIBLE columns using Get_Item_Property().
If COL3 is visible THEN
  set COL3 VISIBLE = NO,
  set COL4 POSITION to 210,30
  set COL5 POSITION to 310,30
  set COL6 VISIBLE = YES

You could even go really all out and provide some check boxes so the user could decide which columns to freeze. Anyhow, the idea looks good on paper, let me know if it works, may come in handy one of these days. Paul

In article <xm_04.1672$GH4.653929503_at_news.euroconnect.net>,   "Henrik Krievs" <hek_at_ecsoft.dk> wrote:
> Hi'
>
> I would like to make some of my text items in a tabular block
> "Nonscrollable" while keeping the rest Scrollable.
> Sort of the spreadsheet-way, where you can fix/lock some of the
columns.
>
> eg.
>
> <------- fixed -------> <------------ scrollable --------------(not
> visible)----->
> FIELD 1 FIELD 2 FIELD 3 FIELD 4 FIELD 5 FIELD 6
>
> I've tried with two Stacked canvases, but it seems that when it
comes to
> showing Field 6 -Field 1 disappears
>
> any ideas ?
>
> BR, Henrik
>
>

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Dec 01 1999 - 02:37:06 CET

Original text of this message