Book a Demo

Author Topic: v16β - Nesting subshapes stops Label being selectable  (Read 3461 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
v16β - Nesting subshapes stops Label being selectable
« on: February 17, 2022, 02:03:19 pm »

If you need to create two subshapes within the shape Label and set the attributes accordingly and conditionalise the call as in:

Code: [Select]
if(hastag("BoldIt","True"))
{
   addsubshape("bolder",100,100);
} else
{
   addsubshape("notbold",100,100);
}
shape bolder
{
   bold=true;
   printwrapped("#Alias# b");
}
shape notbold
{
   bold=false;
   printwrapped("#Alias# n");
}

You can no longer select the label and move it!

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
Re: v16β - Nesting subshapes stops Label being selectable
« Reply #1 on: February 17, 2022, 03:10:12 pm »
You can no longer select the label and move it!

Based on that comment am I correct in assuming  this is for shape label?

ie.
Code: [Select]
shape label
{
if(hastag("BoldIt","True"))
{
   addsubshape("bolder",100,100);
} else
{
   addsubshape("notbold",100,100);
}
shape bolder
{
   bold=true;
   printwrapped("#Alias# b");
}
shape notbold
{
   bold=false;
   printwrapped("#Alias# n");
}
}

Is there a reason for omitting the necessary context?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v16β - Nesting subshapes stops Label being selectable
« Reply #2 on: February 17, 2022, 05:18:56 pm »
You can no longer select the label and move it!

Based on that comment am I correct in assuming this is for shape label?
"If you need to create two subshapes within the shape Label and set the attributes accordingly and conditionalise the call as in:"  ;)
Quote

ie.
Code: [Select]
shape label
{
if(hastag("BoldIt","True"))
{
   addsubshape("bolder",100,100);
} else
{
   addsubshape("notbold",100,100);
}
shape bolder
{
   bold=true;
   printwrapped("#Alias# b");
}
shape notbold
{
   bold=false;
   printwrapped("#Alias# n");
}
}


Is there a reason for omitting the necessary context?
Do you mean for shape main etc?
"Pick a shape, any shape" (including an empty one)


Paolo
« Last Edit: February 17, 2022, 05:20:59 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!