RE: return value from dialog window
- Posted by "Horvath Stefan" <horvath at acasa.ro> Feb 05, 2005
- 456 views
1. I must look at input_box(). Maybe it is what I want. 2. Yes, I need a response not from message_box, but from other window. Dialog result will be "context sensitive" (ineger, sequence, etc). But... 3. Also if I use english version of Windows98, it doesn't have an romanian language pack (interface). If I call message_box, buttons caption is in english. I intend to write an international message_box that will be able to load Buttons caption from some "resource file", not only in romanian, but also in other languages (slovakian, ungarian, german, etc). It is possible in Euphoria ? (I think in C++ I must create (register) a new class, declaring procedure for window, etc..) Thanks all. -----Original Message----- From: Greg Haberek [mailto:ghaberek at gmail.com] Sent: Saturday, February 05, 2005 12:53 AM To: EUforum at topica.com Subject: Re: return value from dialog window Have a look at my "input_box()" routine in the Archive. It creates a custom dialog and returns a result from a Window. It also saves on resources, because it does not create the dialog window unless it is necessary. And it returns different values based on user input, that is "" (empty sequence) on Cancel or whatever the user typed on OK (could be ""). Have fun, ~Greg On Fri, 4 Feb 2005 21:00:27 +0200, Horvath Stefan <horvath at acasa.ro> wrote: > > Hi all, > It is possibly to have a Dialog which return a value (integer, exemple) in > correspondence with PushButtons clicked in Window. > I think someting like " result = message_box(..) ". I am not too familiar > with Windows programming, but I learn ... > I think that isn't possible with returnValue from win32lib ?! > All sugestions are welcome. Thanks. > Steve > >