Anouncement

Welcome to Hong Liangjie's English Blog! I have maintained three blogs in chinese. And now I want to write English articles, so I open this one.

The articles here may be quite different from my chinese blogs while there may have some same content.

Anyway, it's a effort to express my ideas in another language.

Thursday, March 29, 2007

Somthing about multi-tab programming

Well, I am working on my bachelor thesis. That is an IDE for XML files. Now I want to support multi-tab view of XML files in my software, which is like something in Visual Studio. Besides, I want to support multi-perspective of XML files. That means that different perspectives have different toolbar buttons and menu items and different tabs may have different button state of enable property. When switching a tab to new perspective, the IDE would load new buttons that this perspective provides. When a tab is selected, the IDE would decide which button should be enabled.

Actually, all this kind of work means that the IDE should save the status of all controls for one tab not only the number of button but also the status of those button.

At the beginning, I saved those information into button's tag property but I quickly found that only a tag could hardly solve the problem.

Perhaps I would re-design the mechanism and design new class for those buttons.

No comments: