[Implemented] CreateEvent

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

[Implemented] CreateEvent

Post by Polo »

Implemented as PostEvent()

It'd be nice, now we have the canvas gadget, to be able to create events. :)
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: CreateEvent

Post by STARGÅTE »

create events ? what do you mean?

Code: Select all

Event = #PB_Event_CloseWindow ; Create Event ???
Select Event
  Case #PB_Event_CloseWindow
    End
EndSelect
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: CreateEvent

Post by Polo »

Well, yeah, create an event that will get into the event queue and received in Wait(Window)Event.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: CreateEvent

Post by c4s »

Do you mean defining event areas?

At least that's what I would like to have (for the CanvasGadget()):
  • Create event abc in: x1, y1, x2, y2 (and circles, polygons, ellipses?)
  • Trigger it when: Mouse enters/moves and/or right/left/double click etc.
  • Receive event abc in the event loop when the above condition is valid
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Post Reply