Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
ActiveX controls in VFP
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?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only