[Gambas-user] gb.gtk 05806 / qt bug
Benoit Minisini
gambas at ...1...
Mon Aug 8 19:35:45 CEST 2005
On Saturday 06 August 2005 17:32, Daniel Campos wrote:
> Hi:
>
> New version of the gb.gtk component:
>
> http://gambas.gnulinex.org/gtk
>
> 050806 - Alpha
>
> * FIXED: Window.Mask and Window.Picture works in not top-level windows.
> * FIXED: "Label" code rewritten to avoid extrange problems everywhere.
> * NEW: "ListBox" Activate event implemented.
> * FIXED: Position of HBox children for RTL languages.
> * FIXED: Window.Raise now works if the window has a parent.
> * FIXED: "PictureBox" mouse events are working now.
> * FIXED: "Label" mouse events are working now.
> * NEW: "TextBox" Activate event implemented.
> * NEW: Enter and Leave events implemented fro all controls.
> * FIXED: Frame,Panel,HBox,VBox,Hpanel and VPanel now receive MouseMove
> and MouseUp events.
> * NEW: "drag" part of DND, "Drag.Icon" and "Drag.Source" implemented.
>
>
> Benoît, it seems there's a problem with the "Picture" and "Mask"
> properties in the gb.qt component.
> Please try the example I send with this new gb.gtk version and then
> change to the gb.qt component,
> something is wrong...
>
> Regards,
>
> D. Campos
I found - Actually I didn't think about the fact that an embedded window could
have a mask, so there was bugs in the mask property management. Now it works.
Two remarks:
- Picture.Resize does not stretch the picture, it just resizes its dimensions.
To stretch a picture, you have to do Picture =
Picture.Image.Stretch(...).Picture ! But we can implement a Picture.Stretch
method that does the same thing. I just wanted the user to be implicitely
warned about the image stored in memory/XServer problem... By having a lot of
code to write, the user will think "wow - it must be slow".
- Resizing images is faster in GTK+ than in QT!
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list