Kent Dahl wrote:
>
> Fra: Takaaki Tateishi <tt...@kt...>
> >I'd like to provide the ruby-fltk with your editor.
> >Can I absorb it?
>
> You're welcome to.
I cleaned it up, fixed the shortcuts and added some more comments.
http://www.stud.ntnu.no/~kentda/public/coding/ruby/projects/toys/
But, it seems that the "&Search" blocks the usage of Alt+Shift+S for
"Save As". I think this is a "bug" in the original FLTK Editor sample,
thou I haven't tried it in a while.
I'm also not all sure on the usage of "setup_menubar", where I made a
helper function that makes the construction of the menubar look as much
as C++ as possible, to avoid repeating myself. ("File", "File/Open",
"File/Save"...etc)
I think it is a nice thing, but I've been using FLTK from C++ before,
so that has made me somewhat brain-damaged :-)
> >"#s" and "+s" mean FL_ALT + 's' and FL_SHIFT + 's' respectively.
>
> So does that mean that "#+s" would work as FL_ALT + FL_SHIFT + 's' ?
Wow, that works too! Excellent!
--
<[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]>
)____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_(
/"Opinions expressed are mine and not those of my Employer, "\
( "the University, my girlfriend, stray cats, banana fruitflies, " )
\"nor the frontal lobe of my left cerebral hemisphere. "/
|