Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/24/26 01:54
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 6,823 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pan_setbutton and button_state #259451
04/06/09 07:43
04/06/09 07:43
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline OP
Expert
EvilSOB  Offline OP
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Hi, can you have a quick look at the above functions.

pan_setbutton seems to work fine BUT button_state doesnt seem to be able to change the state
of a togglebutton created with pan_setutton.

[EDIT]radio-buttons work OK, normal buttons I cant test.

example code
Code:
//
pan_setbutton(panel,0,2,10,10,SL_exit,SL_exit,SL_exit,SL_exit,butnum,NULL,NULL);   //first element created 
//sucessfully created as button "1", tested by butnum function.

button_state(panel,1,0);  //make sure status is OFF
diag_var("b1= %.0f\n", button_state(panel, 1, -1)); //diag status - should be off, and is.

button_state(panel,1,1);  //set to ON
diag_var("\nb1= %.0f\n", button_state(panel, 1, -1)); //diag status - should be on, BUT ISNT.
//
//
//




"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: pan_setbutton and button_state [Re: EvilSOB] #259504
04/06/09 14:53
04/06/09 14:53
Joined: Jul 2000
Posts: 28,142
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,142
Frankfurt
There seems to be indeed something wrong. I'll look into this. This will be fixed in the next update.

Re: pan_setbutton and button_state [Re: jcl] #259538
04/06/09 16:17
04/06/09 16:17
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline OP
Expert
EvilSOB  Offline OP
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Many thanks


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | 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