Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Set  DialogBar Width in code at runtime
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Set DialogBar Width in code at runtime

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


Joined: 29 October 2008
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote stefanadelbert Quote  Post ReplyReply Direct Link To This Post Topic: Set DialogBar Width in code at runtime
    Posted: 18 March 2009 at 9:46pm
Hi

I would like to set the width of a DialogBar 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?

Stefan
Back to Top
stefanadelbert View Drop Down
Groupie
Groupie


Joined: 29 October 2008
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote stefanadelbert Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2009 at 11:45pm
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.
Back to Top
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2009 at 9:11am
how about setting the max width the dialogbar can be resized?
how do u do it?

thanks
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.125 seconds.