Problem with DialogBar on vb6 MDI |
Post Reply |
Author | |
papuan
Newbie Joined: 02 February 2009 Status: Offline Points: 1 |
Post Options
Thanks(0)
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 |
|
stefanadelbert
Groupie Joined: 29 October 2008 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
|
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? |
|
stefanadelbert
Groupie Joined: 29 October 2008 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |