Page 1 of 1
Generate Event loop missing in preferences
Posted: Tue Jul 19, 2022 4:15 am
by jph
Hello,
I have only 4 checkbox in preferences -> Form.
The "Generate event loop" checkbox is missing but I have the "Generate event procedure" one.
How can I have the 5 checkbox like we can see in the Purebasic.pdf page 112 of the english version?
Thanks.
Re: Generate Event loop missing in preferences
Posted: Tue Jul 19, 2022 8:16 am
by mk-soft
For the gadget you must first write the event procedures yourself in an extra file.
Then you can select them in the form editor
Or have a look at my EventDesignerV4 (Signatur).
MyEvents.pb
Code: Select all
Procedure EventButton(EventType)
Select EventType
Case #PB_EventType_LeftClick
;TODO
EndSelect
EndProcedure
Procedure EventEdit(EventType)
Select EventType
Case #PB_EventType_Focus
;TODO
Case #PB_EventType_LostFocus
;TODO
Case #PB_EventType_Change
;TODO
EndSelect
EndProcedure
Re: Generate Event loop missing in preferences
Posted: Tue Jul 19, 2022 11:01 am
by jph
mk-soft wrote: Tue Jul 19, 2022 8:16 am
Or have a look at my EventDesignerV4 (Signatur).
All right. I am going to take a look at your work. And I will try to understand it. But it is the 3.15.5 in your one drive. There is no V4.
But I don't know why I haven't the Generate event loop checkbox in my preferences?
Thank you for your answer.
Re: Generate Event loop missing in preferences
Posted: Tue Jul 19, 2022 11:14 am
by spikey
jph wrote: Tue Jul 19, 2022 11:01 am
But I don't know why I haven't the Generate event loop checkbox in my preferences?
It was removed in Version 5.42 LTS. If I recall correctly this was because the code generated wasn't multi form aware and wouldn't work properly in projects with more than one form designer originated form. Two (or more) competing event loops would be created rather than a single harmonious one. This was, understandably, causing some confusion for form designer users, particularly new ones. The removal is mentioned in the historical change list but the documentation doesn't appear to have been updated fully to reflect this.
Re: Generate Event loop missing in preferences
Posted: Tue Jul 19, 2022 11:56 am
by jph
Thank you. I won't search no more.
Re: Generate Event loop missing in preferences
Posted: Tue Jul 19, 2022 6:16 pm
by mk-soft
jph wrote: Tue Jul 19, 2022 11:01 am
mk-soft wrote: Tue Jul 19, 2022 8:16 am
Or have a look at my EventDesignerV4 (Signatur).
All right. I am going to take a look at your work. And I will try to understand it. But it is the 3.15.5 in your one drive. There is no V4.
But I don't know why I haven't the Generate event loop checkbox in my preferences?
Thank you for your answer.
Oops:
Event Designer v3.15.4 is right
Form Options:
- #PB_Any OFF
- Event Procedures OFF
Re: Generate Event loop missing in preferences
Posted: Tue Jul 19, 2022 6:21 pm
by jph
mk-soft wrote: Tue Jul 19, 2022 6:16 pm
Oops:
Event Designer v3.15.4 is right
Form Options:
- #PB_Any OFF
- Event Procedures OFF
Thank you. It should help.