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 » ArrayCtrl, HeaderCtrl & GridCtrl » When ArrayCtrl is Embedded into TabCtrl, AutoHideSb() will be fail
When ArrayCtrl is Embedded into TabCtrl, AutoHideSb() will be fail [message #20830] Sun, 12 April 2009 11:18 Go to next message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
as title, when ArrayCtrl is embedded into TabCtrl, i can't use AutoHideSb(), because the vertical scrollbar will fail,the test code is in the additional file.

the result program is like that:
index.php?t=getfile&id=1677&private=0


But when i comment this code

// _array.AutoHideSb(true);

everything is fine.

Could someone know how to solve this problem? Thanks a lot.

  • Attachment: Test.JPG
    (Size: 25.88KB, Downloaded 461 times)
  • Attachment: MyApps.rar
    (Size: 1.45KB, Downloaded 219 times)

[Updated on: Sun, 12 April 2009 11:35]

Report message to a moderator

Re: When ArrayCtrl is Embedded into TabCtrl, AutoHideSb() will be fail [message #20831 is a reply to message #20830] Sun, 12 April 2009 23:27 Go to previous messageGo to next message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
If you stop calling _array.HeaderObject().Absolute(); there isn't any problem with scrollbar, but you loose horizontal scroll.

I wasn't able to compile your example in Linux until I've changed
typedef _TestArrayCtrl< WithTestArrayCtrlLayout<Ctrl> > testArrayCtrl; // TestArrayCtrl (uppercase T)

and in _TestArrayCtrl<T>::_TestArrayCtrl() constructor
T::_array.AutoHideSb(true);
T::_array.HeaderObject().Absolute();
// etc.
because g++ doesn't know from where to get _array.

Anyway, why do you choose to add an array to a tab as a layout and not add it directly?
Re: When ArrayCtrl is Embedded into TabCtrl, AutoHideSb() will be fail [message #20883 is a reply to message #20831] Wed, 15 April 2009 19:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Bug, fixed. Thanks.

BTW, do not put absolute path into sources.

#define LAYOUTFILE <Test/Test.lay>

Mirek
Re: When ArrayCtrl is Embedded into TabCtrl, AutoHideSb() will be fail [message #20908 is a reply to message #20883] Fri, 17 April 2009 13:26 Go to previous message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
Thanks you all. Very Happy
Previous Topic: finding row by key
Next Topic: GridCtrl column width simple question
Goto Forum:
  


Current Time: Thu Apr 18 03:07:28 CEST 2024

Total time taken to generate the page: 0.02244 seconds