ToolbarText and ToolbarTips with MDIDockHelp

1
0
-1

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.

Question Tags: 

Answers

Olan Knight answered ToolbarText and ToolbarTips with MDIDockHelp

1
0
-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

lynskey_15034's picture

The menu control type doesn't have that property, just the application itself.

Olan Knight's picture

>>> 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