Sign in Join

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

Mailing lists / lazarus / 2000-02

Which LCL components to use?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Marc Weustink
to Vincent Snijders: I am trying to make an implementation for the ISHWidget (necessary for SHEdit) with the…
you wrote
Hi, I am trying to make an implementation for the ISHWidget (necessary for

SHEdit)

Show quoted text 5 lines
with the LCL components. Now I don't know which components to use. The GTK-example uses a gtk_scrolled_window with 2 scrollbars and a PaintBox which can get the focus. The Paintbox has a canvas and keypress, mousemove, mouseclick,enter en leave events.

Look at the gtkwinapiwindow.pp code. Its the widget created for TWinControl decendants. If you can't use the widget itself (?? it was made for these constructs ??), you can use most (if not all) of it.

Marc

Reply by email

Vincent Snijders

Hi,

I am trying to make an implementation for the ISHWidget (necessary for SHEdit) with the LCL components. Now I don't know which components to use.

The GTK-example uses a gtk_scrolled_window with 2 scrollbars and a PaintBox which can get the focus. The Paintbox has a canvas and keypress, mousemove, mouseclick, enter en leave events.

The KCL implementation is a TScroller (I guess something like a TScrolledWindow) and a PaintBox, which has a paint, and keypress, mousemove, mouseclick, enter en leave events.

What would be suitable components in the LCL (or VCL) to implement the same thing? And what is the status of these LCL components?

Hope someone can help me further.

Regards,
Vincent Snijders.

Reply by email

Sebastian Guenther
to Vincent Snijders
Vincent Snijders wrote
The KCL implementation is a TScroller (I guess something like a TScrolledWindow)

I changed this yesterday from TScrollBox to TScroller. TScrollBox automatically scrolls its content, whereas TScroller doesn't. The reason why I needed TScroller is to remove the flickering if the number of lines changed or while scrolling.

Hope someone can help me further.

Sorry, LCL is out of my scope...

- Sebastian

Reply by email