Print Page | Close Window

Problem with Commandbar Actions!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=16692
Printed Date: 27 November 2024 at 3:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with Commandbar Actions!
Posted By: shipwreck
Subject: Problem with Commandbar Actions!
Date 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



Replies:
Posted By: shipwreck
Date 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


Posted By: Baldur
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net