Hi Bernd,
Thanks for your help. I downloaded your posted example and will try to learn from it.
Regarding the design and implementation: I am sure that it will need to be done differently, once I can better understand RunRev's capabilities. I value your expert suggestions. I am not tied to a specific way and would very much prefer to develop the tool by using what works and what can take advantage of RunRev's impressive capabilities.
Meanwhile, I kept playing with the code, used the dictionary, another forum posting and created a line drawing code:
Code: Select all
on mouseUp
reset the templateGraphic
set the style of the templateGraphic to "line"
global num_of_user_lines
if num_of_user_lines = empty then
put 1 into num_of_user_lines
end if
//create Graphic ("userline" & num_of_user_lines)
add 1 to num_of_user_lines
choose graphic tool
end mouseUp
This code is
not working correctly: (1) once the button that has this code is clicked, there is no way to end line drawing (can't click another button without drawing another line), and (2) since I had to comment out: //create Graphic ("userline" & num_of_user_lines), naming correctly (name +1) is missing.
Even if this will not be the final design, I am "learning by doing." So, I would like, if possible, to fix the code for this line drawing.
Then, I would like to see if I can combine the 3 items created so far (inserting images, inserting text and line drawing) and figure out how a user drawing can be saved in an editable file format (XML?), so that it can be opened from that file and the drawing can be edited/changed/items deleted or added, etc.
I think this saving/opening/selecting for editing code may be a veryy difficult challenge.
Please suggest how I can do this, including any code example for me to work with (helps learning by doing...).
Again, thanks.
Kind Regards,