Problem with Commandbar Actions! |
Post Reply |
Author | |
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
Posted: 11 May 2010 at 7:53am |
Hello everyone, long time no see!
I have ran into trouble when I was trying to use a single button to represent three buttons such as "Refresh, Stop, and Go to". Originally, I was able to ensure the button's action and icon changed for the refresh and stop functions. But I want it to actually turn to the go button whenever the commnbarscombobox's text equals something other than the active windows' Web browser.locationURL but when I try to implement this in the commandbars_update(), I tells me that the object and/or variable isn't set when in fact it is. Can anyone tell me what I'm doing wrong or if there is a better way to implement this? Thanks and regards in advanced~!~ |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Seriously folks, Definitely need help here!
Any ideas? |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
In the UpdateEvent you get a reference to the control, not to the action.
So you can set the controls state.
If a control with the same id is placed on different locations, you get an update-event for each control.
If you want to use actions, you must first enable it.
You can do this in the designer or by code.
With actions, you can access them by id and all associated controls will be changed.
The missing Object may be a problem in your code.
|
|
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 |