Hi
I have an application who was running well under W98.
Now i have XP pro and my combobox doesn't open.
I use Clipper 5.3, MS link 5.60 and Five Win 2.1
Any idea?
hanks
COMBOBOX AND XP PRO
Oupss!
in fact it is only when i use a function that automatically sesize the dialog according to the screen resolution
PROCEDURE ResizeDlg(oDlg,x,y,h,la,n)
LOCAL HAUTEURDIALOG := 0, ;
LARGEURDIALOG := 0, ;
I := 0
local ox,oy
if h#1
HAUTEURFENETRE := (WNDMAIN():nVertRes()-24)/h
LARGEURFENETRE := WNDMAIN():nHorzRes()/la
elseif h=1
if n#1
HAUTEURFENETRE := WNDMAIN():nVertRes()
LARGEURFENETRE := WNDMAIN():nHorzRes()/la
elseif n=1
HAUTEURFENETRE := WNDMAIN():nVertRes()/h
LARGEURFENETRE := WNDMAIN():nHorzRes()/la
endif[/size]
endif
HAUTEURDIALOG := Odlg:nHeight
LARGEURDIALOG := Odlg:nWidth
oDlg:SetSize(LARGEURDIALOG*LARGEURFENETRE/LARGEURDIALOG,HAUTEURDIALOG*HAUTEURFENETRE/HAUTEURDIALOG)
aEval(oDlg:aControls,{|u| u:SetSize(u:nWidth*LARGEURFENETRE/LARGEURDIALOG,u:nHeight*HAUTEURFENETRE/HAUTEURDIALOG),;
u:Move(u:nTop*HAUTEURFENETRE/HAUTEURDIALOG,u:nLeft*LARGEURFENETRE/LARGEURDIALOG)})
ox:=WNDMAIN():nVertRes()- WNDMAIN():nVertRes()/x +iif(x=1,0,-20)
oy:=WNDMAIN():nHorzRes()- WNDMAIN():nHorzRes()/y
ODLG:MOVE(ox,oy)
return NIL[
I don't have an idea and you?
in fact it is only when i use a function that automatically sesize the dialog according to the screen resolution
PROCEDURE ResizeDlg(oDlg,x,y,h,la,n)
LOCAL HAUTEURDIALOG := 0, ;
LARGEURDIALOG := 0, ;
I := 0
local ox,oy
if h#1
HAUTEURFENETRE := (WNDMAIN():nVertRes()-24)/h
LARGEURFENETRE := WNDMAIN():nHorzRes()/la
elseif h=1
if n#1
HAUTEURFENETRE := WNDMAIN():nVertRes()
LARGEURFENETRE := WNDMAIN():nHorzRes()/la
elseif n=1
HAUTEURFENETRE := WNDMAIN():nVertRes()/h
LARGEURFENETRE := WNDMAIN():nHorzRes()/la
endif[/size]
endif
HAUTEURDIALOG := Odlg:nHeight
LARGEURDIALOG := Odlg:nWidth
oDlg:SetSize(LARGEURDIALOG*LARGEURFENETRE/LARGEURDIALOG,HAUTEURDIALOG*HAUTEURFENETRE/HAUTEURDIALOG)
aEval(oDlg:aControls,{|u| u:SetSize(u:nWidth*LARGEURFENETRE/LARGEURDIALOG,u:nHeight*HAUTEURFENETRE/HAUTEURDIALOG),;
u:Move(u:nTop*HAUTEURFENETRE/HAUTEURDIALOG,u:nLeft*LARGEURFENETRE/LARGEURDIALOG)})
ox:=WNDMAIN():nVertRes()- WNDMAIN():nVertRes()/x +iif(x=1,0,-20)
oy:=WNDMAIN():nHorzRes()- WNDMAIN():nHorzRes()/y
ODLG:MOVE(ox,oy)
return NIL[
I don't have an idea and you?
- Antonio Linares
- Site Admin
- Posts: 42414
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
When i activate a dialog i resize it
activate dialog dliste on init (function1,resizedlg(dliste,1,1,1,1,1))
Now the combobox don't open.
If i don't resize it
activate dialog dliste on init function1
Now the combobox work fine
It is the same for all my dialogs and all my combobox ( dropdown list)
In my dialog i have the classic
redefine combobox id.....
activate dialog dliste on init (function1,resizedlg(dliste,1,1,1,1,1))
Now the combobox don't open.
If i don't resize it
activate dialog dliste on init function1
Now the combobox work fine
It is the same for all my dialogs and all my combobox ( dropdown list)
In my dialog i have the classic
redefine combobox id.....
- Antonio Linares
- Site Admin
- Posts: 42414
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42414
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42414
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact: