Mirage Source http://miragesource.net/forums/ |
|
Remove arrow from combo box unless mouseover-ed http://miragesource.net/forums/viewtopic.php?f=210&t=348 |
Page 1 of 1 |
Author: | Lea [ Fri Aug 04, 2006 3:34 pm ] |
Post subject: | Remove arrow from combo box unless mouseover-ed |
I want to remove the down arrow from a combo box unless the mouse is over it... how? ![]() ~Dave |
Author: | Dragoons Master [ Fri Aug 04, 2006 6:09 pm ] |
Post subject: | |
Since ComboBoxes does not have MouseMove property, use a TextBox Over the ComboBox. Name the ComboBox as "cmbCombo" and the TextBox as "txtBox" and w/ this code it should work: Code: Private Sub cmbCombo_Click()
txtBox.Text = cmbCombo.List(cmbCombo.ListIndex) End Sub Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) txtBox.Visible = True End Sub Private Sub txtBox_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) txtBox.Visible = False End Sub When the mouse is over the TextBox, this will get invisible and you will see the ComboBox, and when the mouse is over the form or any other object(easy to implement) it will become visible again but the text will change with the combo box. |
Author: | Robin [ Fri Aug 04, 2006 7:02 pm ] |
Post subject: | |
lol. would never have thought of that Dragoons Master. But don't the textbox and combobox have different border styles? (Depending on which style you use on the combobox) If so, i would take a screenshot of the combobox, add the picture into a picture box then add a label inside the picturebox and change the caption of the label, and make the picbox visible or not visible. Long way around it, but it it's going to be users looking at it, visual perfection is the key ![]() |
Author: | Lea [ Fri Aug 04, 2006 9:01 pm ] |
Post subject: | |
I found a way around it, this was for a quote form made in Word. I found the form combo box fields, and then I downloaded paperless printer so he can print them as PDF files so people cant see in the combo boxes. I'm smert. |
Author: | Dragoons Master [ Sun Aug 06, 2006 12:43 am ] |
Post subject: | |
Well, it works but its visual efects bcouse you didnt realy edit the object, but it does look perfect ^^ |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |