Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#254 closed enhancement (fixed)

Add MUIA_MinWidth and MUIA_MinHeight

Reported by: Andreas Falkenhahn Owned by: Thore Böckelmann
Priority: normal Milestone: 4.0-2015R3
Component: Area.mui Version: 4.0-2015R2
Severity: minor Keywords:
Cc: OS Platform: All
Blocked By: Blocking:
Release Notes:

Implemented MUIA_MinHeight and MUIA_MinWidth to enforce a certain minimum object dimension in a convenient way.

Description

It would be great if there was a possibility to specify minimum dimensions for an object. MUIA_FixWidth and MUIA_FixHeight can do this but they are not very useful here because they forbid resizing. I want to be able to set minimum dimensions for an object but still allow the user to increase the dimensions of this object.

For example, one might want to set a minimum width for a listview which will be filled with very long lines of text. Currently, this isn't easily possible. The only way is to override mAskMinMax but this is quite complicated.

So being able to set a minimum width and height would come in really handy. The implementation could be pretty similar to MUIA_FixWidth and MUIA_FixHeight, just with the possibility to increase the dimensions instead of fixing them to this particular size.

Change History (3)

comment:1 Changed 4 years ago by Thore Böckelmann

Milestone: future release4.0-2015R3
Owner: set to Thore Böckelmann
Priority: undecidednormal
Status: newassigned

comment:2 Changed 4 years ago by Thore Böckelmann

Resolution: fixed
Status: assignedclosed

In 4930:

  • Area.c: implemented MUIA_MinHeight and MUIA_MinWidth to enforce a certain minimum object dimension in a convenient way. Please keep in mind that creating a subclass of Area.mui and overloading the MUIM_AskMinMax method is definitely a cleaner way to accomplish this, especially if you intend to add more features than just a minimum size. This closes #254.

comment:3 Changed 4 years ago by Thore Böckelmann

Release Notes: modified (diff)
Note: See TracTickets for help on using tickets.