Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox column captions
Message
From
14/12/2017 10:47:30
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01656410
Message ID:
01656412
Views:
64
>Hi,
>
>A form has a combo box bound to a cursor. Rowsource: "cur.field1, field2, field3" RowSourceType: 6 - Fields
>
>The drop-down list shows the records in the cursor "cur". Is it possible to add a caption above each column/field?
>

Dunno but doubt it. Marcia would know... Fudging it by inserting a first line with the captions programmatically and forbidding to select them should be achievable with adding items programatically, but if list is long, first line would be srcolled out and therefore invisible - Or use collection or array as rowsource. Depends on the customer if such a half-hearted "caption" is seen as a benefit or distraction ;-)

The green 1001 book to check on defaulting to prg adding items, not much code needed.

In VFX Fwk a some smarts has been put into creating "faked" drop-downs with grids and some other containers (date input IIRC) when entering data in a special subclass of textbox. Should be easy to achive real grid captions via that path, but breaking that out of the fwk or re-creating it seems a lot of work for what seems to me relatively small user benefit.

Dunno the current state of vfx, but the german docs were quite good for vfp standards, dunno about english translation. They had (years ago) a 30-day test scheme where only the object code was given to you to play with, so not easy to check the granularity of the code. But if customer is adamant and willing to pay, drop them a direct question.

But you could search for grid dropdown classes elsewhere in source

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform