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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combobox Dropdown List displayed position

Status
Not open for further replies.

vaxman9

Programmer
Feb 26, 2002
79
US
Greetings all

I have a combobox in a grid, with 2 columns, RowSourceType = value.
The values= "M,Material,L,Labor,F,Freight,C,Comment,A,CAD Fee,E,Engineering,P,Project Mgr,S,Service,V, VA Comment Codes,X,Permit Comment"
Boundcolumn = 1
ColumnWidths = "0,150"

In the grid, I only show the boundcolumn value and the columnwith is 50

This is the left most column and when the user drops the list, the right side of the displayed list aligned is with the right of the combo , which has it showing the values off the form. I am thinking I can't do anything about this, but I wanted to see if I am missing something.

Is there a way to have the drop down aligned with the left side of the combo?

The attached shows the behavior and what how I would like to see the drop down displayed

Thanks much!
 
 https://files.engineering.com/getfile.aspx?folder=05f83441-f2bc-474d-affb-59d49a37e3af&file=combobox1.png
In a short test creating such a combobox in a grid it shows with left aligned items, as you want it.

comboingrid_bpiihp.jpg


The only combobox properties set are:
BoundColumn: 1
ColumnCount: 2
ColumnWidths: 0,150
RowSource: M,Material,L,Labor,F,Freight,C,Comment,A,CAD Fee,E,Engineering,P,Project Mgr,S,Service,V, VA Comment Codes,X,Permit Comment
RowSourceType: 1 - Value
Style: 2 - Dropdown List

Sorry, no idea what you have to change to make it work that way.

Chriss
 
Chris -

Obvious I have something amiss. I will review

Thanks!
 
Following up

This seems to be something in my V9 SP2 environment.
I created a form, put the combo on it and ran in my V8 and V9
VFP8 SP1:
combo-vfp8_sp1_roy0ot.png

VFP9 SP2:
combo-vfp9_sp2_icvgj9.png

Same form.

I have an old Win7 machine and tried the same test. On that machine, the combo works as expected. I also tested on a Win2019 Terminal server and it also works as expected. My applications run on the terminal server and I do not see the behavior when running the executable.

I would appear I have a gummed up my Win10 development machine with something 😀.

msc
 
Strange. And I thought it would have to do with the grid, somehow. But I also don't see a way to specify how you want the dropdown list to align. What about the hotfixes? What's the Version(4), is it 09.00.0000.7423? That's SP3 with hotfix 3, you find at
If that's a difference in the EXE it still could depend on that, as you would need to switch both the IDE vfp9.exe and, of course, the runtime vfp9r.dll to the hotfix 3 version.

If it's not that, I don't know a Windows setting, and can't imagine it is part of the accessibility features to decide alignment. So then it must be about whether your power adapter provides lefthanded or righthanded AC current.

Chriss
 
Chris,

When I install, I have only applied the SP2 that was released back in the day (2008). All my various installs have only had that service pack applied. It appears to only affect my development environment - as I say the applications look fine on the user's machines as well as the 2019 terminal server - weird.

However, I grabbed the Hotfix and I have applied it, but the behavior remains.

I tried flipping my Thunderbolt connector 180 degrees - no change. Unfortunately, the power adapter can only fit the plug one way - I will check with Dell and see if the sent a left-handed one originally. 🙃

Mike - all the machines are north of the equator 😀

Thanks!
msc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top