Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do FORM vs. createobject()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00859255
Message ID:
00859680
Views:
29
>>>>How would the end user resize the columns at runtime?
>>>ListView (OCX) columns are resizable by default. Hover the mouse pointer over the the column borders, left click and resize/
>>>
>>>>Same question the automation of columnar headings. We would have to use a label object wouldn't we?
>>>
>>>I don't know about using label objects, with ListView (OCX) - that is a function of the columnheader collection object. Headers may be added through the builder or coded, ex:
>>>
procedure AddListViewHeadings(oLV) && oLV = Myform.MyocxListView
>>>with oLV
>>>.COLUMNHEADERS.ADD(,[MANF_CODE],[Code],72,,) && Define column 1 header
>>>.COLUMNHEADERS.ADD(,[MANF_NAME],[Description],152,,) && Define column 2 header
>>>endwith &&oLV
>>
>>Thank you.
>>I have other questions regarding can the user highlight part of the row and copy/paste. An example would be a list of items, quantities, prices bought buy a customer. The end user wants to copy just the item code into a word document.
>
>A trick I use is a right click popup menu. The user selects a listitem, right clicks - and a popup appears with a "Copy" selection. When user selects copy:
>
_ClipText=cSomeStringDataFromListViewOrListViewSource
>
>Right clicking on a word document offers a menu to "Paste" the contents stored to clipboard by _Cliptext.
>
>There is also the DataToClip function that will copy records and fields to the clipboard. Pasting to word would be same as _cliptext paste.

Terry,
Thank you for all of the info.
I will definately be doing some research into the PEMs.

>
>
>
>>I will try the typical scenarios and post questions with the 'How to achieve'.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform