Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: how setting of boarder line dynamically  (Read 884 times)

solomon78

  • Newbie
  • *
  • Posts: 27
    • View Profile
how setting of boarder line dynamically
« on: December 03, 2024, 01:47:01 am »
How to disable or enable boarder line of of Text_Item dynamically base on certainin conditions, if retrieve data of Text_Item is null boarder line should not appear but if not null boarder should show. thank

Subst

  • Sr. Member
  • ****
  • Posts: 451
    • View Profile
Re: how setting of boarder line dynamically
« Reply #1 on: December 05, 2024, 11:34:45 am »
Hi!
By using the script as the content of TextItem for example
Like this

Code: [Select]
$S{
  if (your_condition)
    THIS.borders=15;
  "simple_text";
  }

the Enum of borders is

Code: [Select]
enum BorderSide {
  NoLine = 0,
  TopLine = 1,
  BottomLine = 2,
  LeftLine = 4,
  RightLine = 8,
  AllLines = 15
  };
« Last Edit: December 05, 2024, 11:50:13 am by Subst »