Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids DblClick Issue
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00425490
Message ID:
00426126
Views:
27
>>> The first item that gets events here is control in column. I also do not see why column control even need to be subclassed, because evrything you need could be done using control, header and grid class. Column class subclassed causes VFP crash often, as well as it is very hard to maintain and use. Header can be made as class in VCX library, and it can be put into column in design-time.
>>> HTH.
>>
>>I was sure, the only way to subclass Header is to do it programatically in a code. How would you do it in a VCX? Or did I misunderstnad you?
>>
>>TIA
>
> Nadya, you understood correctly. I have my own header class in VCX class library. When I making new grid, I put this header into column in design-time and it replaces original default header. In addition, I have simple program that used to run over SCX or VCX file and replace all default header class to new header class, so I do not need to replace headers manually for each column of large grid.
> To make such header in VCX library you will need to manually edit it as VFP table. This is somewhat tremendous when trying to edit header methods source code. However, you may do this in PRG file first, than move procedures cpde into VCX.
> In fact, VFP have no ability to convert PRG classes into VCX, but you still can do this manually.

Vlad,

It seems like a great idea. So, once added your originally programatically created class into vcx, you now have ability to even modify this class visually, right? I'm not completely sure, that I can follow all steps here without your further assistance, but we can try. For instance, we can try this procedure for multiselect grid class, which Cetin has here in Files section.

And also you now can copy this class from one classlib to another, right?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform