Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Droplistbox, not allowing select, only flashes list when clicked 1

Status
Not open for further replies.

metflunky

Programmer
Jun 9, 2005
6
US
I have a droplistbox with a number of entries in it. When I click on the arrow to bring up the list, the list flashes up for a moment and then disappears.

The only way I can get it to work is to not release the mouse button, that allows me to scroll through the list and then when I release the button it selects the item.

I am using attachmate v 7.0. with windows xp. The strange thing is I didn't have this problem on my previous computer which was same attachmate version but was windows xp. But then again, i can run the same macro on another xp machine without any problems.

It doesn't make any sense to me.
 
Code:
DropListBox  5, 5, 50, [b]50[/b], "", .DLB1
What heigh is your drop-list box? If it's a smaller number, try setting it larger and see if that makes a difference. It'd also help if you posted the code that isn't working right.
 
Here is the code for the dialog:

Begin Dialog UserDialog 100, 75, 375, 65, "Pick your file"
ButtonGroup .ButtonGroup1
Text 9, 3, 100, 13, "Filename/Copyib/Member:", .Text1
DropListBox 5, 15, 350, 500, filenames(), .DropListBox1
OkButton 10, 45, 42, 13
CancelButton 60, 45, 42, 13
CheckBox 20, 30, 75, 13, "Use Select Criteria", .CheckBox1
CheckBox 135, 30, 160, 13, "Exit Insync Session If Already Open", .CheckBox2
PushButton 185, 45, 38, 15, "&Add Entry"
PushButton 225, 45, 43, 15, "&Delete Entry"
PushButton 275, 45, 50, 15, "&Change Date"
PushButton 325, 45, 40, 15, "&Test/Oper"
PushButton 135, 45, 49, 15, "&Change Entry"
End Dialog

The droplist box had a height of 500, after your post, I experimented with the height eventually adjusting it down to 425 and now it seems to be working properly.

Thank you very much for pointing me in the right direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top