Print Page | Close Window

Problem with DialogBar on vb6 MDI

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=13305
Printed Date: 07 October 2024 at 4:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with DialogBar on vb6 MDI
Posted By: papuan
Subject: Problem with DialogBar on vb6 MDI
Date Posted: 02 February 2009 at 6:55am
Hi,

I just try the commandbar/dialogbar features, but I cannot set the width of the DialogBar. I use the next code:

Set BarraDialogo = CommandBars.AddDialogBar("Hello", xtpBarLeft)
  With BarraDialogo
    .Closeable = False
    .Resizable = True
    .ShowGripper = False
    .EnableAnimation = True
    .ShowCaption = False
    .ChildHandle = Spazio.hWnd
    .Width = 15000
End With

How I Can set the BarraDialogo.width ?

I must refresh the CommandBars ? How ?

Francesco



Replies:
Posted By: stefanadelbert
Date Posted: 17 March 2009 at 7:14pm
I would also like to set the width of the dialog bar at runtime, but am not sure how to do this. I've tried resizing the child before associating it with the dialog bar; I've tried resizing the child after associating it with the dialog bar; I've tried resizing the dialog bar, which seems to have no effect.

How should this be done?


Posted By: stefanadelbert
Date Posted: 19 March 2009 at 11:44pm
The trick with setting the DialogBar width is to use the SetSize method. Take a look in the documentation.

I have no clue why the DialogBar Width property is defined as read-write, as writing to it seems to have no effect. Also, why is the Width property defined and not Height? Some inconsistencies there.



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