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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » FillTabPage
FillTabPage [message #5512] Thu, 28 September 2006 23:53 Go to previous message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
If we want that the pages of a TabCtrl completely occupy the space defined by the function TabCtrl::GetOpaqueRect(), we can use this simple piece of code.

void FillTabPage( Ctrl& c, TabCtrl& tab )
{
  Ctrl::Logc lHorz, lVert ;
  lHorz.SetAlign(ALIGN_CENTER) ;
  lVert.SetAlign(ALIGN_CENTER) ;
  c.SetPos( Ctrl::LogPos(lHorz, lVert) );
}


I am using it in my present development and is very well!

Example of use:
....
  tab.Add(listDefinitionPage, t_("List definition") ) ;
  tab.Add(listDataPage, t_("Addresses and data") ) ;
  tab.Add(messagePage, t_("Message's body") ) ;

  FillTabPage(listDefinitionPage, tab ) ;
  FillTabPage(listDataPage, tab ) ;
  FillTabPage(messagePage, tab ) ;
....


index.php?t=getfile&id=272&private=0
In the Image, left Window use FillTabPage, the right window don't use it.

Nico
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ParentCtrl
Next Topic: UWord flickes...!!
Goto Forum:
  


Current Time: Sun Sep 22 20:43:24 CEST 2019

Total time taken to generate the page: 0.01073 seconds