Groups | Blog | Home
all groups > dotnet windows forms designtime > january 2005 >

dotnet windows forms designtime : How to get actual width in dropdown UITypeEditor?


Michael Kairys
1/25/2005 3:44:32 PM
I have a UITypeEditor consisting of a set of owner-drawn buttons. I've
implemented it as a UserControl containing a Panel, to which I add the
buttons when the control is instantiated.

For the neatest appearance I would like to organize the buttons in rows and
columns according to the width of the Panel, and have the width of the Panel
be the same as the width of the property grid cell it below which it is
dropped.

However I have not found a way to get that width. Detailed searching of the
structures at runtime reveals a property
PropertyGridInternal.PropertyGridView.labelWidth that seems to represent the
actual width, but of course I can't access that in my application.

Thanks for any suggestions...

Michael Kairys
SL Corporation

Michael Kairys
2/10/2005 8:07:44 AM
You.re telling me it's hopeless?

joeycalisay
2/11/2005 6:02:22 PM
I'd rather have that editor to be a modal dialog than the dropdown...

--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/


[quoted text, click to view]

Michael Kairys
2/16/2005 8:39:25 AM
You're telling me not only that it's hopeless, but that I shouldn't even be
asking the question?

joeycalisay
2/17/2005 8:36:01 AM
not at all, am just giving my views since I myself could not locate a
possible solution in your problem. Sorry if it meant that way for you,
apologies...

--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/


[quoted text, click to view]

AddThis Social Bookmark Button