Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OBrowser.execWB() to set font size
Message
De
07/03/2007 09:03:31
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
06/03/2007 18:14:00
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01201277
Message ID:
01201455
Vues:
46
Hi Dragan,

I'm not sure that this is related, but, ever since I upgraded to IE7, I've noticed that the web browser control does not respect Ctrl+MouseWheel to change fontsize. At least I think it was since moving to IE7. I'd love to be able to get that functionality back!

Regards,
Mike



>I have a browser object on the form, and want to have a couple of buttons to increase or decrease the font size. I've found the .h file with all the IDS_* constants, and read whatever Microsoft had to say about this on MSDN.
>
>I've done the search here, and there's only one message here with .execWB(19,2,...) (19 is command to set font size) from Michael Ashermann, and he says that it works for him, just doesn't return the result properly (i.e. he can't get it to retrieve the current font size).
>
>I wish that worked for me. Whatever I try, I get 0x80040100: Trying to revoke a drop target that has not been registered. That surely gives me incredibly deep insight into what's going on :).
>
>I tried obrowser.document.execCommand("FontSize",2,5) (varying last parameter), but it works on selected text only - and on text only, doesn't change the fontsize in textboxes etc.
>
>So... did anyone try to change the font size in a browser object programmatically, with any success?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform