pure basic standard events...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
DoMi
User
User
Posts: 67
Joined: Sat Jan 10, 2004 5:41 pm
Location: France

pure basic standard events...

Post by DoMi »

Is there a reason not to have defined standard PB events for the mouse like :
- #PB_EventType_LeftMouseButtonUp
- #PB_EventType_RightMouseButtonUp
- #PB_EventType_mouseMove
- #PB_EventType_MouseEnter
- #PB_EventType_MouseLeave
- #PB_EventType_MouseOver
...
Using windows API is incompatible with the others platforms ...
Many Basics implement them in their basic versions for most of the gadgets!?

It's the same question about canvas component which could be replaced by imagegadget if those events would exist

they are the only reasons which make me give up purebasic for simple tasks managing mouse events...

Thanks a lot for your explanation

DoMi
DoMi
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

dunno but i admit i'd love to have some standard events for these as well...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

I agree.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

we have evenmenuid() etc. perhaps an eventmouse() command?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

blueznl wrote:we have evenmenuid() etc. perhaps an eventmouse() command?
Then I want a eventkeyboard() ;)
I just don't like the shortcut things :)
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post by Hydrate »

Polo wrote:
blueznl wrote:we have evenmenuid() etc. perhaps an eventmouse() command?
Then I want a eventkeyboard() ;)
I just don't like the shortcut things :)
This would be very usefull, its difficult to use because of it at the moment, i hate using the keyboard shortcuts.. and mouse events would be great.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

I made the same exact request here.

I believe the issue has to do with some of these events not being cross-platform at this time (don't know what is coming for 4.0).

For example, you can't click an ImageGadget in Linux. See thread here.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Polo wrote:Then I want a eventkeyboard() ;)
I just don't like the shortcut things :)
Me too!
@}--`--,-- A rose by any other name ..
Post Reply