Re: FVWM: Function To Manage FvwmButtons Instances

2014-08-16 Thread Dominik Vogt
On Sat, Aug 16, 2014 at 12:11:28PM +0100, Jamie Griffin wrote: > > On 16/08/2014 10:30, Dominik Vogt wrote: > >On Sat, Aug 16, 2014 at 09:50:15AM +0100, Jamie Griffin wrote: > >>Aside from any errors, would you have any recommendations to improve > >>what i'm trying to achieve? > >In my eyes, this

Re: FVWM: Function To Manage FvwmButtons Instances

2014-08-16 Thread Jamie Griffin
On 16/08/2014 10:30, Dominik Vogt wrote: On Sat, Aug 16, 2014 at 09:50:15AM +0100, Jamie Griffin wrote: Aside from any errors, would you have any recommendations to improve what i'm trying to achieve? In my eyes, this is a good approach. Well, in the CloseFooOpenBar function you might want to

Re: FVWM: Function To Manage FvwmButtons Instances

2014-08-16 Thread Jamie Griffin
On 16/08/2014 08:40, Dominik Vogt wrote: + I TestRc (NoMatch) KillModule Dock I've had a go at using your suggestion but it does not work for me?

Re: FVWM: Function To Manage FvwmButtons Instances

2014-08-16 Thread Dominik Vogt
On Sat, Aug 16, 2014 at 09:50:15AM +0100, Jamie Griffin wrote: > Aside from any errors, would you have any recommendations to improve > what i'm trying to achieve? In my eyes, this is a good approach. Well, in the CloseFooOpenBar function you might want to check whether Bar is already open and on

Re: FVWM: Function To Manage FvwmButtons Instances

2014-08-16 Thread Jamie Griffin
On 16/08/2014 08:40, Dominik Vogt wrote: AddToFunc ToggleWindow + I None ($$0, CirculateHit) $$1 + I TestRc (Match) Break + I Next (currentpage, visible, !iconic, $$0, CirculateHit) Close + I TestRc (Match) Break + I Next ($$0, CirculateHit) Function MakeVisible AddToFunc Make

Re: FVWM: Function To Manage FvwmButtons Instances

2014-08-16 Thread Dominik Vogt
On Sat, Aug 16, 2014 at 08:05:11AM +0100, Jamie Griffin wrote: > What I've got so far is two functions: one that checks the top > taskbar, stops it if it's open and then opens the bottom dock; the > other function does the same but for the other fvwmbuttons dock. > Here they are: > > DestroyFunc O

FVWM: Function To Manage FvwmButtons Instances

2014-08-16 Thread Jamie Griffin
Hi, I wonder if someone might be able to help me with a function i'm trying to create. I have two fvwmbuttons instances, a taskbar at the top of screen and a dock at the bottom. I don't really want to use both at the same time but I do want to be able to switch between the two. So, I would l