You are not logged in right now
Home » Game Maker DLLs » Max WinAPI 2
Max WinAPI 2

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 call API_Check_Command.
You don't have to check each control with a separate function thanks to this.

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

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


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


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.

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.

YoYo Games Forum Topic


License:
This DLL is free to use in your application.
If you'd like to donate you can use this button:


Download:
Download "maxwinapi2.zip" (1254 downloads)

Note! The download URLs stay valid for only one hour.
If you want to link to a download, link to this page.
Other DLLs: Max WinAPI - Max WinAPI 2 - Download Manager - Super Video Play - Flash Creation DLL - Ping DLL - Bit DLL - gmFTP - Process Viewer - Avi Extract - CPU Usage DLL - Archiver - Data File DLL - QuikFind - GZip DLL - WinSock - ColorScan - gmID3
Post comment
Name: E-mail:
Location: Homepage:
Message:
Repeat code:
Page
Page 1 of 1 ...
Message
skarik | Homepage23-09-2008 05:17
This DLL has problems. Try this:
Init()
[code]global.GUIwin_tooltip =
API_Window_Create(0,0,0,300,250,WS_BORDER,WS_EX_HIDDEN);
API_Window_SetText(global.GUIwin_tooltip,"Tooltip";);

API_Check_Set(7,global.GUIwin_tooltip);



global.GUIwin_popup_start = API_Window_Create(0,0,0,256,220,WS_BORDER,0);
API_Window_SetText(global.GUIwin_popup_start,"TODO List";);
GUIWin_Init_PopupStart(global.GUIwin_popup_start);

API_Check_Set(8,global.GUIwin_popup_start);



global.GUIwin_object_properties =
API_Window_Create(0,0,0,310,450,WS_BORDER,0);
API_Window_SetText(global.GUIwin_object_properties,"Object Properties";);
GUIWin_Init_ObjProp(global.GUIwin_object_properties);

API_Check_Set(9,global.GUIwin_object_properties);
API_Window_Show(global.GUIwin_object_properties,false);



global.GUIwin_object_list =
API_Window_Create(0,0,200,500,450,WS_BORDER,0);
API_Window_SetText(global.GUIwin_object_list,"Object List";);
GUIWin_Init_ObjectList(global.GUIwin_object_list);

assert(API_Check_Set(10,global.GUIwin_object_list) != 0);[/code]

Step()
[code]//HOLY #$&@ WHY THE $#^% DOESN'T THIS WORK!!!!!!
var command1, command2;
command1 = API_Check_Command(10);

if ( command1 == GUIwin_objlist_add_btn )
{
show_message("Event button";)
command2 = API_Check_SecondaryCommand(10);

if ( command2 == BN_CLICKED ) {
show_message ("You clicked GUIwin_objlist_add_btn.";);
}
}
[/code]
Quote
Message
KaBob799 | Homepage16-09-2008 22:12
Ok I figured out how to open it... you have to extract the file with 7-zip
then add .zip to the extension of the file you extracted then the files
will be inside that.
Quote
Message
KaBob799 | Homepage16-09-2008 22:09
Yeah I tried winzip winrar and 7-zip and none of them could open it.
Quote
Message
Vlad09-09-2008 22:34
Bug Report :
I have a tab that has 3 items. I am using API_Control_SetAutoTab to add
controls to the different items of the tab.
In one item I have added a trackbar control. Whenever I move the slider
of the trackbar, the items from the Tab Control dissapear. I can still
click on them, but they dissapear.
The same thing happens in the default example that comes with MaxWinapi
2.
What is the problem ?
TimisoaraQuote
Message
size4305-09-2008 17:44
the file is corrupted
Quote
Message
Dr Dre | Homepage23-08-2008 22:43
Hey Mr. Bastard
where the fuck u r?
MassachusettsQuote
Message
ahmet | Homepage17-08-2008 11:29
please help me it is urgent
http://gmc.yoyogames.com/index.php?showtopic=392937&view=getnewpost
istanbulQuote
Message
luis Correa17-08-2008 01:23
thank you for your reply but your zip show the next mistake in WinZip or
in WinRar
"! C:\Documents and Settings\maxwinapi2.zip: Final inesperado del
archivo"
please, give me a new link or change your file. thank you
ColombiaQuote
Message
Ahmet | Homepage16-08-2008 22:10
who can help me about this
http://gmc.yoyogames.com/index.php?showtopic=392838
istanbulQuote
Message
Hobbel | Homepage15-08-2008 20:30
Quote Luis Correa 15-08-2008 20:15:
you need to make a zip from win98 or xp
because your zip don't work in previous versions of windows, only in
vista.


It's zipped using WinRAR, so it has nothing to do with Windows.
Maybe this release works ?
The NetherlandsQuote
Message
Luis Correa15-08-2008 20:15
you need to make a zip from win98 or xp because your zip don't work in
previous versions of windows, only in vista.
ColombiaQuote
Message
mastergidan13-08-2008 01:16
Great work Hobbel!

I hope that this can be helpful:

.chm
Max WinAPI 2 Help


And I think that a GEX will be really the MAX! :)
ItalyQuote
Message
gmgex | Homepage08-08-2008 03:21
wooot frsit post on this site for this dll i love it and use it!
Quote