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 » Sorry for bothering you with another question:)
Sorry for bothering you with another question:) [message #5212] Sun, 10 September 2006 19:46 Go to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
In TabCtrl,when I place one ctrl as one of it's page,there is a gap between page's frame and tabctrl's frame,how reduce the size of the gap?yes,maybe I can get the answer from TheIDE source,but I tried,it's too hard.
thanks
Re: Sorry for bothering you with another question:) [message #5217 is a reply to message #5212] Sun, 10 September 2006 20:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I am not sure I understand the question.

Anyway, the layout of TabCtrl is largerly dictated by XP theming API (plus necessary heurestics to make it work).

Mirek

Re: Sorry for bothering you with another question:) [message #5235 is a reply to message #5217] Mon, 11 September 2006 03:17 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
I mean what the red arrow point to index.php?t=getfile&id=259&private=0
  • Attachment: tab.PNG
    (Size: 1.76KB, Downloaded 3594 times)
Re: Sorry for bothering you with another question:) [message #5263 is a reply to message #5235] Tue, 12 September 2006 05:00 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
no solution?
Re: Sorry for bothering you with another question:) [message #5268 is a reply to message #5263] Tue, 12 September 2006 10:34 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, it is defined by chameleon metrics variable.

You should be able to adjust that by specifying your own metrics function with different MARGIN and calling TabCtrl::Style.

Mirek
Re: Sorry for bothering you with another question:) [message #5289 is a reply to message #5268] Tue, 12 September 2006 15:33 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
thanks!but don't know how Razz

[Updated on: Tue, 12 September 2006 17:41]

Report message to a moderator

Re: Sorry for bothering you with another question:) [message #5301 is a reply to message #5268] Wed, 13 September 2006 09:18 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
luzr wrote on Tue, 12 September 2006 04:34

by specifying your own metrics function with different MARGIN and calling TabCtrl::Style.

Mirek

is there any code to show how to specify such metrics function,why there no interface to set such parameter.
Re: Sorry for bothering you with another question:) [message #5334 is a reply to message #5301] Wed, 13 September 2006 20:11 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Ulti wrote on Wed, 13 September 2006 03:18

luzr wrote on Tue, 12 September 2006 04:34

by specifying your own metrics function with different MARGIN and calling TabCtrl::Style.

Mirek

is there any code to show how to specify such metrics function,why there no interface to set such parameter.



To conserve the space. I expect the style change to be not quite often; it is therefore better to hold single pointer to function rather than 16 integers.

OK, it is true that for TabCtrl this is non-issue, but I have actually used it as testcase for other Ctrls (think about thousand of widgets in ArrayCtrl or TreeCtrl Wink. I guess this is the way how to provide common cheap interface to deal with visual style changes. (Note that this is very recent stuff, chameleon was added 2 months ago).
Previous Topic: How to get this?
Next Topic: TabCtrl raises Assert in Array [BUG]
Goto Forum:
  


Current Time: Fri Mar 29 15:14:57 CET 2024

Total time taken to generate the page: 0.01407 seconds