Print Page | Close Window

Dropdown separator line

Printed From: TMS Software
Category: General
Forum Name: Feature Requests
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=1010
Printed Date: 25 Feb 2020 at 11:29am


Topic: Dropdown separator line
Posted By: McKay Jeffrey
Subject: Dropdown separator line
Date Posted: 07 Dec 2011 at 7:14pm
I would like to create a drop-down combo box where various groups of items are divided by a separator line, exactly like as can be done in a standard menu control.  Is that possible with any TMS controls?  I've looked at AdvHTMLComboBox (adding a <hr> tag to a caption) but I don't like the fact that the html formatting shows up in the box when selected.  I didn't see any obvious way to do this using AdvSmoothComboBox either.




Replies:
Posted By: Bruno Fierens
Date Posted: 08 Dec 2011 at 12:23pm
You could use a TAdvControlDropDown and as dropdown control select a TSectionListBox.


Posted By: McKay Jeffrey
Date Posted: 09 Dec 2011 at 12:08am
I've been experimenting with this idea and I've noticed something unexpected.  The arrow keys are generating the OnClick event.  Is that what it is supposed to do?  I was trying to make it so that the dropdown would be hidden after a single click on an item, but this behavior interferes with using the arrow keys to move up/down in the list.



Posted By: Bruno Fierens
Date Posted: 10 Dec 2011 at 5:49am
This is by design. You’ll notice exactly the same behavior in a regular VCL TListBox.



Print Page | Close Window