Author Topic: BasicButton with ImageON and ImageOFF  (Read 5119 times)

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
BasicButton with ImageON and ImageOFF
« on: February 24, 2019, 01:37:50 PM »
Currently, in order to show ImageON & OFF with BasicButton, some coding will be required presumably.
But if there's a large number of buttons, then coding can become messy. Yes, one can combine all button click type events into one routine, but things get more complicated with using different color like ImageGreenON or ImageRedOFF or ImageYellowON or ImageBlueOFF and etc ...

Any ideas? Thanks.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: BasicButton with ImageON and ImageOFF
« Reply #1 on: February 24, 2019, 01:57:45 PM »
What about the GraphicIndicator? It functions as a button and can use On/Off images to display current state.

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
Re: BasicButton with ImageON and ImageOFF
« Reply #2 on: February 24, 2019, 04:04:19 PM »
Graphic Indicator can switch images, but the Text need to be Multi-line, TextAlign, as well TextAlternate to switch OFF/ON or START/STARTED.  I think, its Text2 can be eliminated.

Thanks.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Phrog30

  • Guest
Re: BasicButton with ImageON and ImageOFF
« Reply #3 on: February 24, 2019, 04:31:12 PM »
My basic button has images for states. Look at the last project I linked.

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
Re: BasicButton with ImageON and ImageOFF
« Reply #4 on: February 24, 2019, 06:01:06 PM »
What link?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: BasicButton with ImageON and ImageOFF
« Reply #5 on: February 24, 2019, 06:17:31 PM »
I think, its Text2 can be eliminated.
The reason for Text2 is to have the option of showing a PLC value along with the static Text.

Phrog30

  • Guest
Re: BasicButton with ImageON and ImageOFF
« Reply #6 on: February 24, 2019, 06:24:21 PM »

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
Re: BasicButton with ImageON and ImageOFF
« Reply #7 on: February 24, 2019, 09:06:00 PM »
Is this Archie's approved ? :-)

Btw, It's one hell of a control, down to every details like from FTV. I'd thought you dislike Rockwell so much?

Thanks.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: BasicButton with ImageON and ImageOFF
« Reply #8 on: February 24, 2019, 09:18:26 PM »
Is this Archie's approved ? :-)
I back and approve any and all contributions. We're all in this together with the same objective. As time permits I try to review all contributions for consideration to be incorporated into the base package.

Phrog30

  • Guest
Re: BasicButton with ImageON and ImageOFF
« Reply #9 on: February 25, 2019, 06:18:51 AM »
Is this Archie's approved ? :-)

Btw, It's one hell of a control, down to every details like from FTV. I'd thought you dislike Rockwell so much?

Thanks.
I dislike Rockwell HMIs due to price, performance, and overall functionality. I did mimic their stuff, but it's free, works pretty darn good, and if I don't like something or need to make modifications I can. So, to me that's more bueno.

If you find any issues let me know.

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
Re: BasicButton with ImageON and ImageOFF
« Reply #10 on: March 19, 2019, 12:40:38 PM »
I am using v399yBeta28 and Basicbutton ( No Image )

With PLCAddressClick & PLCAddressSelectTextAlternate , I can switch between Text & TextAlternate

With PLCAddressClick & PLCAddressHighLightX, I can switch between default color  &  HighLightColor

But with PLCAddressClick & PLCAddressHighLightX & PLCAddressSelectTextAlternate  , it switches color but not the text.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: BasicButton with ImageON and ImageOFF
« Reply #11 on: March 19, 2019, 01:19:38 PM »
I am using v399yBeta28 and Basicbutton ( No Image )

With PLCAddressClick & PLCAddressSelectTextAlternate , I can switch between Text & TextAlternate

With PLCAddressClick & PLCAddressHighLightX, I can switch between default color  &  HighLightColor

But with PLCAddressClick & PLCAddressHighLightX & PLCAddressSelectTextAlternate  , it switches color but not the text.
This will be fixed shortly in Beta 29