How do I bridge from a rollout to another

(
 
global spn, label1
 
rollout test2 "test2"
(
 
  spinner spn "spinner"
	label label1 ""
)
 
rollout test1 "test1"
(
	button btn "ok"
 
	on btn pressed do
	(
		btn.text="okey"
		test1.title="test1rollout" as string
		spn.text="spinner ok"   -------eror
		label1.text = "okey"    -----------eror
	)
)
 
 anapen = newRolloutFloater "YÜZ KONTROL 1.5" 200 200	
addrollout test1 anapen 
 
addrollout test2 anapen    rolledup:false 
 
 
)

How do I
bridge from a rollout to another
I want to change spn.text, label1.text and test2.title on btn pressed do
Where did I go wrong?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

There are no "spn" and "lbl"

The way you tried this with globals does not work.
You have to tell it where to find the UI items using the dotted notation:

     test2.spn.text="ok" 
     test2.label1.text = "okey" 

Cheers

Never get low & slow & out of ideas

yunusbbayram's picture

:D easy as winking thank you

:D easy as winking thank you br0t

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.