enable/disable entire command bar? |
Post Reply |
Author | |
DanielWilson
Newbie Joined: 11 September 2007 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 14 July 2009 at 5:29pm |
Is there a way to disable then re-enable the entire command bar?
I have a customer using 11.2 and they have a long-running Save routine. If you click Save, then click several command buttons, the whole app crashes. Sometimes only 1 button click is needed. I believe that if I can prevent the user from clicking another button until that Save is complete, I can stop the crashes. At least, I want to test that hypothesis. So ... can I disable the command bar? Thanks! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Guess you can just add some varaible that Save process is running and exit from Execute event if so.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Mr.Den
Groupie Joined: 26 August 2007 Status: Offline Points: 50 |
Post Options
Thanks(0)
|
This is how I set the command bar controls to disabled:
Dim obBar As CommandBar
Dim obCtrl As CommandBarControl Dim iLCtr As Integer On Error GoTo errHandler errHandler: Edit:
Had to leave aburuptly , so here goes:
Pass a boolean value to a sub, or as I did, I used bMActive as a modular level variable.
Use a for/next loop to iterate through the controls on the commandbar, and set the Enabled property as needed, depending on the Id if desired.
|
|
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 7 Professional (64bit) - SP 1 Language: Visual Basic 6.0 SP 6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |