Jump to content

Application Message Display with colors


Rammer

Recommended Posts

Hello all. I am trying to come up with a way to have a message table for the users of an application. I would like to show different levels of messages (Error, Warning, and Informational) and would like each to have a distinct font color in the table/array (red for error, yellow for warning, blue for informational). I have found a way to do this with a table via the property nodes. My problem is I don't want the table to grow infinitley so I limit it to the last X messages where X is usually 100. Once I hit the 100 message limit I must loop through the whole 100 cells of the table to set the new font color. This is terribly inefficient. Does anyone have any other ideas or have they done something similar?

Thanks.

Link to comment

QUOTE (Rammer @ Dec 29 2008, 02:46 PM)

Hello all. I am trying to come up with a way to have a message table for the users of an application. I would like to show different levels of messages (Error, Warning, and Informational) and would like each to have a distinct font color in the table/array (red for error, yellow for warning, blue for informational). I have found a way to do this with a table via the property nodes. My problem is I don't want the table to grow infinitley so I limit it to the last X messages where X is usually 100. Once I hit the 100 message limit I must loop through the whole 100 cells of the table to set the new font color. This is terribly inefficient. Does anyone have any other ideas or have they done something similar?

Thanks.

Ideas off top of my head...

1) Use an active cell of -2,-2 to write the default color and only explicitly write the cells that are different

2) set Defer.FP.Updat = F prior to setting the properties and then un-defer the Front Panel update when you are done.

3) Addition to #2 above. Set the table to not visable after the defer, but before the changes....

Ben

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.