Author Topic: Message Display By Bit  (Read 2244 times)

dm1netprof

  • Newbie
  • *
  • Posts: 7
    • View Profile
Message Display By Bit
« on: October 04, 2016, 01:07:22 PM »
Hey Guys,

in the MessageDisplayByValue, you are able to change the Background Color and Text Color, But I can only get the Background color to change in MessageDisplayByBit

how do I get the Text Color to Change?

Quote
0,VSD1 "Winch" CommFault,Yellow,Black
1,VSD2 "Carriage" CommFault,Yellow,Black
2,VSD3 "Tilt" CommFault,Yellow,Black
3,VSD4 CommFault,Yellow,Black
4,Unknown Fault,Blue,White
5,VSD1 Ran for more then 5 Minutes,Red,White
6,VSD2 Ran for more then 10 Minutes,Red,White
7,VSD3 Ran for more then 1.333 Minutes,Red,White
8,VSD4 Ran for more then 1.333 Minutes,Red,White

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Message Display By Bit
« Reply #1 on: October 04, 2016, 01:22:16 PM »
ForeColor is not implemented on the MessageDisplayByBit. I will see if I can get that feature in the next release.

BlueAltezza

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Message Display By Bit
« Reply #2 on: June 26, 2017, 09:26:15 AM »
Any update to getting the actual message text color to change?  I'm new to AdvancedHMI and I'm trying to get my components to look the same as all of the other screen brands I've done (because we know how people accept change on their machines!), which is white text on a red background.

I've been searching through other posts and came across this one regarding message backgrounds: http://advancedhmi.com/forum/index.php?topic=1610.0

I installed the latest patch from the link but that didn't change anything for the text itself.

Phrog30

  • Guest
Re: Message Display By Bit
« Reply #3 on: June 26, 2017, 12:58:37 PM »
You can try this one, http://advancedhmi.com/forum/index.php?topic=1810.msg10049#msg10049.  I don't quite care how the native components work so I made my own.

James

BlueAltezza

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Message Display By Bit
« Reply #4 on: June 27, 2017, 12:25:19 PM »
Thanks!  I'll give it a whirl

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Message Display By Bit
« Reply #5 on: June 27, 2017, 03:43:21 PM »
I checked the latest version and it has the Forecolor/Backcolor options for the MessageDisplayByBit and tested to make sure they work.

Phrog30

  • Guest
Re: Message Display By Bit
« Reply #6 on: June 27, 2017, 07:52:56 PM »
I, along with three other guys in the office, tested with the latest and couldn't get message by value to work correctly with fore color. Not sure what to tell you. My guess is there is something screwy with the dll.

BlueAltezza

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Message Display By Bit
« Reply #7 on: July 06, 2017, 04:21:41 PM »
Did some more testing today - still no luck :(

In the MessageListByBit I tried changing the object fore color (including transparent), individual message back colors, and individual fore colors.  The only color I can get to change is the entire object background.  I also tried setting the object background to transparent with the hopes the message backgrounds would show up.
All messages would display in black.  Font style and size changed with no problem.

In the MessageDisplayByBit I got similar results from above with the exception of the object fore color.  Changing the fore color of the object changed the message text.


As for the MultiState & MessageValue: That works to change individual message backgrounds and foregrounds. If that was available in a list form it'd be perfect


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Message Display By Bit
« Reply #8 on: July 06, 2017, 04:55:58 PM »
Attached is the INI file I tested with along with the property settings.

IniFileName : Messages.txt
Value  : 7


- In Solution Explorer right click the AdvancedHMI project and select Add Existing Item
- Browse to the Messages.txt file that was downloaded from this post
- In Solution Explorer, click once on Messages.txt to get the properties
- In the Properties Window, set  CopyToOutputDirectory to Copy if Newer

BlueAltezza

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Message Display By Bit
« Reply #9 on: July 06, 2017, 05:24:19 PM »
That worked for the Message Display, nice!

Anything for the Message List?  ;D

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Message Display By Bit
« Reply #10 on: July 06, 2017, 06:28:03 PM »
Sorry.... my confusion. I thought you had trouble with the MessageDisplay. I'm not sure if different color messages are possible on a message list since it is based on a ListBox. I will look into it to see if the base ListBox allows colors for different lines.

Phrog30

  • Guest
Re: Message Display By Bit
« Reply #11 on: July 06, 2017, 09:22:14 PM »
I think you would need to use listview vs listbox in this case.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Message Display By Bit
« Reply #12 on: July 06, 2017, 09:44:41 PM »
I did find that it is possible as explained by this article:

https://www.codeproject.com/articles/8134/coloring-items-in-a-listbox

I will see if I can implement it for the next release.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Message Display By Bit
« Reply #13 on: July 07, 2017, 07:11:38 PM »
In the next release the MessageListByBit and MessageLstByValue will support ForeColor and BackColor for each message.