1. Tracy Lamb
  2. PowerBuilder
  3. Wednesday, 11 October 2023 16:26 PM UTC

Hi all,

In my application, the toolbars work fine.  If I right-click on the menu at runtime, I can turn the toolbar text on or off.  By default it's off.  How can I change that to be on by default?

Not sure where the code is, or what the property it.  I'm using PB2021 and PFC 12. 

TIA,

~~~Tracy

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 11 October 2023 18:02 PM UTC
  2. PowerBuilder
  3. # Permalink

Open the Application object and look at the properties sheet. ToolbarText should do it.

In code:

Application la_app

la_app = GetApplication()

la_app.ToolbarText = True

Comment
  1. Tracy Lamb
  2. Wednesday, 11 October 2023 20:45 PM UTC
Thank you! Both methods work great! Didn't realize it's an application object property... I kept looking for a menu property.

~~~Tracy
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 11 October 2023 18:31 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Tracy - 

This is managed by a property of the Application object, and when used, is typically set in the Application object's Open event:

This.ToolbarText = True

In PB Help, look under "toolbars", then sub-topic "Set properties in the Application Painter".

Best regards, John

Comment
  1. Tracy Lamb
  2. Wednesday, 11 October 2023 20:49 PM UTC
This works too!
  1. Helpful
  1. Arnd Schmidt
  2. Wednesday, 11 October 2023 21:35 PM UTC
  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.