Posted By: Aku_Aku
PANEL event problem - 04/04/14 19:56
I have created a panel with pan_create statement.
I have set its event like this:
I've created the function like this:
I inserted the third if into the code, because i was curious am i able to get the state of the panel.
The "EVENT_CLICK" message appeared, but i was shocked when the program aborted with E1513 at that statement.
I was sure i can use the my pointer here, but the message suggests to me it is not true.
Please, help me i would like to get the state of the panel, how should i do that?
I have set its event like this:
Code:
new_panel.event = pan_event_handler;
I've created the function like this:
Code:
function pan_event_handler() {
if (event_type == EVENT_RELEASE) {
printf("EVENT_RELEASE");
}
if (event_type == EVENT_CLICK) {
printf("EVENT_CLICK");
}
if(is(my,ENABLE_CLICK))
printf("ENABLE_CLICK ON");
else
printf("ENABLE_CLICK OFF");
}
I inserted the third if into the code, because i was curious am i able to get the state of the panel.
The "EVENT_CLICK" message appeared, but i was shocked when the program aborted with E1513 at that statement.
I was sure i can use the my pointer here, but the message suggests to me it is not true.
Please, help me i would like to get the state of the panel, how should i do that?