Titlebar error

new BookmarkLockedFalling
mikeukmid
Guest

Guest Avatar

Post by mikeukmid on Feb 2, 2008 11:41:32 GMT -5

Running a program with a titlebar statement errors out.

RB program with 'titlebar' saved as 'testProg_project'
titlebar "My RB application"
print "Testing Testing"
wait


Run testProg as object:
run "testProg", #t
render #t
wait


Resulting error:

Runtime Error in program 'testProg': titlebar "My RB application"
Message not understood: #title:
carlgundel
Administrator
*****
Creator of Run BASIC

carlgundel Avatar

Posts: 975

Post by carlgundel on Feb 2, 2008 16:26:45 GMT -5

mikeukmid said:
Running a program with a titlebar statement errors out.

That's interesting. What should a program using TITLEBAR do when RUN in this way? Should it just work the way it does when the program is run from the Project tab? Or should it do nothing?

-Carl
mikeukmid
Guest

Guest Avatar

Post by mikeukmid on Feb 2, 2008 16:47:02 GMT -5

That's interesting. What should a program using TITLEBAR do when RUN in this way? Should it just work the way it does when the program is run from the Project tab? Or should it do nothing?


If a program is run by clicking a link (in a toolbox application for example) then I would expect the page titlebar to be able to reflect the tool's purpose.


link #L1, "[ Tool 1 ]", [tool1]
link #L2, "[ Tool 2 ]", [tool2]
wait

[tool1]
run "tool1", #t1
render t1
wait

[tool2]
run "tool2", #t2
render t2
wait

And each project would have a titlebar "Tool 1" (or Tool 2)


That was how I came across the problem.
From the page source it appears that titlebar injects <title></title> as expected.

Mike.
Last Edit: Feb 2, 2008 16:54:50 GMT -5 by mikeukmid