getting the tgadget from the graphics window

BlitzMax Forums/MaxGUI Module/getting the tgadget from the graphics window

Nate the Great(Posted 2010) [#1]
I wanted to get the tgadget from the tgraphics type returned by the graphics command but I seriously cannot figure it out. It would also be fine to get the pointer to the window object from it just so I can use winapi calls to manipulate it if there really is no tgadget associated with the tgraphics which is what I suspect. Or if anyone knows how to make a full screen window that automatically starts 'in focus' with maxgui via createwindow that would work as well. I figured out if you set the style flag to 0 and use the desktop width and height, you can make it appear full screen but the window starts out of focus and the user has to click on it to get it back in focus which is really annoying after a while.

Last edited 2010


skidracer(Posted 2010) [#2]
Try using ActivateGadget on the canvas in your window to give it focus.


Nate the Great(Posted 2010) [#3]
that works, thanks skid!

although it would be nice to know how to get the pointer to the window object created by the graphics command.