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

Drop down list alignment. 1

Status
Not open for further replies.

mjprust

Programmer
May 10, 2007
9
GB
I have just upgraded a system from VFP6 to VFP8 and am having a problem with the alignment of some drop down lists.

Whereas before they would centralise on the screen they now seem to be aligned to the edge of the edit box which in some cases means the left side of the drop down list is off the screen all together.

Any help would be greatly appreciated.

Thanks

MJP
 
Hi MJP,

Could you clarify a few points:

- What do you mean by "drop down list"? Are you referring to the combo box control?

- You say they used to be "centralised on the screen". Assuming you are talking about combo boxes, are you referring to the control itself being centralised on the screen? Or the text within the control? Or the drop-down portion of the control? Or what?

- Again, assuming you are referring to combo boxes, have you checked the Alignment property?

If you could clarify your question, no doubt you will get some useful answers.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
BY any chance, does your system have the VFP 6 ".VCX"'s in a directory where the application can find them.

Some people copy the VFP classes to the application root directory. When they upgrade, all kinds of funny things happen because VFP 8 would expect to use it's version of the classes but is finding the VFP6 instead.

Just a Wild A** Guess

David W. Grewe Dave
 
Hi

Thank you everyone for your replies.

To clarify, I am talking about a combobox and it is the drop down portion of the control where the alignment has changed.

It is as if the edge of the drop down always has to be aligned with the left or right edge of the control.

My understanding is that the alignment property only effects the position of the text in the control.

An example of the problem is a combobox with 2 columns, columnwidths set to 600,0.

The control is centralised and under VFP6 so was the dropdown however now the right hand edge of the dropdown is aligned with the right hand edge of the control and the left edge of the dropdown is off the screen.

Again if anyone has any suggestions I would really appreciate them.

MJP
 
VFP6:
Code:
                    _______
             ______|______V|______
            | item 1              |
            | item 2              |
            .                     .
            .                     .
            .                     .
VFP8:
Code:
             _______
            |______V|_____________
            | item 1              |
            | item 2              |
            .                     .
            .                     .
            .                     .

or
                           _______
             _____________|______V|
            | item 1              |
            | item 2              |
            .                     .
            .                     .
            .                     .

I remotly remember I had a problem with a combobx in the lower right corner of a from suddenly dropping up (it's against gravity laws!), which in one way was nice, as you could even use the combo, if the form itself was on the right bottom of the screen. But on the other side after choosing an item sometimes users also clicked on a button behind it, that would save something too early.

I think there is no workaround to get that behaviour back. They changed it the way you described, you need to modify the form and move the combobox to the left or right margin.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top