[Gtk-sharp-list] Enabling TextView to print custom language character(without system support)

True Friend true.friend2004 at gmail.com
Mon Jul 14 04:54:26 EDT 2008


Hi Gtk# List
Replying to my self
I am able to print keyvalues of Ctrl, Alt, Shift etc. But not keys a,A,b,B,
etc. I've used keypress event handler for this purpose. Plz tell me how can
I get control of these keys in textview?
The code snippet (very simple indeed).
protected virtual void OnTextview1KeyPressEvent (object o,
Gtk.KeyPressEventArgs args)
    {

textview1.Buffer.InsertAtCursor(args.Event.HardwareKeycode.ToString());
    }
Waiting for your valueable suggestions.
Regards
On Sat, Jul 12, 2008 at 2:48 PM, True_Friend <true.friend2004 at gmail.com>
wrote:

>
> Hi
> I am a beginner in c# and gtk. I want to modify TextView widget in such a
> way that it print (in textbox obviously) keys of my language Urdu. As if I
> press 'a' it prints 'ا'. The same thing is done by one of my colleges in
> Windows.Forms with richtextbox and textbox controls. I have seen some
> windows.forms specific things in it so I cannot apply it as it to gtk. Plz
> guide me how can I achieve it. I have found a little clue about it
> http://www.go-mono.com/docs/index.aspx?link=T%3aGdk.Keymap%2f* here  in
> monodoc. Plz refer me to some guide in this regard even it is not GTK# (but
> gtk obviously) so I may able to understand even the lang will not c#. Here
> is the textbox class modified for this purpose for windows.forms.
> http://www.nabble.com/file/p18417433/UrduTextBox.cs UrduTextBox.cs
> Regards
> --
> View this message in context:
> http://www.nabble.com/Enabling-TextView-to-print-custom-language-character%28without-system-support%29-tp18417433p18417433.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>



-- 
Muhammad Shakir Aziz محمد شاکر عزیز
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080714/4d4c5893/attachment.html 


More information about the Gtk-sharp-list mailing list