![]() |
Status Bar Add control |
Post Reply
|
| Author | |
rplp4
Groupie
Joined: 18 May 2008 Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Topic: Status Bar Add controlPosted: 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 |
|
![]() |
|
Bernie
Senior Member
Joined: 05 July 2007 Location: Taiwan Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
ijwelch
Senior Member
Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2008 at 9:37pm |
|
Normal fix is to put combobox in picturebox controland add that to status bar.
|
|
![]() |
|
rplp4
Groupie
Joined: 18 May 2008 Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |