Windows / GUI Functionality in Blitz+

Blitz3D Forums/Blitz3D Beginners Area/Windows / GUI Functionality in Blitz+

It is only possible to add spacers via some WinApi calls. Check the code archives
( http://www.blitzbasic.com/codearcs/codearcs.php?code=704 )

You can add keyboard shortcuts. Perhaps you should read the docs ;)

Shortcut keys can be implemented using the HotKeyEvent function. If you wish to show the keyboard shortcut in the menu, you should separate it from the main text using Chr$(8) or Chr$(9). This will ensure that it is correctly positioned in the menu. Chr$(8) results in right aligned shortcuts, whereas Chr$(9) results in left aligned shortcuts. See the example for details.

ALT shortcut keys can be implemented by preceding the desired character in text$ with an ampersand (&). For example, if text$ is set to "&Copy", then the keyboard shortcut ALT-C will trigger the menu event.


To force the size you would simply put a test for event $802 in your main loop, and then resize your window gadget according to your speciffic requirement.

$802 - Window size
Generated when the user sizes a window. EventSource contains the handle of the window gadget that has sized, and EventX and EventY contain the new size of the window.