Book a Demo

Author Topic: v15.2 – bold (or italic) =false doesn’t override the setting on subshapes  (Read 3133 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
The Help (for Shape Attributes) says:
Bold      string
Description: Set to True if you want all print commands in the current shape or sub-shape to be displayed in bold.
Valid values: True or False (default = False)


The equivalent for Italic.  However, only True seems to work.  If you use a bold (or italic or bold & italic) font and set the attribute to False, it doesn't perform the function!

Please rectify.

EAUI!
Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Why don't you include useful information like your actual shape script that you're having problems with.

If I'm reading what you intended from what you've written you have interpreted the help to read "...in the current shape or sub-shape, and all sub-shapes of that shape, to be displayed in bold".

If I had your shape script I would know that for certain instead of guessing.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Why don't you include useful information like your actual shape script that you're having problems with.

If I'm reading what you intended from what you've written you have interpreted the help to read "...in the current shape or sub-shape, and all sub-shapes of that shape, to be displayed in bold".

If I had your shape script I would know that for certain instead of guessing.
Code: [Select]
shape main
{
  if(hasproperty("rectanglenotation","0"))
{ //Icon Form
addsubshape("notescompartment", 50,50, 25,45);
shape notescompartment
{
h_align = "center";
bold=false;
italic=false;
println("#Notes#");
}
//Draw triangle
startpath();
moveto(0,100);
lineto(50,0);
lineto(100,100);
lineto(0,100);
endpath();
strokepath();
}
else
drawnativeshape();
}
FWIW, we were investigating the surfacing of the element notes inside a triangular shape.  The code was taken originally from the "// EDITABLE FIELD SHAPE" example script in the Example Scripts help page and then modified for our tests.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!