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 Chriss Miller 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
Joined
Sep 27, 2002
Messages
15
Location
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
 
Thanks, works great. The menuId was the missing link.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top