Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2007-05

TQtLineEdit patch

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
Thanks, applied

Also, does anyone knows about scrollbars in LCL (I've implemented Qt's scrollbars long time ago), but it seem that LCL is painting scrollbars, not using widgetset's scrollbar eg. TStringGrid, scrollbar is invisible ... So my question is what to do ?
Is it possible to heck into LCL and use native scrollbars , or I need to implement more specific winapi routines to get scrollbars properly painted and visible ?
zeljko

Mattias Gaertner
to zeljko
Show quoted text 11 lines
On Sunday 27 May 2007 09:53, Felipe Monteiro de Carvalho wrote: > Thanks, applied Also, does anyone knows about scrollbars in LCL (I've implemented Qt's scrollbars long time ago), but it seem that LCL is painting scrollbars, not using widgetset's scrollbar eg. TStringGrid, scrollbar is invisible ... So my question is what to do ? Is it possible to heck into LCL and use native scrollbars , or I need to implement more specific winapi routines to get scrollbars properly painted and visible ? zeljko

The LCL uses the native scrollbars.
Maybe something is painting over the native scrollbars (clientrect is reported wrong by the interface), or the qt scrollbars are not made visible?

Mattias

zeljko
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Sun, 27 May 2007 11:07:26 +0200 zeljko wrote: > On Sunday 27 May 2007 09:53, Felipe Monteiro de Carvalho wrote: > > Thanks, applied > > Also, does anyone knows about scrollbars in LCL (I've implemented > Qt's scrollbars long time ago), but it seem that LCL is painting > scrollbars, not using widgetset's scrollbar eg. TStringGrid, > scrollbar is invisible ... So my question is what to do ? > Is it possible to heck into LCL and use native scrollbars , or I need > to implement more specific winapi routines to get scrollbars properly > painted and visible ? > zeljko The LCL uses the native scrollbars. Maybe something is painting over the native scrollbars (clientrect is reported wrong by the interface), or the qt scrollbars are not made visible?

tnx, I'll check that.

zeljko
to Mattias Gaertner: On Sun, 27 May 2007 11:07:26 +0200 The LCL uses the native scrollbars. Maybe something is…
Mattias Gaertner wrote 19 lines
On Sun, 27 May 2007 11:07:26 +0200 zeljko wrote: > On Sunday 27 May 2007 09:53, Felipe Monteiro de Carvalho wrote: > > Thanks, applied > > Also, does anyone knows about scrollbars in LCL (I've implemented > Qt's scrollbars long time ago), but it seem that LCL is painting > scrollbars, not using widgetset's scrollbar eg. TStringGrid, > scrollbar is invisible ... So my question is what to do ? > Is it possible to heck into LCL and use native scrollbars , or I need > to implement more specific winapi routines to get scrollbars properly > painted and visible ? > zeljko The LCL uses the native scrollbars. Maybe something is painting over the native scrollbars (clientrect is reported wrong by the interface), or the qt scrollbars are not made visible?

hm.. TQtWSScrollBar.CreateHandle() isn't called when creating TStringGrid, separated TQtWSScrollBar can be created and visible. Any ?

Mattias Gaertner
to zeljko
Show quoted text 24 lines
On Sunday 27 May 2007 16:40, Mattias Gaertner wrote: > On Sun, 27 May 2007 11:07:26 +0200 > > zeljko wrote: > > On Sunday 27 May 2007 09:53, Felipe Monteiro de Carvalho wrote: > > > Thanks, applied > > > > Also, does anyone knows about scrollbars in LCL (I've implemented > > Qt's scrollbars long time ago), but it seem that LCL is painting > > scrollbars, not using widgetset's scrollbar eg. TStringGrid, > > scrollbar is invisible ... So my question is what to do ? > > Is it possible to heck into LCL and use native scrollbars , or I > > need to implement more specific winapi routines to get scrollbars > > properly painted and visible ? > > zeljko > > The LCL uses the native scrollbars. > Maybe something is painting over the native scrollbars (clientrect > is reported wrong by the interface), or the qt scrollbars are not > made visible? hm.. TQtWSScrollBar.CreateHandle() isn't called when creating TStringGrid, separated TQtWSScrollBar can be created and visible. Any ?

The interface should create the scrollbars on SetScrollInfo calls. The gtk intf for example uses a widget with scrollbars for all TCustomControls. They are hidden as default and made visible on SetScrollInfo.

Mattias

zeljko
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
On Sun, 27 May 2007 18:03:51 +0200 The interface should create the scrollbars on SetScrollInfo calls. The gtk intf for example uses a widget with scrollbars for all TCustomControls. They are hidden as default and made visible on SetScrollInfo.

tnx mattias, I've already created SetScrollInfo() and now we have ScrollBars on TStringGrid, but of course it will not be finished today, since I have to implement GetScrollInfo() .....