FVWM:

Peter Holm <[email protected]>
Newsgroups gmane.comp.window-managers.fvwm
Message-ID <CAOZhre25uH9eUyMh-OgT61nmPWfhcWmnNYg4zdz5V2MFiYLWfA@mail.gmail.com>
Is it possible to add an already started application (for example
xterm) to fvwmbuttons.?
Or is it better to use FvwmIconMan .? I don't get how to get
FvwmIconMan to use numbered states.

Reason to ask - I have managed to make some grouped windows which I
want to add a buttonbar to, or on the fly or add and remove the
windows  into FvwmButtons, and ther have a Button.Panel for the
windows.
Best would be if I could get the buttons to show up in the same order
as the windows is layered.

Here is the main part of the config for my grouped windows.
---------------------
AddToFunc StartFunction
....
+ I InfostoreAdd tabbs 29
...
Key  T A SM ToggleWindow ThisWindow DetachWindow ThisWindow AttachWindow

# ToggleWindow is planned to be used for much else, for example -right
now with correct
# parameters It is used to  stick and unstick  single or grouped windows.
# I guess I will rewrite this function a few times
DestroyFunc ToggleWindow
AddToFunc ToggleWindow
+ I ThisWindow (CurrentPage, State $[infostore.tabbs])
+ I  TestRc (Match) KeepRc $[0] $[1]
+ I  TestRc (NoMatch) $[2] $[3]
# + I  TestRc (Error) ....

DestroyFunc AttachWindow
AddToFunc AttachWindow
+ I None (State $[infostore.tabbs])
+ I TestRc (Match) SetMainWindowSpecs
+ I ThisWindow State $[infostore.tabbs] True
+ I ThisWindow (State $[infostore.tabbs]) ResizeMoveMaximize
$[infostore.TabWindow_Width]p

DestroyFunc SetMainWindowSpecs
AddToFunc SetMainWindowSpecs
 + I InfoStoreAdd TabWindow_Width $[w.width]
 + I InfoStoreAdd TabWindow_Heigth $[w.height]
 + I InfoStoreAdd TabWindow_X $[w.x]
 + I InfoStoreAdd TabWindow_Y $[w.y]

DestroyFunc CycleWindows
AddToFunc CycleWindows
+ I Next (CurrentPage, State $[infostore.tabbs]) Raise
...
#Also some functions for manage the position of grouped or not grouped windows.
...
Key 1 A SM ToggleWindow "All (CurrentPage, State $[infostore.tabbs])" LeftUpper\
															ThisWindow LeftUpper
--------------------------------
Aside from my question, any comments or suggestions regarding this
config are highly welcomed.

-- 
Med vänlig hälsning / With kind regards
/Peter Holm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.