EDIT:
Uploadet Version 1.2.
there are two new functions:
-tooltip: shows a tooltip at the mouse position if the mouse doesn't move for 1.5 seconds
-contextmenu: shows a contextmenu on right click. better than show_menu, because you can
add seperators (and in the xp example it is xp style)
haven't uploadet combobox yet, because i have some trouble withe the scrollbar.
Created a new example with win xp style! here's the url
http://msoft.ms.funp...win32api_XP.zip
(copy & paste into adress bar!)
Tell me, if you like/don't like it!
Uploadet new Version 1.1 with
-full mouse support
(now you can select the text with the mouse like a real input box)
-copy
select a piece of text an press [ctrl]+C to copy
-paste
press [ctrl]+P to paste a text
-select all
press [ctrl]+A to select the whole text
I programmed a Win 32 API because there are no good ones.
it doesn't use a dll, there are only scripts!!
the following functions are available:
- input box
- button
- radiobox
- checkbox
- dropdown menu
- volume controler
for each action is only one script. you don't need to initalize it.
and here is the link
http://msoft.ms.funpic.de/win32api.zip
(you must copy & paste it to the address bar!)
here is a short decription of the functions:
Input Box
it's a normal input box like the google search field.
functions:
-if you press shift, you can select text if you press the left/right key too.
-you can go to the beginning/end of the box if you press home/end.
-you can move the cursor if you press the left/right key.
-you can set the cursor to a certain position if you press the left mouse button at the position
you can only have one per object!!!
how to use:
look at the example
Button
it's a win32 button
functions:
-the design is better than the draw_button function in Game Maker
-if you press the button, it returns true
-if can have as many as you want per object
Radiobox
a win32 radiobox
functions:
-you must only indicate the group
-if one radiobox of a group is selected, the others are not selected
-you can indicate whether the radiobox is selected or not
you can only have one per object!!!
Checkbox
a win32 checkbox
functions:
-you can indicate whether the checkbox is selected or not
-you can use as many as you want per object
Dropdown Menu
a dropdown menu
functions:
-to define the items use "Item1|Item2|Item3"
-you can have as many items as you want
-you can have as many dropdown menus per object as you want
Volume Controler
a volume controler
functions:
-it's like the volume controller in windows
-it returns a value between 0 and 100
i hope you like the scripts!!
Edited by msoft, 04 August 2005 - 09:46 AM.











