Author Topic: Add back colors to group panel  (Read 1463 times)

thebestg2002

  • Newbie
  • *
  • Posts: 26
    • View Profile
Add back colors to group panel
« on: February 14, 2023, 04:38:10 PM »
I added two additional back colors to the PLC properties for a group panel. Currently, back color2  and back color3 is default to green and red respectively in the "Misc" properties section. How do I add the colors I want to select for my new PLC properties back color4 and back color5?

thebestg2002

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Add back colors to group panel
« Reply #1 on: March 03, 2023, 03:30:10 PM »
I ended up adding a messagedisplaybyvalue behind each button to show the status of that particular position.
There are 5 values being used where 0=Empty=Gray,1=Queue=Blue,2=Pass=Green,3=Fail=Red,4=Extra=Purple.
The button writes a value to the PLC to indicate the position selected which will update some other tags for the measurements taken for that particular position.
In addition to status, each position shows the work order and line numbers below a button. The button, messagedisplaybyvalue, and labels are all consolidated into in a grouppanel.

In the "StatusMissing" attached image, positions 51-80 no longer show the correct status. 51-79 should be extras (4=purple). The PLC tag assigned to the value = 4.
Position 80 should be queue (1=blue). The PLC tag assigned to the value = 1.

I recreated positions 51-80 with the same result. I then began deleting group panels by rows until I thought I narrowed the issue down to position 80.
If I delete the left label used to display the line number, the result is the same as the "StatusMissing" image.
If I delete the left label used to display the line number and the right label used to display the work order number, the status is now correct. The buttons no longer highlight though as position 3 was selected when the image was taken.
The PLC tag indicated that position 3 was selected. Reference "MissingLabelsPos80" image.

I then added an unnecessary label above position 80 to indicate which position is selected to prove it was actually selected. Reference "PosSelectedLabelAdded" image.
I then readded the left label used to display the line number. Reference "LeftLabelReadded". Now the highlighting was working, but the status was still incorrect.
For S&Gs, I then readded the right label used to display the work order number. Reference "RightLabelReadded". Now everything is displaying correctly which I was thrilled to see.
All I needed to do was delete the unnecessary label above position 80 to indicate which position is selected. After doing so, I was right back to the beginning. Reference "StatusMissing" image.
Then I readded the unnecessary label above position 80 to indicate which position is selected and turned it's visibility OFF in the properties window. The result was the same with the "StatusMissing" image.
I turned it's visibility back ON in the properties window and changed the fore color for that label to black in the form load event.
Everything works as it should except I now have a label that I don't need which bothers me. Reference "NormalOperation" image.

I can't figure this out. I have zero experience with Wireshark, but I may be able to get some assistance from our IT department if that will help identify the issue. Anyone have any ideas how I can further troubleshoot this issue?
Does it have anything to do with the quantity of labels, buttons etc. on this form? I'm at a loss and frustrated at this point so any help would be greatly appreciated. I wasn't sure what to even search for if this has happened to anyone else.

I'm out of attachments so I'll add the "NormalOperation" image to the next post.

thebestg2002

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Add back colors to group panel
« Reply #2 on: March 03, 2023, 03:30:42 PM »
"NormalOperation" image

I'm using V3.99y Beta38 and VS Community 2022 with a CLX L30ER for testing and debug. I'll eventually be using a L310ERS2 once received due to lead times.
« Last Edit: March 03, 2023, 03:34:43 PM by thebestg2002 »

thebestg2002

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Add back colors to group panel
« Reply #3 on: March 06, 2023, 08:57:57 AM »
Any ideas?

thebestg2002

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Add back colors to group panel
« Reply #4 on: March 06, 2023, 04:30:34 PM »
Management wanted a change that negated this issue. I'm still not sure what caused it though.