How are you setting the text for your buttons at present? Looks like you have lists of some kind ? I can work something up to set labels on the sprites.
@TIMAI2@Juan_Antonio thank you both for your efforts today. I just got home to my desk. 9pm here in Savannah, GA USA. I am beat.
I will start tomorrow morning on the next round here. about 9 hours maybe.
I am setting the button in Device.GotText That is where it gets json data from device, and does through a few comparisons. in the middle of the JSON string there are is a list of 6 temperatures, the first one is room temperature. it set red or green, all the others set yellow
You enter the text (multiline) before you 'create' a sprite, otherwise you get the hint text.
Turn on the menu to generate a menu when you click a sprite (turn off menu after use)
Delete clears the sprite for later re-use
Edit allows to change the displayed text
Credits to Jerin Jacob (component2Image) and Kevinkun (Regex) for their extensions
When using an Any Button Clicked event, take care to wrap its innards with a test for notAlreadyHandled, to allow other more specific button Click events to work outside of this
generic logic.
Your Screen must have other buttons that you DON'T want to move when you click them, right?
This app works with not issues. I THINK I'm doing exactly the same thing within my complete app. maybe I'm still moving faster than the file can be written??
I'm going to try to trigger the file writing only when that VA is set to invisible or some other event happens, Only storing the position in the variables until.
Rather than writing to file after Kio4_move1.position block, I added a button to write file manually.
Pressing the save button after positioning prevents most of the hiccups.
there is still a small glitch: the buttons all shift about 10 pixels left or right when I write, then read the file, and they shift opposite direction on the next write, read.
It toggles back and forth and I can manage with that, by hitting the save button twice, but still a glitch.
part of my issues have been narrowed down. in another area of my blocks, i have a timer that initiates a use of some of the global variables used in this area.
i set the timerenabled to false with the initiation of a move, and i set it to true after i manually save the file, in order to prevent a double access of the variable.
it is relaying the same information, so i cannot simply use a different variable.