Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TabCtrl » Tabs with same layout but different "threads"
Tabs with same layout but different "threads" [message #33846] Sun, 18 September 2011 20:03 Go to previous message
r1kon is currently offline  r1kon
Messages: 7
Registered: January 2011
Promising Member
Hey guys,

Quick question. I am making an app that has a TabCtrl as the main way that it shows information. The best way to think about how this app works is to think of an IRC (chat) client.

The tabs are all themselves using the same type of layout. However, the amount of tabs is noted by what "chat rooms" the person has joined.

So, I basically need one "tab" per chat room. Each "tab" uses the exact same layout, except each tab will have different content (the chat room messages from each room).

I have used, and know how to use, tabs. Problem is, the way that I use them basically "ties" each layout to that specific identifier.

Say my layout is named "myLayout", so it would look like so (in my header):

WithtabLayout<ParentCtrl> newTabLayout;

Then, in my cpp file (my tab control is named "tabs"):

CtrlLayout(newTabLayout);
tabs.Add(newTabLayout,"Chat Room #1");

And this works fine. However, when a new chat room is joined and I create a new tab with the newTabLayout, each of the tabs are "linked" since I am using the same layout (changes on one will change all of the tabs).

Is there any way I can create a new tab, with the same layout, but "separated" from the other tabs so when I make changes to one (set a label or something) it doesn't change on all of the tabs?

I really hope this makes sense...and thank you guys so much for helping me out!

-Kevin
 
Read Message
Read Message
Previous Topic: How do i create tabs??
Next Topic: How to change Tab name
Goto Forum:
  


Current Time: Mon Apr 29 05:31:06 CEST 2024

Total time taken to generate the page: 0.68872 seconds