Page 1 of 3

DCGET COMBO on Win 7

Posted: Thu Mar 24, 2011 8:01 am
by BruceN
the drop down combo box works great on XP, but on win 7 it always covers up part of the vertical scroll bar (see attached sample). Making the box wider doesn't seem to help, it just adds more blank space at the end of the line. Is there a setting to adjust that somwhere to allow the whole scroll bar to display?

Re: DCGET COMBO on Win 7

Posted: Thu Mar 24, 2011 9:29 am
by Cliff Wiernik
Roger, I see this behavior on all my windows 7 dialogs. Everything appears to be shifted a few pixels to the right and cut off. I will get you a few sample of the WinXP vs Win7 look.

Cliff.

Re: DCGET COMBO on Win 7

Posted: Thu Mar 24, 2011 9:52 am
by rdonnay
I don't see that problem under Win 7. It looks normal to me.

It must have something to do with your Windows settings.

Re: DCGET COMBO on Win 7

Posted: Thu Mar 24, 2011 9:59 am
by BruceN
any idea what setting(s) that would be?

Re: DCGET COMBO on Win 7

Posted: Thu Mar 24, 2011 10:37 am
by Cliff Wiernik
I am using whatever the default settings are. I will get some samples to show you.

Re: DCGET COMBO on Win 7

Posted: Thu Mar 24, 2011 11:08 am
by RDalzell
Bruce,

Any possibility of changing to DCCOMBOBOX ?

Re: DCGET COMBO on Win 7

Posted: Thu Mar 24, 2011 5:23 pm
by Auge_Ohr
BruceN wrote:any idea what setting(s) that would be?
"Border Padding" ist the Name of the "filling" of a Border. default is 4 (Pixel) wide

Code: Select all

// Defines used with the GetSystemMetrics()-API, see
// xbpGetSystemMetrics()

#define SM_CXDLGFRAME            7
#define SM_CYDLGFRAME            8
#define SM_CXPADDEDBORDER       92

LOCAL nWidthBorder   := xbpGetSystemMetrics( SM_CXDLGFRAME )
LOCAL nHeightBorder  := xbpGetSystemMetrics( SM_CYDLGFRAME )
LOCAL nBorderPadding := 0

  IF OnOSVersion() > 5                          // Vista-Win7 DVW Aero
      nBorderPadding := xbpGetSystemMetrics(SM_CXPADDEDBORDER)
  ENDIF

Re: DCGET COMBO on Win 7

Posted: Thu Mar 24, 2011 7:25 pm
by rdonnay
There should be no border at all on a DCGET .. COMBO.

Do you get the same result when running the GET Combo sample in XDEMO.EXE - Sample Group 2 ?

Re: DCGET COMBO on Win 7

Posted: Fri Mar 25, 2011 12:00 am
by skiman
Cliff Wiernik wrote:Roger, I see this behavior on all my windows 7 dialogs. Everything appears to be shifted a few pixels to the right and cut off. I will get you a few sample of the WinXP vs Win7 look.

Cliff.
Hi Cliff,

I solved this problem with the following:

Code: Select all

DCGETOPTIONS ;
   FITPAD 25
DC_GetOptDefault(GetOptions)
I don't check on the Windows version. With the above value it is always correct.

Re: DCGET COMBO on Win 7

Posted: Fri Mar 25, 2011 2:53 am
by Koverhage
Hi Roger,

i have the same problem.

Sample Group 2 you use the POPUP clause an biuild your own screen.

See Array edit in Group 2 (Xsample_49) or group 6 Scoped Drop down.

Hi Chris,

this does not work here.