Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - + [BlueGUI] Basic framework for a windowed utility

Author
Message
Le Verdier
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: In the mosh-pit
Posted: 10th Jan 2012 19:12 Edited at: 28th Feb 2012 16:38
Minor changes to the source code:
-EventQueueEmpty = (_EventType = 0) instead of (_EventSource = 0)
-Added : Set Window On : in CreateUI() The screen is no longer cleared when the window is resized

It does nothing else than drawing a beautiful gradient box..

But it shows how to handle:

- DBPro window setup
- DBPro window lost or desktop resolution changed
- Shortcuts disabled when app inactive
- Titlebar deactivation problem
- Efficient event handling





This basic version is good start for this kind of app..
Better than longs explanations, I've added a few comments in the code...


This snippet is a part of my Simple 3D Sandbox

Overlord
17
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Germany
Posted: 1st Feb 2012 22:46
Thanks for sharing that code snippet.

Login to post a reply

Server time is: 2024-03-29 08:54:48
Your offset time is: 2024-03-29 08:54:48