Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Problem with Commandbar Actions!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with Commandbar Actions!

 Post Reply Post Reply
Author
Message
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Topic: Problem with Commandbar Actions!
    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
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2010 at 12:40am
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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2010 at 12:01pm
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.