Recent

Author Topic: What component will allow me to: [image] - text -> onclick and scrool  (Read 7392 times)

seba22

  • Full Member
  • ***
  • Posts: 136
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

  • Hero Member
  • *****
  • Posts: 3051
Re: What component will allow me to: [image] - text -> onclick and scrool
« Reply #1 on: January 15, 2011, 07:06:52 pm »
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.
« Last Edit: January 15, 2011, 07:10:53 pm by typo »

seba22

  • Full Member
  • ***
  • Posts: 136
Re: What component will allow me to: [image] - text -> onclick and scrool
« Reply #2 on: January 15, 2011, 07:13:56 pm »
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

  • Hero Member
  • *****
  • Posts: 3051
Re: What component will allow me to: [image] - text -> onclick and scrool
« Reply #3 on: January 15, 2011, 07:26:44 pm »
You can use a single OnClick even for all components.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8799
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: What component will allow me to: [image] - text -> onclick and scrool
« Reply #4 on: January 15, 2011, 08:34:39 pm »
There's actually a component that is almost like what you need, called NiceGallery. The differences are:
  • OnClick is on the image
  • It scrolls horizontally
The ported source is available here.

seba22

  • Full Member
  • ***
  • Posts: 136
Re: What component will allow me to: [image] - text -> onclick and scrool
« Reply #5 on: January 15, 2011, 09:22:34 pm »
There's actually a component that is almost like what you need, called NiceGallery. The differences are:
  • OnClick is on the image
  • It scrolls horizontally
The ported source is available here.

Hmm, that's not what i'm looking for.


But look here

http://priyatna.org/sortlistview.php



Picture --> (http://priyatna.org/media/l-sortlistview.jpg)


Small icon image and description. and if user click it, trigger action.

I don't write that but i need cross comaptibile between linux :) and windows :(



Leledumbo

  • Hero Member
  • *****
  • Posts: 8799
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: What component will allow me to: [image] - text -> onclick and scrool
« Reply #6 on: January 16, 2011, 04:00:19 pm »
Quote
Hmm, that's not what i'm looking for.


But look here
You're lucky. As I stated here, that component got ported as well.

PAEz

  • New Member
  • *
  • Posts: 29
Re: What component will allow me to: [image] - text -> onclick and scrool
« Reply #7 on: January 16, 2011, 05:50:05 pm »
Maybe just a ListBox?  Have a look in the examples directory of your lazarus directory.
If you want something with alot more options and what not then maybe have a look at VirtualTreeView....
http://wiki.lazarus.freepascal.org/VirtualTreeview
http://wiki.lazarus.freepascal.org/VirtualTreeview_Example_for_Lazarus
...It can do lists not just treeviews.
Lazarus 0.9.29  Windows XP sp3
E6400 2gig ram 7900GTX 512meg

I have a shocking memory and am a crap coder, so take everything I say with a grain of doubt

 

TinyPortal © 2005-2018