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 next 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
Re: FillTabPage [message #5513 is a reply to message #5512] Fri, 29 September 2006 02:51 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
why not "SizePos()"?it works for me(in windows)
Re: FillTabPage [message #5514 is a reply to message #5512] Fri, 29 September 2006 10:21 Go to previous messageGo to next message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
It did not know that it existed.

Please, Writes an example and I will test it.

Nico
Re: FillTabPage [message #5515 is a reply to message #5514] Fri, 29 September 2006 10:31 Go to previous message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
Then I finish it proving and is much more simple thus.
Thanks
Nico
Previous Topic: ParentCtrl
Next Topic: UWord flickes...!!
Goto Forum:
  


Current Time: Fri Mar 29 00:03:44 CET 2024

Total time taken to generate the page: 0.04016 seconds