[ltk-user] Setting wm-title

Felip Alàez Nadal uu.nix.uu at gmail.com
Fri Dec 19 07:55:33 UTC 2008


Hello:

I always use (setq *wish-args* (list "-name" ApplicationName)). For
toplevels I remember there is a title or name paramether to use when invoke
make-instance 'toplevel.

Bye!

2008/12/18 Jud Leonard <leonard at tlw.com>

> I've been having trouble setting the window title using wm-title,
> apparently because ltk was never creating "." as the widget path.
>
> I patched it as follows:
>
> (defmethod wm-title ((w widget) title)
>   (format-wish "wm title ~a {~a}" (if (master w) (widget-path w) ".")
> title)
>   w)
>
> which seems to work.  It wasn't clear to me whether this is the right
> fix if one has multiple top level windows, and I didn't know whether a
> similar fix should be applied to other wm- functions.  Can you advise?
>        Jud
>
>
> _______________________________________________
> ltk-user site list
> ltk-user at common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>



-- 
Felip Alàez Nadal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ltk-user/attachments/20081219/70db5538/attachment.html>


More information about the ltk-user mailing list