Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Close button for tabs

<< < (7/8) > >>

DreadNot:
As far as the toolbar is concerned, add the following buttons after Save:
1] Save All
2] Close (current tab/file)
3] Close All

Did anyone notice that Mozilla also has a "New Tab" button on the left side as well as a "Close Tab" on the right.

The notebook code calls "wx/generic/tabg.h", so what I believe needs to be changed is "tabg.h" and "tabg.cpp" in wx to have a controlled left and right margin something like it has for the top margin.  I think these files are generic to all wx versions.  The left/right margin should act something like (and in addition to) the m_tabHorizontalOffset value.  These margins would allow the addition of the button(s) to the left and right sides of the notebook in the tabs area.

AkiraDev:

--- Quote ---Insert Quote
As far as the toolbar is concerned, add the following buttons after Save:
1] Save All
2] Close (current tab/file)
3] Close All
--- End quote ---

I would agree on just adding the Save All button, as during workflow, it is the option I use the most.


--- Quote ---Did anyone notice that Mozilla also has a "New Tab" button on the left side as well as a "Close Tab" on the right.
--- End quote ---

Do you mean adding a "new empty text file" button?


--- Quote ---The notebook code calls "wx/generic/tabg.h", so what I believe needs to be changed is "tabg.h" and "tabg.cpp" in wx to have a controlled left and right margin something like it has for the top margin.  I think these files are generic to all wx versions.  The left/right margin should act something like (and in addition to) the m_tabHorizontalOffset value.  These margins would allow the addition of the button(s) to the left and right sides of the notebook in the tabs area.
--- End quote ---

Very useful info, will look into that.

Regards

AkiraDev:
Hi to all.

Someone recently added a tabbed control which mimics the Microsoft Visual Studio .NET source code editor layout to the wxForum Code Dump.
Those interested can take a peek here: http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=3781&sid=b3f75113346331c93f921302889bb031

Regards

rickg22:
Alright, so that means we should merge the wxTabbedCtrl with (um... forgot your name sorry :oops: ) 's modified notebook code.

kimastergeorge:
No, all you really need is their version. It doesn't have any sort of customizable button, but it works the same as mine, and seems to be much prettier (and cleaner).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version