Bug #2705
Bug #2677: fix drawing and functional differences between P2J GUI and 4GL GUI
frame sizing using SIZE phrase is not honored
100%
History
#1 Updated by Greg Shah almost 11 years ago
Refer to the ask-gui.p screenshots (4GL, P2J Web and P2J Swing) in #2701-2
The frame is no-box and side-labels. This means it has no title/header and is only a single line long. The size is defined by SIZE 105 by 1.
Notice how the 4GL version extends the white frame background past the right side of the fill-in but in P2J it doesn't extend out far enough.
Constantin notes this:
I think the FILL-IN is sized properly, the problem is with the Frame's width: the "SIZE 105 BY 1" should have precedence over the implicit frame's dimension (determined at layout), but instead it ignores it.
#2 Updated by Greg Shah almost 11 years ago
Please also test/fix the code in issue 1 (frame fr1 layout issue) in #1801-76
#3 Updated by Constantin Asofiei almost 11 years ago
- Status changed from New to WIP
- Assignee set to Constantin Asofiei
The issue in note 1 is solved in #2704
#4 Updated by Constantin Asofiei almost 11 years ago
frbtn.p to remove unsupported features in 1811s (default/cancel-button, alert-boxes), the uast/frame_layout/frbtn_layout.p has these issues:
- on "delayed" layout (on frame realization), dynamic widgets must not be included - solved
- when top-labels are used, the row position of the dynamic widgets must start bellow the frame's top-label header (I think they are put in a separate field-group...).
- the row/column position of the top-labels is incorrect
#5 Updated by Constantin Asofiei almost 11 years ago
New issue: width for BUTTON widget with LABEL is not computed correct (it uses a text-length * font-width formula instead of label-length-in-pixels).
#6 Updated by Constantin Asofiei almost 11 years ago
From note 4, issues 1 and 2 are solved in 1811s rev 10983. Also, some NPEs related to LABEL assignment before the dynamic widget is attached to a frame are fixed.
#7 Updated by Constantin Asofiei almost 11 years ago
Eugenie, can you point me to the rules you found to compute the width of the BUTTON in GUI (with label, image, label+image)? This is because the current formula is label-width * font-width, but this doesn't fit the usage in uast/frame_layout/frbtn_layout.p - the button width is incorrect.
#8 Updated by Constantin Asofiei almost 11 years ago
Eugenie, another issue about buttons: they should not be in "enabled" state by default.
#9 Updated by Constantin Asofiei almost 11 years ago
1811s rev 10985 completes dynamic widget layout started in 10983. Also, BUTTON default state is DISABLED.
The only issues remaining are these (in WIP order):- VIEW or DISPLAY widgets in frame
fr2doesn't work in GUI withuast/frame_layout/frbtn_layout.p. Although in ChUI it works. - the row/column position of the top-labels is incorrect
- BUTTON implicit/auto-resize size is incorrect - can Eugenie take this part of the #2742 ?
#10 Updated by Greg Shah almost 11 years ago
BUTTON implicit/auto-resize size is incorrect - can Eugenie take this part of the #2742 ?
Yes. Eugenie, please take this.
#11 Updated by Eugenie Lyzenko almost 11 years ago
Greg Shah wrote:
BUTTON implicit/auto-resize size is incorrect - can Eugenie take this part of the #2742 ?
Yes. Eugenie, please take this.
OK. Confirm issue with button sizing.
#12 Updated by Constantin Asofiei almost 11 years ago
- % Done changed from 0 to 100
1811s rev 10988 fixes last two issues for this task (1 and 2 from note 9).
#13 Updated by Greg Shah almost 11 years ago
- Status changed from WIP to Closed
- Target version set to Milestone 12
#14 Updated by Greg Shah over 9 years ago
- Target version changed from Milestone 12 to GUI Support for a Complex ADM2 App