Jussi Lahtinen ha scritto:
> Hi!
>
> Problem 1.
> With TextEdit control horizontal scrollbar isn't working like in Qt3.
> Sentences are cut ugly way, example "This is test sentence." is
> transformed to (if doesn't fit)
> "This is test"
> " sentence."  <-- notice extra space at begin.
>
> I did expect horizontal scrollbar.
>
>
> Problem 2.
> Code (worked with Qt3);
>
> Public Sub Button1_Click()
> Draw.Begin(DrawingArea1)
> Draw.Foreground = Color.Black
> Draw.LineWidth = 3
> Draw.Circle(15, 15, 105)
> Draw.End
> End
>
> Yields to these messages to console and nothing to drawingarea;
>
> QPainter::begin: Widget painting can only begin as a result of a paintEvent
> QPainter::setBackground: Painter not active
> QPainter::pen: Painter not active
> QPainter::setPen: Painter not active
> QPainter::brush: Painter not active
> QPainter::setBrush: Painter not active
> QPainter::pen: Painter not active
> QPainter::setPen: Painter not active
> QPainter::pen: Painter not active
> QPainter::setPen: Painter not active
> QPainter::pen: Painter not active
>
> Is this planned behaviour?
>
>
> Ubuntu 9.10 64bit
> Gambas 3 revision 2815
>   
About the textedit, I know nothing.
About the DrawingArea - yes, it should be the expected behaviour. It 
seems to me that you can only wait for painting events (you must use the 
Paint event), no more use begin() and "End", and do the painting 
normally. If you want to update the drawing you must call a method 
(refresh(), may be?) which, in turns, raises an event to let you do your 
stuff. This method is more difficult to work with, but more correct and 
effective.

Regards,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to