Jump to content

Hiding/showing paint


computor

Recommended Posts

 

You need to listen for mouse events and set a boolean if the area was clicked

PSEUDO CODE 

onMouseEvent (EVENT)
 IF (EVENT_CLICK == LEFT CLICK) 
      HIDE = TRUE IF NOT HIDDEN ELSE FALSE


onDraw(Graphics object)
IF (!HIDE)
   DRAW PAINT
ELSE
    DRAW UNHIDE BUTTON

Thanks, I already got the problem fixed myself, just never posted that I did.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...