Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (TedMar), 1,420 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
win api #206277
05/12/08 17:22
05/12/08 17:22
Joined: Apr 2008
Posts: 17
S
slowglider Offline OP
Newbie
slowglider  Offline OP
Newbie
S

Joined: Apr 2008
Posts: 17
hey i am reletavie new to gs but know the basic

i am trying to use win api but i dont seem to get it done

i just want some stuff like file->open,save,save_as,exit
if thats posible white gs

also i have a qeustion about void and func

whats the differnt between void en fuction?

Re: win api [Re: slowglider] #206279
05/12/08 17:34
05/12/08 17:34
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
yes it is possible.

and i guess you can return vars to function s.


3333333333
Re: win api [Re: Quad] #206280
05/12/08 17:36
05/12/08 17:36
Joined: Apr 2008
Posts: 17
S
slowglider Offline OP
Newbie
slowglider  Offline OP
Newbie
S

Joined: Apr 2008
Posts: 17
thx for your fast reply

gs dont let me use class how can i change that

has sombody a small exaple for what i want?

Re: win api [Re: slowglider] #206303
05/12/08 20:36
05/12/08 20:36
Joined: Apr 2008
Posts: 17
S
slowglider Offline OP
Newbie
slowglider  Offline OP
Newbie
S

Joined: Apr 2008
Posts: 17
i got now this but i dont know how to retrieve the the clicked button

function main()
{
wait(1);

HMENU menu=CreateMenu();
HMENU hSubMenu=CreateMenu();
InsertMenu(hSubMenu,0,MF_BYPOSITION|MF_STRING,1,"BEEP");
InsertMenu(hSubMenu,2,MF_SEPARATOR|MF_BYPOSITION,0,"");
InsertMenu(hSubMenu,1,MF_BYPOSITION|MF_STRING,2,"QUIT");
InsertMenu(menu,0,MF_BYPOSITION|MF_STRING|MF_POPUP,hSubMenu,"File");

SetWindowLong(hWnd,GWL_WNDPROC, WndProc);

SetWindowLong(hWnd,GWL_STYLE, WS_CAPTION+WS_SYSMENU+WS_MINIMIZEBOX+WS_MAXIMIZEBOX+WS_SIZEBOX);
SetMenu(hWnd,menu);
ShowWindow(hWnd,SW_SHOWMAXIMIZED);


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1