Enabling TextView to print custom language character(without system support)

View: New views
2 Messages — Rating Filter:   Alert me  

Enabling TextView to print custom language character(without system support)

by True_Friend :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 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.
UrduTextBox.cs
Regards

Re: Enabling TextView to print custom language character(without system support)

by True_Friend :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



--
Muhammad Shakir Aziz محمد شاکر عزیز

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list