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 » TreeCtrl » ArrayCtrl as a node of TreeCtrl
ArrayCtrl as a node of TreeCtrl [message #14096] Mon, 11 February 2008 04:25 Go to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
I'm trying to put an ArrayCtrl as a node of TreeCtrl.
Everything seems to be fine except of the positioning of the ArrayCtrl.

By default the ArrayCtrl will overlap with other nodes. If I set node's margin the ArrayCtrl will be shifted right and down. Shifting down seems to be a right thing, but shifting right doesn't look right.

Any suggestions how to fix that or how to do similar task in a different way?

TIA
  • Attachment: test1.png
    (Size: 4.91KB, Downloaded 699 times)
  • Attachment: test2.png
    (Size: 4.95KB, Downloaded 622 times)
  • Attachment: TestControls.zip
    (Size: 0.79KB, Downloaded 463 times)


Regards,
Novo
Re: ArrayCtrl as a node of TreeCtrl [message #14109 is a reply to message #14096] Mon, 11 February 2008 14:26 Go to previous messageGo to next message
qapko is currently offline  qapko
Messages: 55
Registered: October 2007
Location: Slovakia
Member
In 2008.1beta I had similar problem. The size of tree node is wrongly calculated when there is only Ctrl (and no Value) in node. The things were changed somewhere between 709.dev1 and 2008.1beta. Last week I've just fixed it for my purposes in my uppsrc (I'm sorry for not providing the bug report yet), but I have focused only on the way how I am using the component. I vote for fixing the problem in official sources by the author of the changes Wink
I attach TreeCtrl.cpp and TreeCtrl.h for 2008.1beta fixing mine problems.

Gabi
  • Attachment: TreeCtrl.zip
    (Size: 9.84KB, Downloaded 447 times)
Re: ArrayCtrl as a node of TreeCtrl [message #14113 is a reply to message #14109] Tue, 12 February 2008 03:41 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
qapko wrote on Mon, 11 February 2008 08:26


I attach TreeCtrl.cpp and TreeCtrl.h for 2008.1beta fixing mine problems.

Gabi


Thank you very much! That fixed my problems as well.

Can this fix be applied to the official UPP source?


Regards,
Novo
Re: ArrayCtrl as a node of TreeCtrl [message #14157 is a reply to message #14113] Fri, 15 February 2008 17:16 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes, applied.

Mirek
Re: ArrayCtrl as a node of TreeCtrl [message #15183 is a reply to message #14157] Mon, 07 April 2008 22:21 Go to previous messageGo to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hi Mirek,

Please see the thread below for the effects this fix has when used with a TreeCtrl with options along with a testcase.

http://www.ultimatepp.org/forum/index.php?t=msg&goto=151 82&#msg_15182

Cheers,

Nick

Re: ArrayCtrl as a node of TreeCtrl [message #20201 is a reply to message #14096] Tue, 24 February 2009 20:40 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Novo wrote on Mon, 11 February 2008 05:25

I'm trying to put an ArrayCtrl as a node of TreeCtrl.
Everything seems to be fine except of the positioning of the ArrayCtrl.

By default the ArrayCtrl will overlap with other nodes. If I set node's margin the ArrayCtrl will be shifted right and down. Shifting down seems to be a right thing, but shifting right doesn't look right.

Any suggestions how to fix that or how to do similar task in a different way?

TIA


Very interesting example... I want to put a TreeCtrl in ArrayCtrl column... and avery row node of TreeCtrl will have ArrayCtrl row.
Is possible?

I want to elaborate this in abbreviation mechanism.
Previous Topic: gui crashes.
Next Topic: PopUpTree related questions
Goto Forum:
  


Current Time: Thu Mar 28 22:30:25 CET 2024

Total time taken to generate the page: 0.02245 seconds