PinoezOpenDialog (Another kind of Open Dialog)

Posted by Daniel - 512 Views

averagecoder_pinoezopendialog.gifOn some occasions, when I build an application for a specific language with orland Delphi, I also need to change all button text to suit the language used, for example the button text on the OpenDialog. Creating a brand new component is an alternative, but time is something that I don’t have. Hooking the available function by overriding the text assignment in the original OpenDialog component code, proved to be faster than creating a new one, and PinoezOpenDialog is the result.

PinoezOpenDialog is not just an open dialog, but it also contains save dialog. So far I haven’t had time to provide some design interfaces, so all adjustment have to be done in the underlying code. That will be painful if you have no experience at all in the component creation, but it will be fine I guess, it won’t break or damage your heart.

The button text on the code is in Bahasa but you can easily change them to your desired language. On line 318 there is an ExplorerHook function.

function ExplorerHook(Wnd: HWnd; Msg: UINT; WParam: WPARAM; LParam: LPARAM): UINT; stdcall;

That function is the place where you can override the button text assignment. There are code comments explaining what variables you can change and some variables I recommend you not to change. But your soul is your soul, feel free if you want to do an experiment with it.

 

Click here to download PinoezOpenDialog (208 KB)

share this article

Digg del.icio.us Netscape StumbleUpon Yahoo! MyWeb reddit Furl Magnolia Newsvine Technorati SlashDot Blinklist Simpy Google
This post as PDFPosted in: Tested Software - January 2008

The following posts are programmatically considered as related to the current post by YARPP Plugin:

  1. The first alpha version of simon - open source speech recognition suite - has been released



Leave a Reply


Options for your comment:





Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.

Coffee Break

Comments - Thanks Guys :)

  • Rangga Kusuma: Gan, Tengkiu buat postingan yang sangat berguna. Kebetulan ada project utk bikin sms gateway, dan converter Agan sangat berguna utk...
  • Chuck Norton: I actually went ahead & bolted over to Justin’s Get The Image plugin here: http://justintadlock.com/ar...
  • Chuck Norton: Question: is it possible to insert something like [custfieldimg=”joice1.jpg,15 0,1:1″] into the actual templates instead of...
  • Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
  • tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.