PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Multi-line Text Color  (Read 641 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Multi-line Text Color
« on: October 28, 2022, 01:28:31 PM »
I've got a panel with a couple of standard multi-lines, some buttons, a folder with 7 tabs, and 2 other multi-lines used as "traffic lights" to indicate whether the current record's process is Enabled or not. The status is controlled by a checkbox on the first tab. Both are locked and hidden/shown based on Dependencies.
The Enabled status is fine: Black text on Light Green background.
The Disabled status is strange: It's defined as White text on Light Red background. When first Shown, it comes up as Black on Light Red. It's only after a secondary panel is PROCESSed through a folder panel that it shows up as White on Light Red. If we return to the tab with the Enabled checkbox, it returns to Black on Light Red. (See attached.)
The library defaults have the colors set to Black on Light Gray.
Running PxPlus v15.1 with WindX on Linux.

Any ideas/suggestions?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Multi-line Text Color
« Reply #1 on: October 31, 2022, 03:44:56 PM »
How are you switching the buttons colors? 
Are you setting the properties of the button based on the record status?  How is the linkage between the checkbox on the first tab relayed to the other tabs?
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: Multi-line Text Color
« Reply #2 on: October 31, 2022, 05:14:53 PM »
This is a File Maintenance program expanded to include 4 secondary files. The checkbox is simply one of the mail file's fields. There's nothing special linking it to the other tabs. The only thing about those particular tabs (not all) is that they PROCESS another panel to deal with specific sub-file data. When the program hits the PROCESS statement is when it seems the color on the text changes.

The "Buttons" are multi-lines (though actual buttons may work better). The Green one is OK.

The Red one is defined with a Foreground color of White and Background Color of Light Red on the Font/Clr tab. It is Initially Hidden, and SHOWn via Dependency. I've also added logic to the Dependency to set both the TextColor and FocusTextColor to White, just to get something happening.

Do the Library Defaults take precedence over the object's settings? They're set to Black on Light Gray. That might explain the Text but not the Background color.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services