From o.finnendahl at inm.mh-freiburg.de Mon Jun 25 09:25:16 2012 From: o.finnendahl at inm.mh-freiburg.de (Orm Finnendahl) Date: Mon, 25 Jun 2012 11:25:16 +0200 Subject: [mcclim-devel] access local application-frame in command Message-ID: <20120625092516.GA9504@varese> Hi, I'm having trouble to find out, how to write a quit command without using a global *application-frame* variable. The idea is to be able to create more than one application frame and to encapsulate everything into the frame, applying menu commands only to the frame in which the command was issued. I looked into the examples but all seem to be happy with a global *application-frame* variable. A similar issue concerns different key-to-command mappings in different panes of the same application. In an editor pane the arrow keys should be used for cursor movement and in other panes they could mean different things. Do I have to move the dispatch into the command invoked by the arrow keys or is there another mechanism built into mcclim which enbales the use of different mappings in different panes? Thanks for any help, Orm ------------------------------------------------------------------ Prof. Orm Finnendahl Komposition Studio f?r elektronische Musik und Akustik Musikhochschule Freiburg Schwarzwaldstr. 141 79102 Freiburg Tel.: +49-761-31915-167 From joswig at lisp.de Mon Jun 25 10:02:48 2012 From: joswig at lisp.de (Rainer Joswig) Date: Mon, 25 Jun 2012 12:02:48 +0200 Subject: [mcclim-devel] access local application-frame in command In-Reply-To: <20120625092516.GA9504@varese> References: <20120625092516.GA9504@varese> Message-ID: <10470A7E-6F78-489E-B1AB-FD14D1D2D0D9@lisp.de> In CLIM *application-frame* is a global special variable, but within a context of an command of a application frame, you would automatically use the dynamic binding. Regards, Rainer Joswig Am 25.06.2012 um 11:25 schrieb Orm Finnendahl : > Hi, > > I'm having trouble to find out, how to write a quit command without > using a global *application-frame* variable. > > The idea is to be able to create more than one application frame and > to encapsulate everything into the frame, applying menu commands only > to the frame in which the command was issued. I looked into the > examples but all seem to be happy with a global *application-frame* > variable. > > A similar issue concerns different key-to-command mappings in > different panes of the same application. In an editor pane the arrow > keys should be used for cursor movement and in other panes they could > mean different things. Do I have to move the dispatch into the command > invoked by the arrow keys or is there another mechanism built into > mcclim which enbales the use of different mappings in different panes? > > Thanks for any help, > Orm > ------------------------------------------------------------------ > Prof. Orm Finnendahl > Komposition > Studio f?r elektronische Musik und Akustik > Musikhochschule Freiburg > Schwarzwaldstr. 141 > 79102 Freiburg > Tel.: +49-761-31915-167 > > _______________________________________________ > mcclim-devel mailing list > mcclim-devel at common-lisp.net > http://lists.common-lisp.net/cgi-bin/mailman/listinfo/mcclim-devel