Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by dr_panther. 05/18/24 11:01
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
2 registered members (7th_zorro, dr_panther), 724 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
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