No vertical scroll bar in Bronze?

I initially posted this in the forums but have not received any feedback. Then I started wondering if it might just be a bug and thought I'd post it here also. Thanks for any help. Even if it's just confirmation that I can't get a vertical scroll bar in Bronze.

I purchased the 5.5 True BASIC Bronze book & cd a little over a week ago and also have the book Programming in True BASIC. I have Windows XP home edition, if that matters. I can generate a window based on info in the Programming in True BASIC book, pages 449-450, but can't get a vertical scroll bar. It seems like all I need to do is include vscroll in the attributes list, but no vertical scroll bar appears. My sample program to test this out follows:

LIBRARY "C:\Program Files\TB Bronze\TBLibs\TrueCtrl.trc"
CALL TC_Win_Create (Wid,"TITLE|SIZE|CLOSE|VSCROLL", .1, .9, .6, .9)
CALL TC_Win_SetTitle (Wid,"Vertical Scroll Test")
CALL TC_Show (Wid)
CALL TC_Win_Active (Wid)
CALL TC_WIN_Target (Wid)
FOR i = 1 TO 100
PRINT "This is test line "; STR$(i)
CALL TC_Cleanup

It seems to do everything right except give me the scroll bar, which I'd really like to have for a program I'd like to write that is going to generate more than a screen's worth of text data.

Am I just doing something terribly wrong, which actually is my hope, or does the Bronze edition not support the scrollbar feature?

Thanks for any thoughts on fixing this or letting me know I should abandon it. My alternative is to keep track of lines printed to the screen and then prompting the user to press a key to continue, in which case I can just do that to a regular output window.


re:scroll bar

Not sure of the problem--maybe internal defaults, but add:

call tc_winvsbar_setrange(wid,0,100,1)

and you should see the scroll bar. Making it useful is up to you! ;-)

An additional note to others that may read this. I'm now confused as to what comes with Bronze (being a 'Gold man' myself). A number of previous messages indicated that the Tc Controls library was NOT part of the Bronze package, but (maybe just the CD?) here it seems to be.


re:scroll bar

I added that line and now there is a vertical scroll bar. Thanks! I really appreciate your response.

But curiously, I'm not able to scroll up to get at the lines that have scrolled by. It's as if the existence of the scroll bar and actually being able to use it are not related, perhaps it's not fully functional in Bronze. But after I installed from the CD that came with the Bronze book I do have a TBLibs folder that contains a file called TrueCtrl.trc, so I thought I'd give it a try.

I think I'll just have to think of a work around for displaying more than a screen's worth of text, probably keeping track of a line count.

Scroll bars


The TrueCtrl library just creates windows objects such as push buttons, check boxes and scroll bars. It is up to you, the programmer, to link the scroll bar to the text in the window. It is not done automatically for you. There one exception - the Txed control. This is basically a text box and includes text wrapping, scroll bars and anything else you might need to handle text.
WARNING: the text box is very difficult to handle and has a few bugs too.

Big John