Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,293 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: button wont work [Re: enrike] #281416
07/27/09 06:59
07/27/09 06:59
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
hopfel Offline
User
hopfel  Offline
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
try this:

#include <acknex.h>
#include <default.c>

var watch ;




PANEL* pTest =
{
pos_x = 10; // CONTROL PANEL POSITION IN WINDOW
pos_y = 10;
size_x = 150;
size_y = 300;

layer = 2;

button(10, 10, "boton2.bmp", "boton1.bmp", NULL, test, NULL, NULL);

red = 128;
green = 128;
blue = 128;
flags = LIGHT | VISIBLE;
}

function test()
{
watch = 1234;
printf("on");
}

function main()
{
video_mode = 6;
mouse_mode=2;
while(1)
{
mouse_pos.x=mouse_cursor.x;
mouse_pos.y=mouse_cursor.y;

wait(1);
}}


Hilf mir, dir zu helfen!
Re: button wont work [Re: hopfel] #281420
07/27/09 07:22
07/27/09 07:22
Joined: Jul 2009
Posts: 40
E
enrike Offline OP
Newbie
enrike  Offline OP
Newbie
E

Joined: Jul 2009
Posts: 40
THANKS!!!! it works!

but having to do this is really weird ...

mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;

Page 2 of 2 1 2

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