Display only item of ComboField

Started by Peter2, July 25, 2013, 05:21:33 AM

Previous topic - Next topic

Peter2

I have a combo-field where I use

Title: "This is my title"
List: "Item 1|Item 2|Item 3"

Starting the dialogue I always see the title and have to click to see my Items.

Is there an internal way to display the list immediately? Or do I have to use LSP for correct display?
Peter
ODCL 9.1.... German, AutoCAD 2023, Bricscad 26, Win 11

owenwengerd

I don't think there's any way to programmatically open the dropdown. You can of course use a simple combo that always displays the list as a listbox.
Owen Wengerd (Outside The Box) / ManuSoft

Peter2

Quote from: owenwengerd on July 25, 2013, 12:55:06 PM
.....You can of course use a simple combo that always displays the list as a listbox.
???  ???
I think I have to take a little more time to understand it .. (as said above, it is my first small project).
Peter
ODCL 9.1.... German, AutoCAD 2023, Bricscad 26, Win 11

owenwengerd

To clarify, by "simple combo" I meant a combo box control with Style set to 1 - Simple. Just now when I tested this, I inserted a combo control, changed the Style property, changed the List property to a|b|c|d, then tried to resize the control so it will display the list. It was "stuck" as a standard combo. I had to close the form window and reopen it, then the simple combo control could be resized to display the list. I hope that helps .
Owen Wengerd (Outside The Box) / ManuSoft

Peter2

Hello Owen

thanks for your reply. Now I attached two screenshots to explain what I mean:

Image 1 shows the properties: I have Style 2, no title and three items.

Image  2 shows the dialogue when it is started: The list is empty because there is no title (if I enter a title the title is displayed).

Question:
When the dialogue starts I don't want to see the (empty or existing) title, I want to see the first item of my list.
-> What to do?

Thank you.

Peter
ODCL 9.1.... German, AutoCAD 2023, Bricscad 26, Win 11

owenwengerd

I'm not sure I understand completely, but I think that if you set the Text property equal to a value in the list, then that value should be automatically selected in the list when the combo is initialized.
Owen Wengerd (Outside The Box) / ManuSoft

Peter2

Quote from: owenwengerd on July 26, 2013, 09:07:08 AM
... if you set the Text property equal to a value in the list, then that value should be automatically selected in the list when the combo is initialized.
Yes, this is what I want. I thought (hoped) that there is a property like "Display list items instead of title", but I will use this solution.

Thanks and have a fine weekend.
Peter
ODCL 9.1.... German, AutoCAD 2023, Bricscad 26, Win 11

Fred Tomke

Hi, Peter, there was a similar question in the past how to open a DropDown list automatically.
You only have to set the focus to the combobox and to send the Cursor Down key.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]