Re: OpenToolDialog
Wolfgang Weck (Wolfgang.Weck@abo.fi)
Fri, 22 Nov 1996 11:40:54 +0200 (EET)
Here comes your solution:
When your dialog is opened as a ToolDialog the framework "knows" that your
commands are supposed to operate not on this but on the document "below" it
(probably always the former focus). Therefore, it gives you what you want,
when you use e.g. TextControllers.Focus(). In a nutshell: use simply the same
commands that you would use from a menu. - Yes, it sounds a bit mystical in
the first place, but it works great.
ww
--------------------------------------------------------------------------
Wolfgang Weck
Åbo Akademi University
Department of Computer Science
Lemminkäisenkatu 14A
FIN-20520 Turku, Finland
Phone: +358-2-265 4673
Fax: +358-2-265 4732
e-mail: Wolfgang.Weck@abo.fi
http://www.abo.fi/~wweck/
--------------------------------------------------------------------------