CreateTabber + mouse functions
BlitzPlus Forums/BlitzPlus Beginners Area/CreateTabber + mouse functions
| ||
If I use the createtabber function I can no longer return mouse functions. As in window=createwindow("test",0,0,800,600) tabber=createtabber(0,0,clientwidth(window),clientheight(window),window) while keydown(1)=false if mousedown(1)=true then end wend that code will not end when I press the left mouse button. Im sure theres a logical explanation, I just cant figure it out :P If I change it to keydown(57) that will end when I press the space button and if I remove the tabber it will close down the program upon the left mouse button. Any info on this and I would be grateful |
| ||
shouldn't you use the GUI-Events system, if you use the GUI?Const MOUSE_DOWN=$201 Const GADGET_ACTION=$401 Const WINDOW_CLOSE=$803 Repeat EventID%= WaitEvent() Select EventID Case MOUSE_DOWN DEBUGLOG "Mouse" Case GADGET_ACTION DEBUGLOG "Gadget" Case WINDOW_CLOSE End Default DEBUG "unknown ID=" + EventID End Select Forever End |
| ||
yeah I was using the GUI event actions at first but they dont work either(the gui keydown commands work though) Think Ive figured it out though. It would appear as though no mouse functions work whilst over a tabber gadget Im just doing some testing now |
| ||
yep that was it. my real problem was the group of my canvas was wrong so the tabber was on top(although the canvas was visible :S ) |