1. Richard Lynskey
  2. PowerBuilder
  3. Thursday, 10 August 2017 21:26 PM UTC

We've got a few applications, and one common theme with all of them is that they all have ToolbarText set to false and ToolbarTips set to true by default.

If I use this code in a MDIHelp! window, the toolbartext will enable immediately:

application    lapp_application
lapp_application = GetApplication ()
lapp_application.toolbartext = true

If I use the same code in an MDIDockHelp! window, nothing changes.

I can even go into the open event in my application itself and add ToolbarText = true in the MDIDockHelp! app and do not get the toolbar text.

I have the same issue with the ToolbarTips property.

Has anyone else experienced anything like this, or found any workarounds, or know of some documenation we've missed? Or is it a bug I should report?

Side note, ToolbarUserControl is on, and using the built in right click popup control does work to turn those two options off and on.

Olan Knight Accepted Answer Pending Moderation
  1. Friday, 11 August 2017 13:52 PM UTC
  2. PowerBuilder
  3. # 1

At th bottom of the OPEN event, try POSTING a new event called "ue_enable_toolbar". Inside the new event:

      // set pointer to the menu

      m_menu.m_file_or_whatever.ENABLED = TRUE     // if required

      m_menu.m_file_or_whatever.ToolBarText = TRUE

 

Later -

Olan

Comment
  1. Richard Lynskey
  2. Friday, 11 August 2017 20:33 PM UTC
The menu control type doesn't have that property, just the application itself.

  1. Helpful
  1. Olan Knight
  2. Sunday, 13 August 2017 20:22 PM UTC
>>> Side note, ToolbarUserControl is on, and using the built in right click popup control does work to turn those two options off and on.



If the user can switch the options, you can do so. Simply trigger the menu event you want. This is not an elegant solution, but it will work!



Rules of the Military.  Rule #1: If it's stupid but it works, it's not stupid.



Good Luck,



Olan



 

  1. Helpful
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.