Questions about Picturebox

Started by fred_tomke · 2009-10-22 20:10 UTC · 1 replies · SMF topic #984

Hello. I have some questions about PictureBox.

Background:
I have a form with a standard windows scroll bar. Many users asked me why mouse wheel is not supported for this control. That’s why I decided to create my own scrollbar control based on a picture control. I have attached a small sample to test.

Questions:

  • The event OnMouseWheel is not called although it is active the event function is defined. Did I do anything wrong?

  • I wanted to show a picture instead of the SolidRectangles. But the picture isn’t shown although I believe the syntax is right.

  • In the API there is written that the PaintPicture method allows two optional argument for each picture: but if I leave out isEnabled and isUseMask an error occurs. Shall we change the documentation?


Thank you for your help!

Fred
Attachments
The OnMouseWheel event is a bug, now fixed for Alpha 10. Leaving the two optional arguments out of the PaintPicture call causes the three remaining arguments to be interpreted as a 3d point. I've now added code in Alpha 10 to detect and correctly interpret the arguments as a 3d point.