Re: developer 2000 stacked block level scroll bar

From: Neville Sweet <sweet.neville.nj_at_bhp.com.au.no_junk_email>
Date: Mon, 20 Mar 2000 16:44:21 +1100
Message-ID: <8b4dsp$kav$1_at_gossamer.itmel.bhp.com.au>


Hello again,

I have never used the solution commercially, but I did put a quick test form together to satisfy my own curiosity (and to make sure it works!).

The stacked canvas has the following properties: Displayed = True
Width = 14 (width of block scrollbar)
Height = 330 (depth of multi-record block) Window = MAIN_WINDOW (set this to your Window) X Position on Canvas = 0
Y Position on Canvas = 0
View Width = 14
View Height = 330
Display X Position = 725
Display Y position = 87

Block properties:
Scroll Bar = True
Scroll Bar Canvas = SCROLLBAR_CANVAS (set to your stacked canvas) Scroll Bar Width = 14
Scroll Bar Height = 330

I can't actually see the scroll bar on the canvas in Developer, ie. I can click on the stacked canvas in the Object Navigator, and see the stacked view outline in the Layour Editor, but there is no scroll bar inside it. At run-time the scroll bar appears and can be successfully re-positioned. I'm not sure why this should be the case. A small amount of boilerplate text, added above the scrollbar, does appear in the canvas Layout Editor.

ssharma24_at_my-deja.com wrote in message <8atrit$qor$1_at_nnrp1.deja.com>...
>Originally, I was having a problem changing the position of a scroll
>bar during run time...then neville came up with a soluton..
>thanks neville..but..I can see the stacked view on the content view
>only during build time not during run time?????I am not changing it's
>position or anything during run time.
>help help help...
>
>thanks again
>
>neville's solution was:
>I don't believe you can do this with set_block_property.
>However, what you can do is put the scroll bar onto a stacked canvas,
>and then set the position of that canvas at run-time.
>On the Block's property sheet, set Scroll Bar Canvas to the new stacked
>canvas,
>and then at run-time, Set_View_Property('your_stacked_canvas',
>DISPLAY_POSITION, number_x, number_y);
>where number_x and number_y are the x and y co-ordinates of the
>upper left corner of the stacked canvas.
>
>Not sure what you mean by X_position (with an underscore).
>Have a look at the online help for set_item_property POSITION
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
Received on Mon Mar 20 2000 - 06:44:21 CET

Original text of this message