extendable Window / Gadget library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

Hi,

Something that would really kick ass is if it were possible to hook into the Window / Gadget / whatever library and extend them. An example of where you might want this is if someone was creating a user library for a gadget that is not part of the standard set but wanted the user to be able to keep their main event loop using EventGadgetID etc for all gadgets. Hmm, came out a bit badly...

OK, lets say I want to create a ScrollBar gadget for PB (as they currently do not exist). I want to be able to process the events from the scrollbar gadgets using WaitWindowEvent(), EventGadgetID() and so on.

It seems that if there were commands that library authors (or maybe even from basic?) could use to set the values returned by EventGadgetID() and so forth then the gadgets availablke for use could be extended by adding a callback to the (Wait)WindowEvent routine?

Hope you see what I'm after because it doesn't seem possible at the moment.

Thanks.


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.50)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Ok, I will keep this in mind. I was planning to redo it BTW..

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Hi,

Sounds like a great idea.

BTW, i hope that the existing gadgets get all its possibilities fixed/done when Fred rewrite them.



Best Regards

Ricardo

Dont cry for me Argentina...
Post Reply