Bug #2713
Bug #2677: fix drawing and functional differences between P2J GUI and 4GL GUI
Incorrect labels in case of the overlapping widgets.
0%
History
#1 Updated by Igor Skornyakov over 8 years ago
- File zr.p added
If two widgets (f
and g
FILL-IN
in the attached program) are overlapped then with 4GL only the label of the topmost widget is visible and this doesn't change even after the Z-order is changed via MOVE-TO-TOP()
/MOVE-TO-BOTTON()
methods. With p2j both lables are 'half-visible'.
#2 Updated by Greg Shah over 8 years ago
- Project changed from Runtime Infrastructure to User Interface
#3 Updated by Greg Shah over 8 years ago
- Start date deleted (
09/14/2015) - Parent task set to #2677
#4 Updated by Constantin Asofiei over 8 years ago
- Status changed from New to WIP
- Assignee set to Constantin Asofiei
#5 Updated by Constantin Asofiei over 8 years ago
- File label-z-order_header.png added
The issue is more complex than just z-order. When computing the top-label layout for a case when widgets intersect (on X and Y), the order of the labels is somehow "undefined":
DEFINE VARIABLE f AS CHAR FORMAT "X(20)" NO-UNDO VIEW-AS FILL-IN. DEFINE VARIABLE g AS CHAR FORMAT "X(10)" NO-UNDO VIEW-AS FILL-IN. DEFINE VARIABLE j AS CHAR FORMAT "X(10)" NO-UNDO VIEW-AS FILL-IN. DEFINE VARIABLE h AS CHAR FORMAT "X(10)" NO-UNDO VIEW-AS FILL-IN. DEF FRAME fr f AT COLUMN 1 ROW 3 BGCOLOR 1 g AT COLUMN 1 ROW 3 BGCOLOR 3 h AT COLUMN 1 ROW 1 BGCOLOR 1 j AT COLUMN 1 ROW 1 BGCOLOR 3 WITH TITLE "fr" AT COLUMN 1 ROW 1 SIZE 40 BY 12. ENABLE ALL WITH FRAME fr. WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW.
Even if j
and h
are set for row 1, they are well bellow this row. The order gets even weird if more widgets are added and the same row is used in misc cases.
Can we make this a low priority? I think the numeric format/selection issue #2727 is more important.
#6 Updated by Greg Shah over 8 years ago
- Priority changed from Normal to Low
Yes, this is not critical right now.