Home » Developer & Programmer » Forms » how to show scroll bar at runtime (forms 6i)
how to show scroll bar at runtime [message #427050] Tue, 20 October 2009 15:06 Go to next message
sivaora
Messages: 119
Registered: October 2009
Location: Hyderabad
Senior Member
For example my tabular form is having 100 records,
i want to display scrollbar for 50 to 100 records and
i don't want to display scrollbar for 1 to 50 records.
if anyone knows please reply me soon.

regards
siva
Re: how to show scroll bar at runtime [message #427053 is a reply to message #427050] Tue, 20 October 2009 15:58 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I didn't try it, but - perhaps you could use SET_BLOCK_PROPERTY built-in and set BLOCKSCROLLBAR_POSITION property. It should make it possible to move scrollbar somewhere out of sight (for example, if form is wider than screen, you could move it to the far right end). Set this property dependant to :SYSTEM.CURSOR_RECORD system variable (if it is <= 50, move scrollbar out of sight; if it is > 50, "display" it).

Although, why would you want to do that? What's wrong with scrollbar visible all the time?
Re: how to show scroll bar at runtime [message #427284 is a reply to message #427053] Wed, 21 October 2009 14:25 Go to previous messageGo to next message
sivaora
Messages: 119
Registered: October 2009
Location: Hyderabad
Senior Member
Thanks for your reply,
i have to try this.
and i asked like this because,it is an interview question asked in an mnc for d2k fresher.
Re: how to show scroll bar at runtime [message #427296 is a reply to message #427284] Wed, 21 October 2009 15:58 Go to previous messageGo to next message
sivaora
Messages: 119
Registered: October 2009
Location: Hyderabad
Senior Member
i tried it,
but i am not getting the output,
because i didn't find the property like "scroll_bar".
Re: how to show scroll bar at runtime [message #427315 is a reply to message #427296] Thu, 22 October 2009 00:07 Go to previous message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Well, perhaps it's me; I use Developer 10g which offers property I have mentioned in my previous post. Unfortunately, I don't have Forms 6i so I can't check whether it existed in that version or not. However: where did I mention "scroll_bar" property? 10g's property name is "BLOCKSCROLLBAR_POSITION".
Previous Topic: table fields vertically
Next Topic: how to open document of all office in developer 6i useing OLE2
Goto Forum:
  


Current Time: Fri Sep 20 06:42:37 CDT 2024