Print Page | Close Window

Actions can only set some properties for 1 control

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=9713
Printed Date: 22 May 2024 at 7:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Actions can only set some properties for 1 control
Posted By: JantjeKeizer
Subject: Actions can only set some properties for 1 control
Date Posted: 27 February 2008 at 5:32am
When I try to change the caption of a X number of controls, I seem to fail using actions

This is a simple test demonstrating my problem:

    Const ID_TEST = 100
    cb.EnableActions

    cb.ActiveMenuBar.Controls.Add xtpControlButton, ID_TEST, "Test1"
    cb.ActiveMenuBar.Controls.Add xtpControlButton, ID_TEST, "Test2"

    cb.Actions.Add ID_TEST, "", "", "", ""

    cb.Actions(ID_TEST).Caption = "Changed"
    cb.Actions(ID_TEST).Enabled = False


This code only changes the caption of 1 control, but it DOES change things like enabled state and visibility.
Perhaps I'm missing something, but why do some properties work and others don't?



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