You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here I found something intreseting:
It seems that windows put the max, min, restore, close or even help button's glyph in the DWMWindow class.
And there is something from the tcl/tk ttk_vsapi manual page (https://www.tcl.tk/man/tcl9.0/TkCmd/ttk_vsapi.html):
Change the appearance of a ttk::checkbutton(n) to use the Explorer pin part EBP_HEADERPIN.
And this program created a checkbutton with a element from the vsapi in the EXPLOREBAR.
So I am thinking we can get the elements from the vsapi in the DWMWindow and let dwm to draw the three buttons.
Sadly, it doesn't work when I wrote down something like this:
ttk::style element create max vsapi DWMWINDOW 29 \
{disabled 4 pressed 3 active 2 {} 1}
ttk::style layout MaxButton {MaxButton.max -sticky news}
pack [ttk::button .close -style MaxButton]
TODO: make it works
The text was updated successfully, but these errors were encountered:
Here I found something intreseting:
It seems that windows put the max, min, restore, close or even help button's glyph in the DWMWindow class.
And there is something from the tcl/tk ttk_vsapi manual page (https://www.tcl.tk/man/tcl9.0/TkCmd/ttk_vsapi.html):
And this program created a checkbutton with a element from the vsapi in the EXPLOREBAR.
So I am thinking we can get the elements from the vsapi in the DWMWindow and let dwm to draw the three buttons.
Sadly, it doesn't work when I wrote down something like this:
TODO: make it works
The text was updated successfully, but these errors were encountered: