|
Using native Windows GUI with Allegro |
Paul whoknows
Member #5,081
September 2004
|
It is possible to use windows GUI (menu bar, combobox, labels, listbox, etc) with Allegro? My level editor should look like this: http://www.freeimagelibrary.com/images/PaulPaul/ss2_3.png I know there are a lot of free GUIs for Allegro, but I don't want to use them, most Allegro GUIs were designed for games, not for applications, and my level editor should look like a serious application. ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
Archon
Member #4,195
January 2004
|
Quote: It is possible to use windows GUI (menu bar, combobox, labels, listbox, etc) with Allegro? Yes. You should be able to 'blit' Allegro into a picture-box (or any other widget) because they all have HWNDs/HDCs. Obviously you'll lose that cross-platform ability - maybe someone will recommend wxwidgets or other. |
Specter Phoenix
Member #1,425
July 2001
|
Off-Topic Question: If Windows uses HWNDs/HDCs what do other OSes use? If anything.
|
Paul whoknows
Member #5,081
September 2004
|
I think I'll need some help:-/
Quote: Obviously you'll lose that cross-platform ability Yes, I am working only on Windows at the moment. ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
Archon
Member #4,195
January 2004
|
I don't know WIN32 API. I tried learning it with DirectX 6 but it was a mistake at my level. I learnt most of the Windows programming stuff via Visual Basic 6. Look at these functions (and others) described in the Allegro Manual: win_set_window(HWND wnd); blit_to_hdc(BITMAP *bitmap, HDC dc, int sx, sy, dx, dy, w, h);
|
Paul whoknows
Member #5,081
September 2004
|
It would be possible to write a wrapper for this purpose instead? so I can keep my code 100% allegro-friendly:D, those win32 code lines hurts my eyes badly every time I see them:( ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
Archon
Member #4,195
January 2004
|
Quote: It would be possible to write a wrapper for this purpose instead? Just a question, are you going to be using the WIN32 widgets only for a map editor? If so, I personally would have just have used C# or VB.NET which is almost as easy as VB6 to do form based applications. |
Paul whoknows
Member #5,081
September 2004
|
Quote: Just a question, are you going to be using the WIN32 widgets only for a map editor?
A "map editor" is not what I have in mind, a complex level editor instead, you know (tiles, objects placement, enemies, AI, mission creation, routes, story, etc). Quote: I personally would have just have used C# or VB.NET which is almost as easy as VB6 I want to make my level editor interactive, so the game "engine" has to be running inside the level editor ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
Specter Phoenix
Member #1,425
July 2001
|
Why not use QT4 Open Source for Mingw? GUI for all OSes and skinnable too?
|
Paul whoknows
Member #5,081
September 2004
|
Can you give me a link? [EDIT] It seems that QT is something more than a GUI, and it is expensive! ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
Thomas Fjellstrom
Member #476
June 2000
|
Quote: It seems that QT is something more than a GUI So is Win32. Quote: and it is expensive! Expensive, IF you dont want to use the GPL version. Othwerwise its free for linux, osx, and windows. -- |
Archon
Member #4,195
January 2004
|
Quote:
Also I am thinking to change from MSVC6 to MingW, but I don't know where to start:-/ Dev-C++ would come with MinGW unless you get the one that says "IDE only" or "compiler not included". It's so simple that I did it |
Arthur Kalliokoski
Second in Command
February 2005
|
Look in /allegro/tests/win for some examples that use regular windows programming stuff along with allegro. They all watch too much MSNBC... they get ideas. |
Paul whoknows
Member #5,081
September 2004
|
That's exactly what I wanted!, a true win32-allegro hybrid program. ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
|