1. Juan Pedro Sanz Diez
  2. PowerBuilder
  3. Tuesday, 14 April 2020 15:58 PM UTC

Hi, friends:

 

I have a toolbar menu cascade with three options:

menucascade_toolbar

                     -> option 1

                     -> option 2

                     -> option 3

 

It works fine: whatever option I choose at runtime , the menu cascade_toolbar item  shows the option i have chosen.

 

I want to go further, and I store the user chosen option in the database. But when the user opens the app, and i try to select back the user option, i can't  show it in menucascade_toolbar item.

 

I tried.

 

      1.- option3.triggerevent(clicked!) -> Runs the code in the event, it doesn't change neither toolbarItemName nor toolbarItemText in the menucascade_toolbar item

      2.- option3.check(). -> it doesn't change neither toolbarItemName nor toolbarItemText in the menucascade_toolbar item

      3.- option3.triggerevent(selected!) -> idem.

      4.- menucascade_toolbar.toolbarItemName= 'c:\imagenespb\resize_rojo.png'
          menucascade_toolbar.toolbarItemText= 'Resize 2'

          idem. It overrides them.

     5.- option3..EVENT Clicked()-> Idem

 

Any workaround to convince it?

 

Thanks in advance.

 

Regards!!!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Brad Mettee Accepted Answer Pending Moderation
  1. Wednesday, 15 April 2020 13:44 PM UTC
  2. PowerBuilder
  3. # 1

Use the .checked property.

Something like: m_mainmenu.m_cascade.m_option2.checked = true

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.