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)
extendable Window / Gadget library
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm