CLIM mail archive

[Prev][Next][Index][Thread]

Starting Frames as :shrunk



ACL CLIM 2.0

I assumed that starting an application frame with 
:state :shrunk would yield an iconified frame -- but
the frame appears as ":enabled"...

  (run-frame-top-level 
   (make-application-frame 'some-frame :state :shrunk))


Well, default-frame-top-level.lisp gives some evidence
that this is unavoidable:


   (defmethod default-frame-top-level ((frame standard-application-frame)
				       &key command-parser command-unparser
					    partial-command-parser
					    (prompt "Command: "))
     ;; Enable the frame now
     (unless (eq (frame-state frame) :enabled)
       (enable-frame frame))
   ...)



The folowing produces an error (and isn't very nice, because I've to copy
the whole top-level function...)

  (defmethod default-frame-top-level ((frame some-frame) ...)
    (shrink-frame frame)	
    (loop
      ...))


  Error: Invalid window id 0 for #<TK:TOP-LEVEL-SHELL NIL #x1785808 @ #x1352c42>

  Restart actions (select using :continue):
  ...


This works, but the frame "flickers up" before it iconifies:

  (defmethod default-frame-top-level ((frame some-frame) ...)
    (enable-frame frame)
    (shrink-frame frame)	
    ...)


Any suggestions?


Frank Buhr.







Main Index | Thread Index