Generate Event loop missing in preferences

You need some new stunning features ? Tell us here.
jph
New User
New User
Posts: 7
Joined: Tue Jul 19, 2022 3:55 am

Generate Event loop missing in preferences

Post 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.
User avatar
mk-soft
Always Here
Always Here
Posts: 6244
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Generate Event loop missing in preferences

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
jph
New User
New User
Posts: 7
Joined: Tue Jul 19, 2022 3:55 am

Re: Generate Event loop missing in preferences

Post 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.
User avatar
spikey
Enthusiast
Enthusiast
Posts: 769
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: Generate Event loop missing in preferences

Post 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.
jph
New User
New User
Posts: 7
Joined: Tue Jul 19, 2022 3:55 am

Re: Generate Event loop missing in preferences

Post by jph »

Thank you. I won't search no more.
User avatar
mk-soft
Always Here
Always Here
Posts: 6244
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Generate Event loop missing in preferences

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
jph
New User
New User
Posts: 7
Joined: Tue Jul 19, 2022 3:55 am

Re: Generate Event loop missing in preferences

Post 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.
Post Reply