How Good is EuGTK?
- Posted by Ken Rhodes <ken_rhodes30436 at yahoo.com> Mar 31, 2002
- 457 views
Well, its at least this good... I was able to add a fileselector to ed.ex in 3 steps of simple code: step 1: add include gtk/wrapper.e step 2: Append the letter 'F' into the sequence of letters forming the first argument for key_gets( in the following line found in the get_escape(boolean, help) procedure so that: command = key_gets("hcqswnedfrlm", {}) & ' ' becomes: command = key_gets("hcqswnedfrlmF", {}) & ' ' step 3: insert the following elsif clause: elsif command[1] = 'F' then init(0,0) file_history = update_history(file_history,FileDialog("Select File:", "*.*)) Now ESCAPE & F will call the EuGTK File Dialog - any file selected will be added to the file_history and can be easily be loaded by ESCAPE & 'n' Thanks to Irv Mullin's EuGTK library a much needed feature can be easily added to ed.ex in less than a minute. Ken Rhodes