hpw
Full Member
Posts: 30
|
Post by hpw on Oct 22, 2020 5:06:55 GMT
Hello,
With the DRAW tools we can bring info on the screen.
>>Notice that after the TIME value the graphics expires from the screen when the background changes behind them.
What about a command to reset this info by macro? That would make it possible to show a second info page or clean the screen without a background change.
1 | RUN ACTION | DRAW | RESET
or
1 | RUN ACTION | DRAW | REDRAW or 1 | RUN ACTION | DRAW | REFRESH
Regards Hans-Peter
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 22, 2020 5:24:36 GMT
Hello,
Or alternativly when this is to expensiv:
1 | RUN ACTION | DRAW START | At Location [X:2768 Y:602]::Size [W:100 H:50]
...
...
...
X | RUN ACTION | DRAW END
Then the engine would screenshot the DRAW area before and restore it on END.
Regards
Hans-Peter
|
|
|
Post by Steve on Oct 22, 2020 8:59:14 GMT
Hi hpw So essentially the idea is that the DRAW command can save a series of DRAW statements and replay them? I like that. Have you seen the PAINT PATH debug options? Have a look at the condition page for debug www.turnssoft.com/conditions.html#debug. PAINT PATH OPTIONSPAINT PATH OPTIONS set the paint path paramaters for the MMM running instance. 'Paint Path' is 1 | RUN ACTION | DEBUG | PAINT PATH::COLOR [BLACK 3] 2 | RUN ACTION | DEBUG | PAINT PATH::FILL [YES] 3 | RUN ACTION | DEBUG | PAINT PATH::TIME [1 50] 4 | RUN ACTION | DEBUG | PAINT PATH::CIRCLE Line 1 - Set the COLOR to black with a size of 3. Standard color values are accepts and line size of 1 to 10 (10 being largest). Line 2 - Set to FILL the color area. FILL [NO] will produce an outline around the color area. Line 3 - Set the TIME value. The example [1 50] sets a TIME value to retain the paint area for 1 seconds with a refresh value of 50 milliseconds. Line 4 - Set the shape value. CIRCLE or RECTANGLE are accepted.
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 22, 2020 10:14:33 GMT
Hello Steve,
I do not meant that. I want to DRAW with several lines somthing on Screen and then wipe it out by code with the prior screen background and then several other DRAW lines made another screen info. So precise control of what is visible of the DRAW content. No dependency from background refresh events.
Regards Hans-Peter
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 22, 2020 16:10:33 GMT
Hello,
An optional approach would be:
Use the (hopefully) new command PIXEL SAVE to save the info screen area to file.
Use several DRAW commands to draw the info1 to that area.
Wait some time for reading info1.
Use DRAW PICTURE to draw the saved screen area back to screen.
Use again several DRAW commands to draw the info2 to that area.
Wait some time for reading info2
Use DRAW PICTURE to draw the saved screen area back to screen.
Regards
Hans-Peter
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 22, 2020 19:10:32 GMT
|
|