×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Combobox Dropdown List displayed position

Combobox Dropdown List displayed position

Combobox Dropdown List displayed position

(OP)
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!

RE: Combobox Dropdown List displayed position

In a short test creating such a combobox in a grid it shows with left aligned items, as you want it.



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

RE: Combobox Dropdown List displayed position

(OP)
Chris -

Obvious I have something amiss. I will review

Thanks!

RE: Combobox Dropdown List displayed position

(OP)
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:

VFP9 SP2:

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

RE: Combobox Dropdown List displayed position

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 https://github.com/VFPX/VFP9SP2Hotfix3.

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

RE: Combobox Dropdown List displayed position

Quote:

So then it must be about whether your power adapter provides lefthanded or righthanded AC current.

Or whether they are north or south of the equator?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Combobox Dropdown List displayed position

(OP)
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

RE: Combobox Dropdown List displayed position

Quote:

...all the machines are north of the equator

Mine too. To be more precise, my machines are ALL south of the North Pole.

HTH (not)

Steve

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close