Is there a way to remove the title bar completely from an app frame? I would like to build custom GUIs for my programs, and the title bar gets in the way.There is currently no native way of doing that in QB64.
Also, when I use $Checking:OFF the close button[X] on the title bar doesn't function. When you click it, it will visually "click," but it will not close the app window.It is not recommended to use $CHECKING:OFF an never to turn it back ON. The idea of checking:off is that is disables all event checking - system events like the close button and TIMERS included - for when your program needs to perform an intensive task. But then you should turn it back on, or you get side effects like the one you described.
And, one last thing. If I use _screenhide to minimize my window, I can't restore the app by clicking it's button on the taskbar. It stays minimized on my taskbar. Is there something I'm missing, or does _screenhide not do what I think it does?It apparently doesn't do what you think it does. _SCREENHIDE literally hides the screen, which needs to be programmatically shown again with _SCREENSHOW.
Fullscreen won't show a title bar, of course. I understand Omerta wants a borderless window - notice how he talks about removing the title bar from an app frame.
'~'
Steve is right! And you can simplify that sample like this:Code: QB64: [Select]
'============ 'NOBORDER.BAS '============ GWL_STYLE = -16 WS_BORDER = &H800000 _TITLE "No Border" hwnd& = _WINDOWHANDLE winstyle& = GetWindowLongA&(hwnd&, GWL_STYLE) a& = SetWindowPos&(hwnd&, 0, 0, 0, 0, 0, 39) winstyle& = GetWindowLongA&(hwnd&, GWL_STYLE) a& = SetWindowPos&(hwnd&, 0, 0, 0, 0, 0, 39) PRINT "The end"
GLUT_BORDERLESS seems to vary by the window manager on X11, though twm (for example) performs very similarly to WIN32. But KDE's window manager (for example) does not let you send keystrokes to borderless windows without OpenGLUT hacks.
The world don't move to the beat of just one drum,
what might be right for you, may not be right for some.