How Good is EuGTK?

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu