Print Page | Close Window

XTPControlEdit locking

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=1993
Printed Date: 17 May 2024 at 11:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPControlEdit locking
Posted By: atr3ides
Subject: XTPControlEdit locking
Date Posted: 20 March 2005 at 7:21am

I need to lock a xtpControlEdit item so it doesn't give the user the opportunity to change its value (it's programatically set), but I don't want it to be disabled. I am using v. 8.70 under Visual Basic 6.0 environment.




Replies:
Posted By: atr3ides
Date Posted: 23 March 2005 at 2:50pm

I would really appreciate any suggestion on this problem as the time is an important factor. Here is the code that defines it.

Dim cdjCtrls        &nbs p;       As CommandBarControls
Dim cdjBars          ;       As CommandBars

CommandBarsGlobalSettings.App = App

Set cdjBars = frmMain.CommandBars
Set toolbar = cdjBars.Add("Toolbar", xtpBarTop)
Set cdjCtrls = toolbar.Controls
Dim ctlEdit As CommandBarEdit
Set ctlEdit = cdjCtrls.Add(xtpControlEdit, ID_EDIT_LOCKED, "Locked value:")
With ctlEdit
    .Width = 250
    .ToolTipText = "Locked value"
    .BeginGroup = True
End With

cdjBars.AddImageList frmMain.imlToolbarIcons

cdjBars.Options.UseDisabledIcons = True

cdjBars.EnableCustomization (True)

To be more explicit, it should behave exactly like a TextBox control with the Locked property set, since the item value only holds information of current parameter.



Posted By: Oleg
Date Posted: 25 March 2005 at 2:02am
As I wrote we added ReadOnly property in 9.60. Yopu need to update your version.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: atr3ides
Date Posted: 26 March 2005 at 3:12am
Thank you very much!



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