Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ShortcutCaption at runtime
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ShortcutCaption at runtime

 Post Reply Post Reply
Author
Message
Newm View Drop Down
Newbie
Newbie


Joined: 13 March 2006
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Newm Quote  Post ReplyReply Direct Link To This Post Topic: ShortcutCaption at runtime
    Posted: 13 March 2006 at 6:33am

Hi,

I am trying to create a ShortcutCaption at runtime in VB .NET 2005 and no matter what I try I cannot adjust the height or width of the control.

I have this on Load of my form and no matter what values I use for Height and Width the control appears the same size,

Dim scc As AxXtremeShortcutBar.AxShortcutCaption

scc = New AxXtremeShortcutBar.AxShortcutCaption

With scc

     .Top = 10

     .Left = 10

     .Height = 20

     .Width = 100

End With

Me.Controls.Add(scc)

Thanks

Back to Top
Newm View Drop Down
Newbie
Newbie


Joined: 13 March 2006
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Newm Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2006 at 6:53am

not wanting to answer my own question  but...

it seems to work if you change the Height/Width after the control has been added into the container.  For example if I do the Me.Controls.Add(scc) before scc.Height = xxx then it works.

Is there any way around this?

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.219 seconds.