Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PB7 - how to disable toolbar buttons at runtime

Status
Not open for further replies.

programmerbrian

Programmer
Sep 27, 2002
15
0
0
CA
Hello,

I'm wondering how to dot notate my way to a toolbar button's properties (specifically Enable) from a window event. When an event is triggered in my window, I disable controls in the window, but I also want to be able to disable toolbar buttons. The window is a sheet in an MDI.

Thanks in Advance!!
 
Toolbar button Enabled property is referenced through the Menu item. If you want to disable the Open toolbar button, you would code:

m_master lm_Menu
//
lm_Menu = This.MenuID
lm_Menu.m_File.m_Open.Enabled = FALSE

However, for Visible property, you need to set the value for both - Menu item as well as Toolbar button.


---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top