How to collapse roster

Hi! I try customize the Tkabber for LAN usage. I want to make roster collapsable. It should work like this: user click a button(or dbl-click on the splitter's square) and the roster's width will change to 0. And when user will do that action again, roster restore its width.

I'm going to learn tcl/tk, and now i'm beginner. I think that it is not hard thing for prof-programmers. =)

And little questions, that can help me to do collapsable roster myself...

1. How to change geometrical propertions of the window's frames. (Roster, MUC Contacts, InputText and other). How do that from plugin.

2. How add button somewhere on the window. And is it possible to do that from plugin too.

3. How "learn" the button from item2 to do action from item1... =)

I think, there are absolutely lamer-questions, but I am only at the start of understanding how works anything in tcl/tk... =)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: How to collapse roster

Anything that you demand is possible provided that Tkabber is written in one of the most (if not the most) dynamic languages. And yes, hardcore customization can either go to the Tkabber configuration file or be provided by plugins.

On the other hand, you ask questions that won't be answered since the task you outlined requires moderate knowledge of Tcl/Tk, and this resource isn't devoted to Tcl/Tk education.

You have to start here, here, buy and read a good book on Tcl/Tk and so on.

If you can read Russian, Tkabber wiki has lots of resourses regarding Tkabber, in particular, a page about non-trivial customization.

You can also check out some (third-party) plugins to learn how to tweak Tkabber UI ("customstatus" and "recentstatus" are good examples, "autoanswer" implements addition of a cutsom button to the toolbar).

If you have any particular ideas about creating plugins for customizing Tkabber's behaviour, feel free to formulate them here, or — better — in the Tkabber chatroom at tkabber@conference.jabber.ru — may be someone will be convinced to help you or at least will suggest some solution.

Syndicate content