Forum > LCL

What component will allow me to: [image] - text -> onclick and scrool

(1/2) > >>

seba22:
What component will allow me to:  [image] - text    -> onclick     and allow me to to have to vertical scroolbar ?

It's hard to describe, so i attach picture created in gnu paint.

Maybye picture explain best what i'm looking for.

Regards

typo:
You can use a ScroolBox for the scrollbar, TImages for the pictures and TLabels for the text.

If you need an OnClick event outside the image and label, you can use a TPanel as background.

seba22:
So, you suggest to create that manually ? right ?

First create scrolbox.

Then in function put there

panel and on panel put  image and caption  with panel action  onclick

then, create same thing but add top+20px (or any other size i want) ?

And do this until i will have all my list ?

Do i  understand this corect ?

There is no component what will do this automatic ?


Regards

typo:
You can use a single OnClick even for all components.

Leledumbo:
There's actually a component that is almost like what you need, called NiceGallery. The differences are:

* OnClick is on the image
* It scrolls horizontallyThe ported source is available here.

Navigation

[0] Message Index

[#] Next page

Go to full version