(Moved to dev for my questions)

Ed Leafe wrote:
> On Mar 23, 2007, at 11:22 AM, Will Brady wrote:
> 
>> I am trying to create a form with a panel that is sized with a  
>> specific
>> width and height. I added a panel to the form and I am trying to  
>> figure out
>> how to resize it. I cannot manually change the width and height  
>> properties
>> of the panel from the properties window. I haven't found anyway to  
>> drag the
>> corners of the panel to the size I'm looking for either. All I have  
>> figured
>> out is that the expand property will make it fill the screen and  
>> when the
>> expand property is off it shrinks to this tiny column that I can't  
>> figure
>> out how to change either. I'm sure somebody knows the solution to this
>> problem.
> 
>       Right now if you are using a form with sizers to control the layout,  
> the Height and Width properties are disabled. Why? Because they were  
> causing too much confusion among people who were new to sizers,  
> expecting the sizer to then ignore that control. When I added non-

But Width and Height *are* valid properties to set even when working 
with sizers, especially when the control is set to not expand, as with 
proportion=0 or flag="normal", because they determine what size the 
object will be while the sizer controls where they are positioned 
relative to other controls. But Width and Height are even valid 
properties when the control is set to expand, because they determine the 
best fitting size, which is a hint to wx on how to size stuff.

The Position properties are indeed useless in sizers, as far as I can 
tell, though.

> sizer-based forms to the Designer, I thought about enabling those  
> properties, but never got around to it.

I think you are correct to disable Position, Left, Right, Top, and 
Bottom, but not to disable Size, Width, and Height.

>       Longer term, I'd be interested in hearing what people think about re- 
> enabling manually setting size from the property sheet. Is it too  
> confusing when using sizers, or should we just let them figure it out?

Sizers are already confusing, but part of figuring them out is seeing 
how setting properties of the sizer and of the object affects them, real 
time. +1 on re-enabling those properties.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to