Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with IFont in VFP
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01443421
Message ID:
01443450
Views:
44
>>I am trying to work with the Multi Column Treeview Control published in VBAccelerator. Everything works great but the FONT property does not show up in the VFP9 property window and I am not sure why. It shows up on the VB property dialog when the control is implemented in vb6.
>
>Are you saying that it doesn't show up as a VFP property at all - or just shows up as 'object' ?
>
>>The font property is based on the IFont interface (which is how I would imagine VFP does it internally as well but I am not sure).
>
>I'm also pretty sure you are right but I'd have to dig through some very old code to confirm it.
>
>>
>>As a result of this, I cannot seem to change the font. If I change the font property directly, it doesn't work properly. I would have to create an IFONT instance, populate it and set the FONT property to the IFONT instance but I can't seem to do that in VFP either.
>>
>>I am attempting to work around this by exposing a property called FontName which, when set, will do the work in VB but I cannot seem to get the public property to show on the property dialogs of either VB or VFP. So, I am missing something fairly basic.
>>
>>Can anyone give me a push in the right direction here?
>
>I'm not familiar with the VB class in question but I see the source code is available. If that's the case then one option would be to add properties in VB to surface the various font properties and map these back to the Font object.
>
>Another trick I've used (at runtime) is to add a 'PickFont' method in VB that can be called from VFP and have that fire up the CommonDialog.ShowFont so that the font selection is entirely handled by VB.....

Thanks for the suggestions. No, the font property does not show up in the property dialog at all. I figured out what I was doing wrong in adding properties so I think I am going to be OK now if I can just get the bloody VB code to work right! :)
Menachem Bazian, CPA
President
BC Consulting Services, Inc.
973-773-7276
Menachem@BazianCentral.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform