Jump to content


Photo

Max Winapi 2


  • Please log in to reply
154 replies to this topic

#1 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 18 July 2008 - 10:26 PM

This DLL allows you to create Windows Controls in Game Maker.

This dll currently has 460 functions.
See the function list at the online documentation.

The control events are checked with a function called API_Check_Command.
You don't have to check each control with a separate function call thanks to this.

Each control has a Control ID instead of window handles in behave of the command checking and memory allocation, but this can be converted back to a window handle handle if you would need that.

Almost every control has style flags, to make them highly custimizable.

Posted Image
A static control, an edit control and two radio buttons on a game window.
(Thanks to screen_save_part)


Posted Image
The example running in Windows Vista.

Supported Controls

  • Animation Controls
  • Button controls
  • Radio buttons
  • Check boxes
  • Combo boxes
  • Date and time controls
  • Edit controls
  • Hotkey controls
  • IP Adress controls
  • Listbox controls
  • Listview controls
  • Month calendar
  • Progress bars
  • Rebar controls
  • Rich edit controls
  • Scrollbars
  • Static controls
  • Status controls
  • Syslink controls
  • Tab controls
  • Toolbar controls
  • Tooltip controls
  • Trackbar controls
  • Tree view controls
  • Up down controls
  • Menu's/Popup menus

Fast Window Shaping
Using the included program "RegioMaker" you can convert bitmaps to region files, which are loaded directly into the memory (shaping windows with bitmaps is usually slow).
Support for bitmaps is still included though.

Styling functions (only for control types where it's pratical)
Improved styling enables control transparency for controls placed on tab controls, control transparency for windows with a background image, control tranparency for the game window (if you use screen_save_part to get the background image).
You can also use background colors or background bitmaps on a control or create background gradients using drawing and graphic buffers.

Font aliasing
Enable font aliasing for controls, like truetype does. (will be put in the example soon)

Graphic buffers
Dynamically generate bitmaps in the memory which enable you to draw stuff on things like system tray icons.

Drawing functions
The drawing functions can be used on graphic buffers to draw text and shapes and gradients.

Drawing system
The drawing system enables you to draw stuff on a WinAPI window.

Dialogs
The DLL supports dialogs to open files, input strings and numbers and support message boxes.

MDI support
Use Windows MDI to create a Multiple Document Interface application.

Resource handling
By giving resources like bitmaps handles, you don't have to load the same bitmap double into the memory.

Many functions, like the graphic buffers, will need some good examples to be understandable, so I will build an example system in my site later on.

Go to the download page

Edited by h0bbel, 20 January 2010 - 12:37 PM.

  • 0

#2 softhunterdevil

softhunterdevil

    LazyBoy

  • GMC Member
  • 276 posts

Posted 19 July 2008 - 03:21 PM

WOW!!! After so many days it released.
I have to check it out.
Thanks h0bbel.
  • 0

#3 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 19 July 2008 - 04:05 PM

WOW!!! After so many days it released.
I have to check it out.
Thanks h0bbel.


Yea I didn't have time in the past half year. ;)
  • 0

#4 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 19 July 2008 - 05:48 PM

Nice.... Glad its out, on a more off topic note, what language did you make it in?

I'm downloading now.

edit: grr your download links never work for me on this computer, I always have to find another comp and download so I dont get a corrupt zip.... (its me though not you) might take longer to look at it then I thought.

edit2: Nicely done. Looks great. I can tell you put a lot of work into this. Personally, I like the help file look and list of functions view, I also like the newer method of checking what happens. Can't wait for others opinions. Time to go play around. This is going to keep me busy for hours.

edit3: Looks like this is in the step event switch for Command twice. Once at the beginning and one at the end. I am thinking that this is a mistake. Let me know.
case WM_DESTROY:
			game_end ();
		break;
edit4: Grr someone post so I don't have to keep editing. Now I don't know if this is just me or not but the combo box drop down list starts with a black backrgound and so does something else I think the slider. Also the listview doesnt register a double left click on the actual item, only the whitespace underneath them. Let me know if its the dll or me.

Edited by molloyboy08, 20 July 2008 - 02:45 AM.

  • 0

#5 liverol

liverol

    GMC Member

  • GMC Member
  • 163 posts

Posted 20 July 2008 - 04:10 AM

OMG,finally,here it is!
thanks for all you have done!!!
  • 0

#6 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 20 July 2008 - 09:39 AM

Nice.... Glad its out, on a more off topic note, what language did you make it in?

I'm downloading now.

edit: grr your download links never work for me on this computer, I always have to find another comp and download so I dont get a corrupt zip.... (its me though not you) might take longer to look at it then I thought.

edit2: Nicely done. Looks great. I can tell you put a lot of work into this. Personally, I like the help file look and list of functions view, I also like the newer method of checking what happens. Can't wait for others opinions. Time to go play around. This is going to keep me busy for hours.

edit3: Looks like this is in the step event switch for Command twice. Once at the beginning and one at the end. I am thinking that this is a mistake. Let me know.

case WM_DESTROY:
			game_end ();
		break;
edit4: Grr someone post so I don't have to keep editing. Now I don't know if this is just me or not but the combo box drop down list starts with a black backrgound and so does something else I think the slider. Also the listview doesnt register a double left click on the actual item, only the whitespace underneath them. Let me know if its the dll or me.


Well, I fixed the combobox background, it ran some transparency code which a combobox cannot support.
And the double code was a mistake, so I removed that.
  • 0

#7 alexw

alexw

    GMC Member

  • New Member
  • 103 posts

Posted 20 July 2008 - 01:59 PM

Is there an way to inport an GM object into an created Max WinAPI window?
Or to load an GM room into an created Max WinAPI window.

Thx,
Alexw

Edited by alexw, 20 July 2008 - 02:00 PM.

  • 0

#8 bour1992

bour1992

    GMC Member

  • New Member
  • 316 posts

Posted 20 July 2008 - 04:44 PM

I have a question before download it.
Can it change the color of the text in radio buttons?
Thanks in advance.
  • 0

#9 guitarbball0092

guitarbball0092

    Ruthless Gamer

  • New Member
  • 325 posts

Posted 20 July 2008 - 05:35 PM

This is a cool DLL. I will use this for the HTML Editor I might make. :P
  • 0

#10 alexw

alexw

    GMC Member

  • New Member
  • 103 posts

Posted 20 July 2008 - 06:11 PM

I think the tray system is bugged.
The game cant receive any command from the tayicon.
Not even in the example that is included.

Alexw
  • 0

#11 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 20 July 2008 - 07:24 PM

It's quite good! Did you make this in Delphi or C++?
I never managed to find a free component for windows skinning except Project JEDI's.
Must say it's a good find, but needs some work to perfect it.

I also noticed that the test window doesn't redraw itself correctly (it took the image of my taskbar).

All in all good work!
  • 0

#12 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 21 July 2008 - 12:51 AM

I thought the double code was a mistake...

Edited by molloyboy08, 21 July 2008 - 12:58 AM.

  • 0

#13 digitalwar

digitalwar

    GMC Member

  • New Member
  • 321 posts

Posted 21 July 2008 - 08:12 PM

Does it have skin support ?
I tested it and it's great, a lot of new improvements !
Thank you for this DLL, but skin support would have been great :lol:
  • 0

#14 jcoc611

jcoc611

    GMC Member

  • New Member
  • 186 posts

Posted 21 July 2008 - 08:55 PM

I'm having problems using the menu function.

The menu appears, I try to make a file dialog appeared when I clicked "Open", but it didn't worked :mellow:
  • 0

#15 guitarbball0092

guitarbball0092

    Ruthless Gamer

  • New Member
  • 325 posts

Posted 22 July 2008 - 05:51 AM

With the rich edit, how do you get the text? When I try GM freezes up. Also, what's raw text and how do you change it to... not raw text???
  • 0

#16 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 23 July 2008 - 08:38 AM

So it is able to put controls in the game window now?
Does that mean I can put a video control in my game?
  • 0

#17 bour1992

bour1992

    GMC Member

  • New Member
  • 316 posts

Posted 23 July 2008 - 11:25 AM

I have two questions about that dll.

I want to add radio buttons in my game.
First of all, can I make the radio buttons in the default window of GM or i have to make a new window with this dll?

Secondly, can I change the color of the text next to radio buttons?
(if yes, with what function?)

Thanks in advance.
  • 0

#18 alexw

alexw

    GMC Member

  • New Member
  • 103 posts

Posted 24 July 2008 - 04:39 PM

When does the System Tray Function be fixed.
I rly need it for my program.

Alexw
  • 0

#19 Hockeyflyers

Hockeyflyers

    Hockeyplayer Games

  • New Member
  • 1108 posts
  • Version:Unknown

Posted 25 July 2008 - 12:50 AM

The zip file is invalid or corrupt.

The dll looks nice, though!
  • 0

#20 11eromesburg

11eromesburg

    GMC Member

  • New Member
  • 9 posts

Posted 25 July 2008 - 01:26 AM

wow u rock at makeing dlls they all rock haha. :GM109:
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users