Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anton Oleynic has solved XP Themes for VFP8 Active-X
Message
 
À
14/02/2004 01:31:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00877243
Message ID:
00877407
Vues:
11
Mine came with Visual Studio 6. I have not installed a standalone VFP 7/8 IDE on a "clean" computer, so I do not know (yet) if they are included.If you select tools,options, controls, and look, you should fine two listings for treeview (if both 5 and 6 were trundled with your VFP):
Version 6 - MSComctlLib.TreeCtrl.2
Version 5 - COMCTL.TreeCtrl.1

My ocx classes are all PRG's, which means all I had to do was change:
oform.addobject('ocxTreeView','ocxTreeViewClass','MSComctlLib.TreeCtrl.2')
*to:
oform.addobject('ocxTreeView','ocxTreeViewClass','COMCTL.TreeCtrl.1')
This is another advantage to PRG classes! You would also need to change your image list control V5.

Not all the properties work - Fill row select in treeview, style in Toolbar, and no "ButtonMenu" in toolbar (this can be worked around with a popup.

As Anton explained, V5 are "system" controls.

The big question (to me) is that Ken said OCX themes were a seperate issue, when asked about VFP 9, but did not offer 'the' temporary workaround, eg: using OCX 5.

A BIGGER question is - if the V5 are themed, whats the big deal with fixing V6?

>>One of our contributors, Anton Oleynic, has discovered that switching to version 5 OCX, will produce XP themes with VFP 8!
>>
>>You need to use Version 5 imagelist with version 5 toolbar and treeview. The "Style" and "FullRowSelect" property in treeview.5 are different, but the appearance is full ow and the style is XP.
>>
>>The ToolBar buttons are themed, the treeview +/- features are themed, and even the treeview images are themed! Howbout that!
>>
>>I have not tested with Listview. I see no problem there. At least our VFP 8 Active X interfaces will not appear old fashion.
>>
>>It would be neat if Ken (or Stewart) could explain this!
>
>Hi TT. When I search my XP/PC for mscomctl.ocx I only find a Ver6. There are two msm files of the same size but cannot see their versions. Under VFP8 I can use Ver 5(sp2) or Ver6. But where is the ver5 ocx and/or which msm does one use for distribution?
>
>Later
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform