Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

increase, decrease font size & find fucntion

0 views
Skip to first unread message

Mauro

unread,
Apr 30, 2002, 12:49:44 PM4/30/02
to
Hi all, I'm in trouble with the following:

1. I need make the functionality of increase and decrease the font size
(equal than ctrl + and ctrl - work),

2. The find function (equal than ctrl f )

I need do this two functions,to a embedded browser im my project with
Gtk-- 1.2.8 and glade 0.6.4

Please help...

tia

mauro

Ed Burns

unread,
Apr 30, 2002, 1:56:22 PM4/30/02
to
Mauro <mvel...@gcintl.com> writes:

> Hi all, I'm in trouble with the following:
>
> 1. I need make the functionality of increase and decrease the font size
> (equal than ctrl + and ctrl - work),

I'd like to know how to do that one.

> 2. The find function (equal than ctrl f )
>
> I need do this two functions,to a embedded browser im my project with
> Gtk-- 1.2.8 and glade 0.6.4

I do this in webclient. Check out

http://lxr.mozilla.org/mozilla/source/java/webclient/src_moz/CurrentPageActionEvents.cpp#98

--
Remove REMOVE_THIS from email address before replying.
These are my views, and may not be the same as Sun Microsystems Inc.

Alec Flett

unread,
Apr 30, 2002, 2:39:28 PM4/30/02
to Ed Burns

Ed Burns wrote:
> Mauro <mvel...@gcintl.com> writes:
>
>
>>Hi all, I'm in trouble with the following:
>>
>>1. I need make the functionality of increase and decrease the font size
>>(equal than ctrl + and ctrl - work),
>
>
> I'd like to know how to do that one.

See
http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/viewZoomOverlay.js

it has the JS for all this - it looks like all you need to do is call
nsIMarkupDocumentViewer.SetTextZoom()/GetTextZoom()

Mauro

unread,
Apr 30, 2002, 5:04:33 PM4/30/02
to Alec Flett, Ed Burns

Thanks friends, this functions maybe resolve the trouble, but can I use
this on mozilla embedded (Christopher Blizzard gtkmozembed.h library) or
need make this implementation by my self???

thanks in advanced

mauro

0 new messages