italics text in LABEL "cuts" groups bevel on the right side

This forum is for general developer support questions.
Post Reply
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

italics text in LABEL "cuts" groups bevel on the right side

Post by javierdlr »

Hi, having a right placed label in a reaction window if text is set in italics the groups bevel gets "cutted" at the right side (part of the last character is drawn into the bevel group), see pic attached. Is it a bug in label.image (bevel group lines)?

Code: Select all

..
LAYOUT_LabelColumn, LJ_RIGHT,
..
LAYOUT_AddChild, OBJ(OBJ_INPUTPREFS) = IIntuition->NewObject(NULL, "button.gadget",
 GA_ID,        OBJ_INPUTPREFS,
 GA_RelVerify, TRUE,
 GA_Text,      "Modify...",
TAG_DONE),
CHILD_WeightedWidth, 0,
CHILD_Label, IIntuition->NewObject(NULL, "label.image",
 LABEL_Underscore, ~0,
 LABEL_SoftStyle, FSF_ITALIC,
 LABEL_Text, "(re-run KMS to reflect this change)",
TAG_DONE),
..
Attachments
right side of bevel "cutted" by italic text
right side of bevel "cutted" by italic text
grab.JPG (10.85 KiB) Viewed 5010 times
Last edited by javierdlr on Mon Apr 14, 2014 1:24 pm, edited 1 time in total.
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: italics text in LABEL "cuts" groups bevel on the right s

Post by javierdlr »

"Fixed" such issue by adding a blank sapce at the end of such line and an blank space text (again) " " using FS_NORMAL:

Code: Select all

..
CHILD_WeightedWidth, 0,
CHILD_Label, IIntuition->NewObject(NULL, "label.image",
 LABEL_Underscore, ~0,
 LABEL_SoftStyle, FSF_ITALIC,
 LABEL_Text, "(re-run KMS to reflect this change) ",
 LABEL_SoftStyle, FS_NORMAL,
 LABEL_Text, " ",
TAG_DONE),
..
BTW "LAYOUT_LabelColumn" in autodcos says:
The side where the on which side of the gadget the label will
be placed in the group. Valid values are PLACETEXT_LEFT and
PLACETEXT_RIGHT. See CHILD_Label.

but 'PLACETEXT_' doesn't exists I had to "use" 'LJ_', typo in autodoc?

TIA
Last edited by javierdlr on Tue Apr 15, 2014 12:25 am, edited 1 time in total.
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 1:06 am

Re: italics text in LABEL "cuts" groups bevel on the right s

Post by xenic »

javierdlr wrote:Hi, having a right placed label in a reaction window if text is set in italics the groups bevel gets "cutted" at the right side (part of the last character is drawn into the bevel group), see pic attached. Is it a bug in label.image (bevel group lines)?
The problem may not be in Reaction. When I tested using italics for filenames in Dopus5 listers, the beginning of the line "cuts" the left lister bevel edge. Dopus5 doesn't use Reaction. The problem may be in graphics.library or intuition.library.
AmigaOne X1000 with 2GB memory - OS4.1 FE
User avatar
ssolie
Beta Tester
Beta Tester
Posts: 1010
Joined: Mon Dec 20, 2010 8:51 pm
Location: Canada
Contact:

Re: italics text in LABEL "cuts" groups bevel on the right s

Post by ssolie »

javierdlr wrote:"Fixed" such issue by adding a blanck sapce at the end...
What are the bug numbers tracking the issues?
ExecSG Team Lead
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: italics text in LABEL "cuts" groups bevel on the right s

Post by javierdlr »

As I find it today and wasn't sure it was my lame porgramming skills, first posted it here. Anyway filled new BZ #8776.
Maybe has something in common with BZ #1436?
Post Reply