The last few new versions of PB have been very impressive, thanks a lot for that

So, there a just 2 things left for the moment, of which I'm not so happy:
1.)The most important
Please add these functions:
- RegisterImage(#image,imageid)
- RegisterGadget(#gadget,gadgetid)
- RegisterWindow(#window,windowid)
- RegisterFont(#font,fontid)
- ...
1.)Add a Window, image, etc... to the list of the #window,#image,... objects, so that these objects can be used for WindowMouseX(), Start/StopDrawing() etc.
2.)(optional, but (as I think) might be nice)Return the ID, which is given to the Object. There could be a test if this WindowID is already connected to a #window and return this one instead of the given one. This could avoid double-linking.
Why is it important?
PB has a high number of powerfull functions for Images, Gadgets, Windows, etc. But, for example, when you´re creating an image in a DLL, get an imagepointer from a library or just a WindowID from the WindowsAPI, all these Functions are useless.
Correct me if I'm wrong, but it should not be too hard, to add this, should it? It's just the registering-part of your code from Functions like OpenWindow or CreateImage....

2.)A small thing for foreach
Something like
Code: Select all
ForEach List() Using List2()
Debug ListIndex(List()) ;Always the same
Debug ListIndex(List2()); 0,1,2,3,......
next
Thanks for attention and adding
Franky