|
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn),
581
guests, and 0
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
botton_state
#272156
06/16/09 19:11
06/16/09 19:11
|
Joined: May 2009
Posts: 11 Romania, Targu Mures
F_P_kefas
OP
Newbie
|
OP
Newbie
Joined: May 2009
Posts: 11
Romania, Targu Mures
|
I have a problem, whit the outstanding explanation of button_state function from the manual:
button_state(PANEL*,var num,var state) Changes or returns the button state of a panel.
Parameters: PANEL* Panel pointer. num The number of the button, starting with 1. state The new state of a radio or toggle button, ON (1) or OFF (0). -1 leaves the button state unchanged.
from where starts the COUNTING ?
Which button is 1????? The first declared on the panel ? Do I need something more to set the state of all the toggle buttons of a panel?
hello
|
|
|
Re: botton_state
[Re: F_P_kefas]
#272160
06/16/09 19:18
06/16/09 19:18
|
Joined: Aug 2008
Posts: 133 Sweden, Stockholm
Enduriel
Member
|
Member
Joined: Aug 2008
Posts: 133
Sweden, Stockholm
|
PANEL* = the panel with the buttons you want to modify its state
num = number ID of the button, first declared button is num 1, second declared button is 2 etc
state = if you input 1, then the button number chosen is set to ON, if you put 0, then it's set to OFF.
Last edited by Enduriel; 06/16/09 19:18.
|
|
|
Re: botton_state
[Re: F_P_kefas]
#272289
06/17/09 10:07
06/17/09 10:07
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I tried it back in 7.73 and it worked then. Are you sure your buttons are radio OR toggle buttons? And when counting buttons to get their number, you DO have to count notmal buttons too.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: botton_state
[Re: EvilSOB]
#328539
06/13/10 19:28
06/13/10 19:28
|
Joined: Jul 2004
Posts: 1,710
MMike
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,710
|
Im so sorry , i just now found this post by searching.. and im having the same problem. IT is not working the setting of the button... i will cross link my POST : Button state problem [with code]
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|