Print Page | Close Window

Status Bar Add control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11259
Printed Date: 07 October 2024 at 6:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Status Bar Add control
Posted By: rplp4
Subject: Status Bar Add control
Date Posted: 30 June 2008 at 12:15pm

I am tring to add a combo box to the status bar.   I can do so using the combo box provided with vb6.   When I try it with CodeJock's combo box it is displayed correctly until I click the on it.   It will disappear.

 
Example:
    Set Pane = StatusBar.AddPane(ST_Layer_Combo)
    Pane.Handle = cmbLayers.hWnd
    Pane.Width = 200
    Pane.Visible = True
 



Replies:
Posted By: Bernie
Date Posted: 30 June 2008 at 9:34pm
Place your combobox on a PictureBox then set Pane.Handle = Picture1.hwnd
Meanwhile, In the PictureBOx Resize Event set the size of the combobox


-------------
Bernie Ho, Planning Manager + IELTS specialist + part-time programmer
Taiwan, R.O.C


Posted By: ijwelch
Date Posted: 30 June 2008 at 9:37pm
Normal fix is to put combobox in picturebox controland add that to status bar.


Posted By: rplp4
Date Posted: 01 July 2008 at 8:43am
Thank you. 
 
I now have a problem with the height of the status bar.   It does not fit the height of the combo box.  The height of the combo box is 315.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net