Jump to content
robertjohns

ListView

Recommended Posts

Any way to add an option of Opendialog filename path selection in each listview subitem Item similar to below Image

Screenshot_9.png

Share this post


Link to post

Those are just TButtons with three dots in 'em. It is up to the programmer to react to the OnClick event and open up whatever dialog is desired.

Share this post


Link to post
13 hours ago, robertjohns said:

Any way to add an option of Opendialog filename path selection in each listview subitem Item similar to below Image

Screenshot_9.png

A TListview is not designed to host other controls. Take a look at TControllist, it may be more suited to your requirements. Another option would be a TScrollbox with a number of instances of a custom frame (which are created in code as needed, each representing the data of a suitable object or record).

  • Like 1

Share this post


Link to post
5 hours ago, Sherlock said:

Those are just TButtons with three dots in 'em. It is up to the programmer to react to the OnClick event and open up whatever dialog is desired.

The Image shown is designed in Paint to describe the concept whether is possible for Listview control each SubItem to be parent control of handling EditBox and a button

Share this post


Link to post

In VCL, I would simply custom-draw an image of a "button" directly onto the ListView item, and then use mouse events on the ListView to detect a click on the "button" to invoke the dialog.

Share this post


Link to post
19 hours ago, Remy Lebeau said:

In VCL, I would simply custom-draw an image of a "button" directly onto the ListView item, and then use mouse events on the ListView to detect a click on the "button" to invoke the dialog.

Any such Example will be appreciated .. Thanks

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×