Highlighted
Super Contributor.
Super Contributor.
71 views

Display bitmap always over label

Jump to solution

I need to display a bitmap over a label or to put it this way: a label should never overlap a bitmap.

But even if the bitmap is defined in the screen section behind the label or is displayed seperately after the label the label overlaps the bitmap.

Is there a solution for my problem ?

 

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Display bitmap always over label

Jump to solution

Issue - the label overlaps the bitmap .. I do not believe you can change that behavior. You may have some options using RGB colors and the TRANSPARENT property for labels. One other thought was - when you want to display a BITMAP over a label, consider using a push-button - push-button have a bitmap property and can have text and a tool tip. You would modify the label to not be visible and display your push-button.

My example below using the OK bitmap Acu provides in the AcuBench example project. For the label I use RGB colors and transparent. When displayed, the first label has it where you will see the last letter in the table title displayed on top of the bitmap.

03 Screen1-La-2, Label,
COL 16.60, LINE 3.30, LINES 3.20 CELLS, SIZE 6.10 CELLS, COLOR IS 257,BACKGROUND-RGB H#00C0C0C0, FOREGROUND-RGB H#00400040, ID IS 5, CENTER, LABEL-OFFSET 0,
TITLE "Label", TRANSPARENT.
03 Screen1-Bt-1, Bitmap, TRANSPARENT-COLOR 16777215,
COL 20.80, LINE 3.10, LINES 32, SIZE 61,
BITMAP-HANDLE bmpbtn-bmp, BITMAP-NUMBER 1,
ID IS 6.
Without RGB and transparent the code below you see the label background color on top of the bitmap.
03 Screen1-Bt-1a, Bitmap, TRANSPARENT-COLOR 16777215,
COL 35.50, LINE 3.10, LINES 32, SIZE 61,
BITMAP-HANDLE bmpbtn-bmp, BITMAP-NUMBER 1,
ID IS 9.
03 Screen1-La-1, Label,
COL 31.00, LINE 3.40, LINES 2.10 CELLS, SIZE 5.30 CELLS,
ID IS 8, LABEL-OFFSET 0,
TITLE "Label".

I hope this helps.

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Display bitmap always over label

Jump to solution

Issue - the label overlaps the bitmap .. I do not believe you can change that behavior. You may have some options using RGB colors and the TRANSPARENT property for labels. One other thought was - when you want to display a BITMAP over a label, consider using a push-button - push-button have a bitmap property and can have text and a tool tip. You would modify the label to not be visible and display your push-button.

My example below using the OK bitmap Acu provides in the AcuBench example project. For the label I use RGB colors and transparent. When displayed, the first label has it where you will see the last letter in the table title displayed on top of the bitmap.

03 Screen1-La-2, Label,
COL 16.60, LINE 3.30, LINES 3.20 CELLS, SIZE 6.10 CELLS, COLOR IS 257,BACKGROUND-RGB H#00C0C0C0, FOREGROUND-RGB H#00400040, ID IS 5, CENTER, LABEL-OFFSET 0,
TITLE "Label", TRANSPARENT.
03 Screen1-Bt-1, Bitmap, TRANSPARENT-COLOR 16777215,
COL 20.80, LINE 3.10, LINES 32, SIZE 61,
BITMAP-HANDLE bmpbtn-bmp, BITMAP-NUMBER 1,
ID IS 6.
Without RGB and transparent the code below you see the label background color on top of the bitmap.
03 Screen1-Bt-1a, Bitmap, TRANSPARENT-COLOR 16777215,
COL 35.50, LINE 3.10, LINES 32, SIZE 61,
BITMAP-HANDLE bmpbtn-bmp, BITMAP-NUMBER 1,
ID IS 9.
03 Screen1-La-1, Label,
COL 31.00, LINE 3.40, LINES 2.10 CELLS, SIZE 5.30 CELLS,
ID IS 8, LABEL-OFFSET 0,
TITLE "Label".

I hope this helps.

View solution in original post

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: Display bitmap always over label

Jump to solution

Hi,

we tried the transparent label and this works for us.

Thanks for your help.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.