Author Topic: v15.2 – setlinestyle(“NONE”)  (Read 14169 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8561
  • Karma: +254/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
v15.2 – setlinestyle(“NONE”)
« on: July 23, 2021, 10:02:22 am »
We have found a need to be able to suppress the borders of certain items on diagrams (by means of USDPs).  We have a potential jury-rigged solution but it is unsatisfactory for a number of reasons.  Would it be possible to have a setlinestyle(“NONE”) variant of the function to suppress the pen?

Thoughts?
Reported,
Paolo
« Last Edit: July 23, 2021, 10:07:16 am by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13551
  • Karma: +395/-300
  • I'm no guru at all
    • View Profile
Re: v15.2 – setlinestyle(“NONE”)
« Reply #1 on: July 23, 2021, 06:19:46 pm »
All I know is that using DrawNativeShape ignores all pen settings. it's always the default 1px black border. The fill is respected, though. Well, another bug not getting fixed.

I would think that setting a px = 0 would be drawing "null" but that's ignored as well. Else we set the color of the border to that of the filing. Would do what you expect as well.

q.
« Last Edit: July 23, 2021, 06:22:04 pm by qwerty »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8561
  • Karma: +254/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v15.2 – setlinestyle(“NONE”)
« Reply #2 on: July 23, 2021, 08:24:10 pm »
All I know is that using DrawNativeShape ignores all pen settings. it's always the default 1px black border. The fill is respected, though. Well, another bug not getting fixed.

I would think that setting a px = 0 would be drawing "null" but that's ignored as well. Else we set the color of the border to that of the filing. Would do what you expect as well.

q.
Forgot to mention it's not in Rectangular (Compartment) mode, so drawnativeshape is not involved.
The USDPs already allow the selection of the border type, this is just another option.

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

qwerty

  • EA Guru
  • *****
  • Posts: 13551
  • Karma: +395/-300
  • I'm no guru at all
    • View Profile
Re: v15.2 – setlinestyle(“NONE”)
« Reply #3 on: July 23, 2021, 10:44:48 pm »
So if you're drawing it all by yourself then why draw a null line? Just don't draw it...

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8561
  • Karma: +254/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v15.2 – setlinestyle(“NONE”)
« Reply #4 on: July 24, 2021, 12:05:53 am »
So if you're drawing it all by yourself then why draw a null line? Just don't draw it...

q.
The way the USDPs interact, it's more efficient (and consistent with the internal architecture of the shapescript) to set the line style to none.

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