dynamic buttons are created by pressing MAKE Button
Button XY are saved after each move
I've verified that the file contains the correct saved XY
Clear screen deletes all the buttons
Read button reads each Button and XY, creates button and drags to saved XY
where it shows up on the screen doesn't correlate to the saved position, or as far as I can tell, the XY set in the Drag to position Call.
im storing the coordinates and then reading them and confirming them.
i dont know that it makes any difference where i store them if i verify they are whole in the end. but its worth a try
this is what I'm trying to achieve
I want to be able to place the text over an image relative the actual location of the source sensor location
the underlying image is a floorplan or blueprint of an actual building.
the building floorplan will not always be the same so the text will need to be relocated.
also the number of sensor values being displayed will vary
In this example, i just made 8 new buttons. and let the app decide their default location upon creation.
I then dragged them , saved them, cleared screen and recalled them
next as a test I am going to attempt to do this without saving, just hard code in the locations and go from there, this will eliminate translation error
I overlooked something here.
screen size matters. the field for the buttons is about 400x600
the far right button should be about halfway down the screen
it appears that the movement it to the device screen size , not the app screen size.
the screen size displayed is from screen1.height and width
by those dimensions the components seem to be near expected position
here I have a mostly stable app, except the buttons don't stay where I put them.
I have test labels to show the whole file before writing and after reading which are daisy chained with AFTER SAVING BLOCK.
The top scroll views show the list of data when opened and before saving
Im now getting correctly the values back that i saved, and the xy is written in the button text, but the position of the button is clearly not what's written ON the button
can the disparity between the object and the touch be lessened?
I cant drag an object to top of screen because of it. yes, it was like that before, also. as a work around, I can manually set the position or tweak it in the setup page
I uploaded screencast but you cant see my cursor so didn't illustrate much
many thank yous for helping.
it looks like you modified the extension not the body of my blocks so much.
aside from my blocks being elementary, there were no errors in blocks?
working smoothly it seems
there is still a glitch with the last button. i will clean up my blocks this evening and test as much as i can.
i will be afk for a few hours
I have used CompCreator instead of Dynamic Components, and KIO4_Move instead of Repositioning Tools. The only downside is that to "register" a button to move, you have to press it once, then press again and hold to move it. You have to do this each time. Last position of a button is always saved.