Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 17 APR 2005 06:30:29PM Aiden Massey wrote:

Combo Box with Dropdown style. List populated programmatically with varying data. Is it possible to change the depth of the dropdown list based on the number of values and make it scrollable.


At 17 APR 2005 08:12PM [email protected]'s Don Bakke wrote:

Aiden,

I'm not sure if this is what you are after but if you pre-size your popup to be as tall as possible then the actual dropdown will vertically shrink itself according to the number of items you populate in the LIST property. That should resolve your first request. Then if you make sure the Vert scroll bar option is check it will automatically add a scrollbar if the length of your list exceeds the maximum size that you established at design time.

One caveat, if you don't populate anything into your combobox then the dropdown will appear as long as your originally designed it to be and it will be blank.

[email protected]

SRP Computer Solutions, Inc.


At 17 APR 2005 08:51PM Aiden Massey wrote:

Sized dropdown to max depth of window. Works, sort of. The first time I click on the dropdown arrow the box displays maximum length regardless of number of items. Second click on dropdown arrow displays only number of items. Same whether list populated on dropdown or gotfocus event.


At 18 APR 2005 08:33AM Sean FitzSimons wrote:

Aiden,

Have you tried populating the list on the CREATE event of the window?

Sean


At 18 APR 2005 12:20PM Aiden Massey wrote:

Using the CREATE event works but I would prefer to populate the list at the DROPDOWN event. I have 2 combo boxes that are part of a 3 part key. Each list requires a fair bit of processing to populate and are only required if the dropdown is activated.


At 18 APR 2005 01:20PM Sean FitzSimons wrote:

Try playing with the REDRAW property of the control to see if that makes a difference.

Sean


At 18 APR 2005 01:49PM Aiden Massey wrote:

That worked, life is again in perfect harmony.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/a2c63c773be6345d85256fe6007ba3fd.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1