; did this here in the reply-box, w/o testing, hope it works :)
try this:
;create a window, and 2 canvases named Menu1 and Menu2
repeat
waitevent()
if eventid()=$201 ; canvas click
if eventdata()=1 ; LMB
select eventsource()
case Menu1
blah() ; asuming you have a blah function
case Menu2
blah() ; asuming you have a blah function
end select
endif
endif
if eventid()=$803 quit=true
until quit
end
; btw... 5 terrabyte HD for what? :) That's *5* TB!
try this:
;create a window, and 2 canvases named Menu1 and Menu2
repeat
waitevent()
if eventid()=$201 ; canvas click
if eventdata()=1 ; LMB
select eventsource()
case Menu1
blah() ; asuming you have a blah function
case Menu2
blah() ; asuming you have a blah function
end select
endif
endif
if eventid()=$803 quit=true
until quit
end
; btw... 5 terrabyte HD for what? :) That's *5* TB!