Jump to content


Photo

Win 32 Api!


  • Please log in to reply
60 replies to this topic

#1 msoft

msoft

    GMC Member

  • New Member
  • 54 posts

Posted 29 July 2005 - 11:29 AM

[SIZE=7]Win 32 API[SIZE]


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.

  • 0

#2 takua108

takua108

    GMC Member

  • GMC Member
  • 582 posts

Posted 29 July 2005 - 03:38 PM

Well done! Finally, a functioning win32 api!
I give this a 9/10
Also, rename the volume control to "vertical spin control", cause that's what it is in Windowsese.
Definately expect this in TOPDOWN, if I can get it to work. Not that it's hard to use, mind you. It's hard to implement into TOPDOWN because I use a pseudo-X-window system, and the controls have to follow the window when dragged...

Also, this is very well coded, except there a few places (read: almost everywhere) where there's a bit much whitespace (extra lines in this case). But other than that, thumbs up!

Edited by takua108, 29 July 2005 - 03:40 PM.

  • 0

#3 PromaneX

PromaneX

    Fixer of broken web things

  • New Member
  • 489 posts

Posted 29 July 2005 - 05:03 PM

Nice work, they work perfectly for me :P
  • 0

#4 BZGaming

BZGaming

    GMC Member

  • New Member
  • 514 posts

Posted 29 July 2005 - 07:11 PM

Also, rename the volume control to "vertical spin control", cause that's what it is in Windowsese.

Actually Microsoft calls them Updowns. If you go do msdn.microsoft.com and find the windows controls section and find the individual controls, they call it an updown...


BZG
  • 0

#5 MarxGames

MarxGames

    GMC Member

  • GMC Member
  • 90 posts

Posted 31 July 2005 - 09:47 PM

dropdown menu should drop down even if you click on text, not just arrow, and input box should be faster(add,delete text)
but overall i like it 9/10
  • 0

#6 pythonpoole

pythonpoole

    Scorpion Software

  • New Member
  • 1894 posts

Posted 31 July 2005 - 10:05 PM

Is it just me or is the link down? Takes me to some jpg pic in a european language :P
  • 0

#7 monkey dude

monkey dude

    Dazed and Confused

  • New Member
  • 424 posts

Posted 31 July 2005 - 10:27 PM

its called german ^ ^

yes the link is down
  • 0

#8 BZGaming

BZGaming

    GMC Member

  • New Member
  • 514 posts

Posted 31 July 2005 - 11:44 PM

Yea, the pic says (in english) "Direct linking is not allowed"... and at the bottom it says "Free PHP hosting with MySQL" but that is irrelavent...


BZG
  • 0

#9 msoft

msoft

    GMC Member

  • New Member
  • 54 posts

Posted 01 August 2005 - 06:11 AM

you must right click on the link, and save target as!!

thanks for the comments!!

-msoft
  • 0

#10 monkey dude

monkey dude

    Dazed and Confused

  • New Member
  • 424 posts

Posted 01 August 2005 - 11:57 AM

invalid/corrupt
  • 0

#11 msoft

msoft

    GMC Member

  • New Member
  • 54 posts

Posted 01 August 2005 - 12:08 PM

right click > save target as does not work.
copy the adress and paste it into the adress bar!
it should work!

-msoft
  • 0

#12 takua108

takua108

    GMC Member

  • GMC Member
  • 582 posts

Posted 01 August 2005 - 04:59 PM

Well that's what I learned in VC++ 6.0, which is obviously obsolete :D
  • 0

#13 NeutralD

NeutralD

    GMC Member

  • GMC Member
  • 22 posts
  • Version:Unknown

Posted 01 August 2005 - 06:20 PM

Hmm, strange hosting...
But, good example! Do you plan to make it in XP style?
  • 0

#14 tpvgames

tpvgames

    was dt_8792

  • New Member
  • 549 posts

Posted 01 August 2005 - 11:53 PM

I have just got this and will be trying it soon :D

BTW the file downlaoded fine for me...
  • 0

#15 msoft

msoft

    GMC Member

  • New Member
  • 54 posts

Posted 02 August 2005 - 06:18 AM

if you want, i can make it in xp style.
if made it in the win 98 style, because i don't like the xp style (i have xp prof.)

i upload version 1.1 soon. there is also a combobox.

-msoft
  • 0

#16 E-magination

E-magination

    GMC Member

  • New Member
  • 773 posts

Posted 02 August 2005 - 06:26 AM

Why we would use your scripts if you cant even use BB code?
  • 0

#17 Ickie

Ickie

    GMC Member

  • GMC Member
  • 156 posts

Posted 02 August 2005 - 10:00 AM

Why we would use your scripts if you cant even use BB code?

<{POST_SNAPBACK}>


Why should we use your scripts if you can't even talk japanese?
  • 0

#18 tpvgames

tpvgames

    was dt_8792

  • New Member
  • 549 posts

Posted 02 August 2005 - 02:09 PM

Why we would use your scripts if you cant even use BB code?

<{POST_SNAPBACK}>



Why we would use your scripts if you cant even use BB code?

<{POST_SNAPBACK}>


Why should we use your scripts if you can't even talk japanese?

<{POST_SNAPBACK}>


What the hell guys :) grow up! Dont turn this topic into a spam war :)

Right to the creator, I tried your scripts but didnt like them too much, well everything was fine apart from the input box :D.

1) input and editing is SLOW....... VERY SLOW...
2) you cannot select text, or right click copy, paste or clear :)

there are my resons, good luck in the future... Now im off for a DLL :P
  • 0

#19 coolbho3000

coolbho3000

    GMC Member

  • New Member
  • 196 posts

Posted 02 August 2005 - 02:23 PM

Nice API, now all I need is a dll to find the windows version so I can switch between the two APIs...
  • 0

#20 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 02 August 2005 - 02:50 PM

I like it but the only problem is that this is not a real win32 api, this is only a good imitation using scripts. Only a DLL could produce the real thing. But good work, anyways.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users