button and panel skills

Posted By: Reconnoiter

button and panel skills - 07/22/14 19:32

Howdy,

How does someone retrieve the panel's skill_x/skill_y inside one of its button functions?

Say I have panel A with skill_x = 21. Panel A has button B which has a click function. Now I want that when I click button B, I can access panel's A skill_x inside that function.

So I need something like the 'you' pointer, but than for panels.

tia
Posted By: Superku

Re: button and panel skills - 07/22/14 20:13

Isn't one of the (optional) button function parameters the panel pointer? (-> Manual)
Posted By: Reconnoiter

Re: button and panel skills - 07/23/14 13:31

Your right tnx, I overlooked these lines in the manual under 'button' (incase someone else wants to know it):

Quote:
Several buttons may share the same function. The number of the button is passed as the first parameter to the function (1 = first button), the panel pointer is passed as the second parameter.
© 2024 lite-C Forums