Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Bar Height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bar Height

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


Joined: 23 June 2008
Location: Spain
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote luisinho Quote  Post ReplyReply Direct Link To This Post Topic: Bar Height
    Posted: 30 June 2008 at 6:25am
Hi,

i need to change the height of a TabToolBar, i did not a property to set the height, it change the height automatically when i put an object in the container.

Sample


Private Sub Form_Load()
Dim TabTool As TabToolBar
Dim Tab1 As TabControlItem
Dim Tab2 As TabControlItem
Dim CtrlCustom As CommandBarControlCustom

CB.DeleteAll 'its the commandbars control

Set TabTool = CB.AddTabToolBar("TABTOOL") 'i need a tab control

Set Tab1 = TabTool.InsertCategory(0, "tab 0") 'with some tabs
Set Tab2 = TabTool.InsertCategory(1, "tab 1")

Set CtrlCustom = TabTool.Controls.Add(xtpControlCustom, 0, "") 'i need to put an object inside each tab
CtrlCustom.Category = "tab 0"
CtrlCustom.Handle = Text1.hWnd

Set CtrlCustom = TabTool.Controls.Add(xtpControlCustom, 1, "") 'another time
CtrlCustom.Category = "tab 1"
CtrlCustom.Handle = Text2.hWnd

'height is automatically sets to the maximun height of the controls inside (text1.height)

TabTool.MinimumWidth = Form1.Width 'no more controls over the command bar, only a tab control
'i can not define the height of the command bar
TabTool.UpdateTabs

'after load the form, the user can resize the form and i need to resize the command bar as a percent of the form
'changing then height of the tab i can set the height of the objects inside (textboxes or something else)
End Sub

'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.188 seconds.