Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Actions can only set some properties for 1 control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Actions can only set some properties for 1 control

 Post Reply Post Reply
Author
Message
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post Topic: Actions can only set some properties for 1 control
    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?
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.156 seconds.