| Claus Dragon 2004-04-27, 4:11 am |
| Hello smalltalkers,
I have a small problem, which is as follows:
The program of mine draws some things inside a Pane using pen. For the
first version of it, i just used a custom method called drawRectangle
to create boxes with some text centered in it.
Now, I need to change the boxes to real clickable buttons, as they
will enable navigation through the different levels of the drawing.
If I click away from the pane, the pen stuff is erased as wanted, but
the buttons remain.
As I always need several tries to get the positioning of the buttons
right (its dynamically depending on the turtle graphic), I am left
with a huge pile of buttons scattered all over the screen, and I have
a hard time to identify which are the latest ones.
Now, I tried to remove them using update for the Pane, but those
remove the surplus buttons _and_ the turtle stuff drawn, which is what
I dont want to.
So, is there a way to make the buttons be erased like the rest of the
turtle graphic when the Pane looses focus, or is there a way to save
the Turtle part of it that I can use update?
Neither Subpanes.doc nor Wbpro.doc nor Langref.doc did help me with
that. If I have missed it in the documentation, just point me to it :)
I would be very grateful for some pointers into the right direction.
Claus
|