Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Trying to set the width of a floating toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trying to set the width of a floating toolbar

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


Joined: 16 April 2008
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote strider Quote  Post ReplyReply Direct Link To This Post Topic: Trying to set the width of a floating toolbar
    Posted: 27 June 2008 at 3:11pm

I have a standard toolbar with 4 custom controls on it.  I would like to have the toolbar default to floating in a vertical pattern.  I can get the toolbar to default to floating by using the DockToolBar command.  Then I can manually resize the floating toll bar to a vertical position where the 4 controls are stacked on top of each other.  However, I can't seem to progromatically do the toolbar resize.  Setting the width does not. 

Any ideas?
ActiveX 13.2.1

Strider
Back to Top
strider View Drop Down
Groupie
Groupie


Joined: 16 April 2008
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote strider Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2008 at 3:23pm

I think I figured it out.  I was using the width value calculated from the GetWindowRect units.  The width units are much smaller.  I simply needed to use the proper value to get the width to take effect.

.width works like a charm!
ActiveX 13.2.1

Strider
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.172 seconds.