Opened 5 years ago

Closed 5 years ago

#181 closed enhancement (fixed)

title/page text context dissappears with stretching=0% (not in MUI perfs Groups)

Reported by: Javier de las Rivas Owned by: Thore Böckelmann
Priority: normal Milestone: 4.0-2015R2
Component: Title.mui Version: 4.0-nightly build
Severity: minor Keywords:
Cc: OS Platform: AmigaOS4
Blocked By: Blocking:
Release Notes:

Description

Problem

Pages/Title text content dissapear when STRECHING is set to 0%, but in MUI prefs (GROUPS)
the pages/title fits to its length.

Other programs (YAM, SysMon, Pages [MUI Demo]) all shrink to a minimal title/page.

Is there any tag (or trick un MUI prefs groups) that clones MUI prefs behaviour?

Analysis

See pics attached.

Enhancement recommendation

If MUI prefs GROUPS makes use some "non standard" trick to display page/title it should be removed so all programs behave the same way.
Or if there is some missing tag on above named programs (YAM, SysMon, Pages [MUI Demo]) can you tell explain how to do it, so I can contact authors ;-) so they fix'em

TIA

Attachments (2)

sgrab_0.png (92.1 KB) - added by Javier de las Rivas 5 years ago.
stretching set to 0% (diffs between programs)
sgrab_100.png (100.3 KB) - added by Javier de las Rivas 5 years ago.
stretching set to 100%

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Javier de las Rivas

Attachment: sgrab_0.png added

stretching set to 0% (diffs between programs)

Changed 5 years ago by Javier de las Rivas

Attachment: sgrab_100.png added

stretching set to 100%

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

Milestone: 4.0-2015R2
Owner: set to Thore Böckelmann
Priority: undecidednormal
Status: newassigned

The point is that all the applications you tested still use the old register class while MUI prefs uses the new title class with all its differences. The old register class still exists for compatibility, but internally uses the new title class and hence offers stretched tabs, too.

The big difference is that the old register class uses simple strings for the tab titles while the new title class uses real objects with all their possibilities.

The big question is now what one should expect if a text label is requested to be stretched to 0% of its width. In principle the old register class does exactly what you asked for and resizes the tabs to the absolute minimum. The new title class does almost the same but the objects can ask for a specific minimum size which of course cannot be underrun. This is what you see in MUI prefs.

I think as an first solution I will implement a custom tab label class for the old register class which leaves some more pixels (i.e. 32) visible at the minimum size. This at least solves the completely vanishing text for common font pixel sizes.

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

Resolution: fixed
Status: assignedclosed

In 4626:

  • Register.c: implemented a custom label class which enforces a minimum width which leaves at least the label's first character visible. This closes #181.
Note: See TracTickets for help on using tickets.