From: <no...@so...> - 2002-05-08 22:42:01
|
Patches item #553926, was opened at 2002-05-08 15:31 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=312997&aid=553926&group_id=12997 Category: 67. Win Window Operations Group: None Status: Open Resolution: None Priority: 5 Submitted By: Eric Melski (ericm) >Assigned to: Jeffrey Hobbs (hobbs) Summary: wm style stayontop, et al, patch Initial Comment: I couldn't find this patch anywhere on the Tk SF site. It may already be in someplace. This patch provides a "wm style" command on Windows to give access to various extended Windows window attributes, such as "stay on top" and transparency. The author, Jay Schmidgall, sent it to me some time ago with the following message: ------------------------------------------------ The next big style option under WinXX would probably be to add support for icons in the status area or system tray. However, there's much more to it than just a few options, e.g., you would need to be able to set up bindings and all that to handle button clicks, give it an icon to put in the tray, etc. The syntax is as follows: wm style window ?style? ?boolean? where ?style? is one of: caption, dialog, maximize, minimize, stayontop, style, taskbar, transparent If ?boolean? is omitted, the current setting of ?style? is returned. Notes (or Bugs, if you prefer): When toggling the taskbar style, if the window is mapped, the window must first be withdrawn and then the style changed. Toggling the style without first withdrawing the window will have no effect on the window's presence in the taskbar, even if the window is later withdrawn and deiconified. Making multiple windows stayontop results in those windows being on top of all other windows, but maintaining a stacking order between themselves; there is no churn going on. Changing styles causes interactions in varying ways. For instance, setting either just the minimize or maximize style false simply disables that button. Setting them both, however, causes both buttons to be removed from the title bar. Removing a window from the task bar causes its minimize and maximize buttons to be removed, as well as its system menu, though the close box remains. Removing a windows's system menu causes removal of the minimize, maximize and close buttons. Removing the caption results in a window much like one with overrideredirect on, but the window remains resizable In addition, the space taken up by the caption becomes available to the window. ------------------------------------------------ ---------------------------------------------------------------------- >Comment By: Jeffrey Hobbs (hobbs) Date: 2002-05-08 15:40 Message: Logged In: YES user_id=72656 I already have a modified version of this which handles TOPMOST plus a few other behaviors (will have to merge these ideas). I had placed it in 'wm configure', but I realize that 'wm attributes', like 'file attributes' is the perfect place for it. A TIP will be needed. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=312997&aid=553926&group_id=12997 |