![]() |
Make a CommandBar button visible/hidden? |
Post Reply ![]() |
Author | |
Juzzy ![]() Newbie ![]() Joined: 06 April 2006 Location: Australia Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() Posted: 17 April 2006 at 9:09pm |
This must sound like an easy thing to do, but I can't see to find how to do it. If I have already setup my buttons on a toolbar or in a menu on the form load, how do I access a particular button to change it's attributes like visibility from another function or event? XS_BAR_TOOL = 100 XS_BTN_PRINT = 2000 If I have a button (XS_BTN_PRINT) on a toolbar (XS_BAR_TOOL), how do I make it invisible? I am not sure how to select the actual object (without referring to .Item(index) ). Thanks Juzzy |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
You can change Visible proprety in Update event handler.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Juzzy ![]() Newbie ![]() Joined: 06 April 2006 Location: Australia Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
What does this mean? This is an event! I want to change the visibility based on some event outside Commandbars, eg like a normal button. How do I get access to another Control? Do I have to use the .Find method first? Surely there is a way of accessing it directly without using the Index object? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, You can use .Find method, but better add global variable and call Control.Visible = gNeedToHide in UpdateHandler. When you need to change the state just change this variable gNeedToHide = not gNeedToHide |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |