Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 767
Posted: 07:53pm 04 Mar 2025
Copy link to clipboard
Print this post
I have a program that has two screen designs, both have frame objects in them. on the second screen, I want to use different texts for the frame. This second screen uses the same set of objects that contain the same types display data, but the data will be updated from different sources depending on what the end user has selected. So, the main frame "title text" needs to change dynamically.
Normally you would create the frame object like this: GUI Frame 1,"frame text here",10,10,460,60,RGB(yellow)
I created a text variable: DIM frame_title as string length 20 ' to hold the text I want then create the frame: GUI Frame 1,frame_title,10,10,460,60,RGB(yellow)
I seems to work the first time I show the frame, but does not change after that...
Also, I have tried to use the "setup 1" "setup 2" call outs when creating the screen designs and then tried using the "page 1" "page 2" commands when trying to switch screens but it doesn't seem to work, so I went back to using "hide" & "show" object commands to switch between the two screens...
Currently running ver5.05.04 firmware on a Microchip 64 pinner with a 5" LCD...
Not sure if this is possible to do this or not Thanks for any advice...
Edit: Not a biggie if not doable... I will just create 8 different frames and call in the correct one when needed... All good... Edited 2025-03-05 11:21 by Zonker