Window parameters

You need some new stunning features ? Tell us here.
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Window parameters

Post by michel »

Hello,

When selecting in the window option "caption is a variable", the variable is not declared as a string?!

kind regards

Michel
User avatar
TI-994A
Addict
Addict
Posts: 2740
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Window parameters

Post by TI-994A »

michel wrote:When selecting in the window option "caption is a variable", the variable is not declared as a string?!
Hello michel. Did you assign any value to the Caption field in the window's properties?

If the Caption is a variable option is selected, the value in the Caption field will be the variable name:

Code: Select all

Window_0 = OpenWindow(#PB_Any, x, y, width, height, something, #PB_Window_SystemMenu)
If the Caption is a variable option is not selected, the value in the Caption field will be the actual caption string:

Code: Select all

Window_0 = OpenWindow(#PB_Any, x, y, width, height, "something", #PB_Window_SystemMenu)
If both fields are left blank, the caption would be a null string:

Code: Select all

Window_0 = OpenWindow(#PB_Any, x, y, width, height, "", #PB_Window_SystemMenu)
Hope that's what you're referring to. :wink:
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Re: Window parameters

Post by michel »

Hello,

In my mind the option "caption is a variable" generates a variable which can be modified during the runtime. So for example switch to another language. I my case the program turn to error because the variable is not declared as a string.

Michel
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Window parameters

Post by Polo »

It's up to you to define the variable where you want :)
Post Reply