StackLayoutPanel: How to determine the height of the header-widget?

25 views
Skip to first unread message

David

unread,
Aug 1, 2011, 2:14:38 PM8/1/11
to google-we...@googlegroups.com
Hello,

I am using a StackLayoutPanel. The problem I have is that the text for each header gets created dynamically and I don't know how to figure out how many lines it is long and what the resulting size of the header-widget is. Right now I am counting the characters in the text, but that is really a more than dirty hack. Any ideas on that issue? I only found information on resizing the StackLayoutPanel itself based on the data it contains.
Any tipps/hints are appreciated!

Regards, David
Reply all
Reply to author
Forward
0 new messages