Print Page | Close Window

Control Edit

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=470
Printed Date: 23 November 2024 at 10:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Control Edit
Posted By: amstel
Subject: Control Edit
Date Posted: 24 February 2004 at 6:17am

I want to use a Control Edit, but how to obtain the content ??

I fix to 200 the width in Command Bars Designer, but at runtime the width stays in 100. Is it a bug?

Thanks for help

J-Marc from Paris




Replies:
Posted By: SuperMario
Date Posted: 24 February 2004 at 8:26am
Add this to your code after you load your designer command bar, assume that the ID of the edit control is called ID_FORMATTEXT_SAMPLE (the name given in the designer) and you named your Command Bars control on the form CommandBars.

    Dim ControlEdit As ICommandBarEdit
    Set ControlEdit = CommandBars.FindControl(, ID_FORMATTEXT_SAMPLE)
    If Not ControlEdit Is Nothing Then
         ControlEdit.Width = 200
    End If

Hope this helps


Posted By: amstel
Date Posted: 24 February 2004 at 8:41am
Thanks for your help !!!  


Posted By: Oleg
Date Posted: 24 February 2004 at 2:34pm

Width is restored from registry, so Don't use LoadCommandBars call while your program in developping phase.



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



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