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 » trouble with tabs ((identifying selected tab))
trouble with tabs [message #52444] Wed, 02 October 2019 02:15 Go to previous message
mtdew3q is currently offline  mtdew3q
Messages: 181
Registered: July 2010
Location: Upstate, NY (near Canada)
Experienced Member

HI all-

I am very puzzled. i want code to activate on tab WhenSet, and then to identify which tab is the current tab.

Am I doing something wrong?

        tab1.Add(eventGrid.SizePos(), t_("Events"));
	tab1.Add(dateGrid.SizePos(), t_("Dates"));
	tab1.Add(sqlArr.SizePos(), t_("Tasks")); 


tab1.WhenSet = THISBACK(ManageMenus); 


void CantonEdu::ManageMenus() {
// TabCtrl::Item & tabItemZero = tab1.GetItem(0);

  	int n3 = tab1.Get();
  	bool n2 = tab1.IsAt(eventGrid);

	// PromptOK( "" + n3);
	// PromptOK( "" + n2);
	//n3 and n2 do not return anything (blank dialog msg window).
	// cant use tabItemZero because I can't pass in an int like n3 to GetItem;
        
        // NOTE this function doesn't really do anything (yet). It is a mishmash of pseudo code.
        // I used examples of Get and IsAt to communicate that the PromptOk dialog window returns nothing.
	
}


I will check back in about 14 hours. I am at GMT -5.

thnx.
roboloki

[Updated on: Wed, 02 October 2019 05:04]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Background color of layout
Next Topic: How do I change TabCtrl tab size
Goto Forum:
  


Current Time: Fri Apr 19 00:40:56 CEST 2024

Total time taken to generate the page: 0.02753 seconds