Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox column captions
Message
 
 
To
14/12/2017 10:47:30
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01656410
Message ID:
01656413
Views:
48
>>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

I will check the resources you mentioned. Thank you. I also consider changing the combobo with the look-up control that uses a form with the entries, instead of the drop box. In such form, captions would be easy since I would use a grid control. My concern was that instantiating a form could take time but with the speed of PCs, it probably won't be noticeable.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform