Bug? CustomView mBase resize is not permanent

stevel05

Expert
Licensed User
Longtime User
If you resize the Base pane of a customview in code by setting the prefwidth or prefheight properties and then update the display (resize the form by dragging an edge or clicking the maximize button) the Base pane reverts to the size originally defined in the designer.

The small example attached demonstrates.

Click the Resize button then resize the form.
 

Attachments

  • CVBaseResize.zip
    4 KB · Views: 292

stevel05

Expert
Licensed User
Longtime User
Same with Left and Top
 

stevel05

Expert
Licensed User
Longtime User
OK, it's been a while. Thanks
 

Cableguy

Expert
Licensed User
Longtime User
This is not a bug.
It will happen with all views. Uncheck the Handle Resize Event option if you want to change the layout in your code or reapply the changes in the parent resize event.
Funny, I don't recall having this issue.... But then again, I rarely resize my views in code.
 

stevel05

Expert
Licensed User
Longtime User
Yes, just a memory lapse issue. I do remember the option being there now it's too late. I must have used it before.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…