Custom control parameterization and its representation #821
rossanoparis
started this conversation in
Ideas
Replies: 1 comment
-
The Mockup panel is as close to a live dialog as I can get while still being embedded into a panel, so I'm not sure I can get drawing on it to work in a DPI-independent way without causing problems for other live controls (such as clicking within a container for the custom control). Short-term, at least, I'd be inclined to add a property to custom controls that specifies a mockup size in dialog units. In most cases, that won't be as easy for the user, unless the control is hidden, or in a hidden container like |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
custom control parameters
Here below a sketch of what I'm going to propose regarding custom controls parameterization.
Following the way used by wxDialogBlocks, it would be very helpful to improve the control parametrisation usign the way shown below.
With five optional parameters, you can obtain a better code for instancing new custom controls ...
remark: I used a wxSplitterWindow as parent only to make a quick sketch; I know it doesn't make sense to express size for the custom control, in this case
custom control representation
Another useful feature is related to "Mock up" context. It would be nice to draw the area occupied by custom control respecting the size inserted using properties tab.
Otherwise the entire layout drawn in "Mock up" context doesn't respect the final layout.
Best regards
Rossano
Beta Was this translation helpful? Give feedback.
All reactions