<div dir="ltr">wow. The word <i>subclass</i> was the key I couldn&#39;t understand. Subclassing how to do it, I am getting pretty good documentation on it. If I couldn&#39;t get an answer I&#39;ll ask once again.<br>Thanks for your kind answers.<br>
Regards<br><br><div class="gmail_quote">On Tue, Jul 15, 2008 at 8:10 PM, True Friend &lt;<a href="mailto:true.friend2004@gmail.com">true.friend2004@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Thanks for reply. I am basically wanting to make a re-usable widget (at least a textview) which can write my local language Urdu without system support. I am impressed by the similar work in winforms(c#) with textbox control(equivalent to gtk textview). There the keypress controling method is <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.wndproc.aspx" target="_blank">Control.WndProc</a> which can be overridden in custom control to filter messages. Similar thing I could find is to write a keypress event handler in gtk. I am wondering if a custom widget laying in a dll can have such event handler without the need to write an event handler for every new instance. Thats why I asked. <br>

Sorry for the long answer, I tried to explain. You can refer me to some documentation of gtk&nbsp; or sone hint how can I do this. I use google frequently. Hopefully I&#39;ll be able to get helpful links on your hint.<br>Best Regards<div class="Ih2E3d">
<br>
<br><div class="gmail_quote">On Tue, Jul 15, 2008 at 6:04 PM, Chris Howie &lt;<a href="mailto:cdhowie@gmail.com" target="_blank">cdhowie@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

You might want to look up object oriented design, or preferably find a<br>
class you can take in your area. &nbsp;What you&#39;re asking relates to<br>
encapsulation and isn&#39;t something that can be answered quickly in one<br>
or two sentences.<br>
<div><div></div><div><br>
--<br>
Chris Howie<br>
<a href="http://www.chrishowie.com" target="_blank">http://www.chrishowie.com</a><br>
<a href="http://en.wikipedia.org/wiki/User:Crazycomputers" target="_blank">http://en.wikipedia.org/wiki/User:Crazycomputers</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div><div class="Ih2E3d">-- <br>Muhammad Shakir Aziz محمد شاکر عزیز<br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Muhammad Shakir Aziz محمد شاکر عزیز<br>
</div>