FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Problemas con una ComboBox
Posts: 505
Joined: Sat Apr 22, 2006 09:09 AM
Problemas con una ComboBox
Posted: Sat Aug 01, 2015 08:45 AM
Hola a todos:

Tengo un problema con una serie de ComboBox que no se porque sale ni como solucionarlo.

Yo tengo definida una ComboBox de la siguiente manera:

Code (fw): Select all Collapse
@ 10*ProporV,620*ProporH combobox dDlg003 VAR va100 ITEMS { " " + LocaText( 1, 1,711), " " + LocaText( 1, 1,404), " " + LocaText( 1, 1,581), " " + LocaText( 1, 1,582), " " + LocaText( 1, 1,583), " " + LocaText( 1, 1,584),;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 " " + LocaText( 1, 1,138), " " + LocaText( 1, 2, 88), " " + LocaText( 1, 1,109), " " + LocaText( 1, 2,200), " " + LocaText( 1, 1,442), " " + LocaText( 1, 1,204) };
OF wGestAnti PIXEL COLOR escri30, fondo30 SIZE 聽235*ProporH,20*yProPorV*ProPorV ON CHANGE CambAnti() STYLE CBS_DROPDOWNLIST


Esta la uso para ir de una otra opci贸n del programa sin necesidad de salir, entrar en otra opci贸n y buscar el mes activo y trabajador. Esto lo hace de la siguiente forma:

Code (fw): Select all Collapse
FUNCTION Cambanti()
if va100 = 1 .OR. va100 = 9
聽 va100 = 1
聽 dDlg003:Refresh()
聽 dDlg003:SetFocus()
聽 dDlg001:SetFocus()
else
聽 va101 = va100
聽 yTrab 聽= nombre
聽 wGestAnti:End()
聽 oDlgwDat:End()
聽 oRBar:nHeight(0)
聽 oGrupos:End()
聽 oRBar:End()
聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 RELEASE wGestAnti,wGestAnti1,wGestAnti2,oRBar,oGrupos
聽 CompTC12(ynumcoti)
聽 clos data
聽 SySRefresh()
聽 yOpc = 70
聽 SelOpCom()
endif
RETURN( .T. )

FUNCTION SelOpCom()
do case
聽 case va101 = 1
聽 聽 bDrw:SetFocus()
聽 case va101 = 2
聽 聽 Menu 聽 = 3
聽 聽 SubMenu= 7
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 GestTrab(yMesTr,yTrab,3)
聽 case va101 = 3
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 8
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestnomi(yMesTr,yTrab)
聽 case va101 = 4
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 9
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestitc1(yMesTr,yTrab)
聽 case va101 = 5
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 10
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestitc2(yMesTr,yTrab)
聽 case va101 = 6
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 11
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestitra(yMesTr,yTrab)
聽 case va101 = 7
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 1
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 gestinci(yMesTr,yTrab)
聽 case va101 = 8
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 2
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestindi(yMesTr,yTrab)
聽 case va101 = 9
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 3
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestanti(yMesTr,yTrab)
聽 case va101 = 10
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 4
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestvaca(yMesTr,yTrab)
聽 case va101 = 11
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 5
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestdesp(yMesTr,yTrab)
聽 case va101 = 12
聽 聽 Menu 聽 = 4
聽 聽 SubMenu= 6
聽 聽 DatoSele()
聽 聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 聽 oVentPrinc:SetFocus()
聽 聽 oVentPrinc:Refresh()
聽 聽 gestbore(yMesTr,yTrab)
endcase
RETURN (.T.)


La primera quita lo que hay en pantalla y la segunda pone lo de la nueva opci贸n. El problema es que a veces lo hace bien y otras no y solo pone el siguiente error sin dar mas explicaciones:



Alguien me puede ayudar u orientar para poder solucionarlo.

Un saludo y grcias

Carlos
Colt Hop ED, S.L.
Carlos Blas Fern谩ndez Dom铆nguez
Tlfo: 645847093
E-Mail: carlos@colthop.es

Nunca se termina de aprender, por eso necesito siempre ayuda.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 08:55 AM

Carlos,

Prueba a comentar esta l铆nea:

// RELEASE wGestAnti,wGestAnti1,wGestAnti2,oRBar,oGrupos

Y a ver si asi funciona bien

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 505
Joined: Sat Apr 22, 2006 09:09 AM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 09:51 AM

Hola Antonio:

He hecho lo que me has dicho y pasa lo mismo.,

Antes no he comentado que si en vez de ComboBox llamo a las funciones con botones funciona pero lo que pasa es que no puedo poner 11 botones.

Si salgo y entro por el men煤 funciona perfectamente. Salir es la primera funci贸n y entrar es la segunda, pero no pasa por el men煤 principal. Lo he modificado para que presente el men煤 principal y llamar a la otra opci贸n y as铆 si sale el error.

No se puede saber porque da ese error de alguna forma.

Un saludo y gracias

Carlos

Colt Hop ED, S.L.
Carlos Blas Fern谩ndez Dom铆nguez
Tlfo: 645847093
E-Mail: carlos@colthop.es

Nunca se termina de aprender, por eso necesito siempre ayuda.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 10:02 AM

No te genera el hb_out.log ?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 505
Joined: Sat Apr 22, 2006 09:09 AM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 10:13 AM
Hola Crist贸bal:

Si lo genera y pone esto:

Code (fw): Select all Collapse
Application Internal Error - C:\ColtHop\NySWin\NySWin.exe
Terminated at: 2015-08-01 12:05:53
Error irrecuperable 6005: Exception error:

聽 聽 Exception Code:C0000005
聽 聽 Exception Address:6A6A8384
聽 聽 EAX:00000000 聽EBX:00BBA138 聽ECX:00BBA138 聽EDX:00000000
聽 聽 ESI:00000000 聽EDI:00000000 聽EBP:0018F6D0
聽 聽 CS:EIP:0023:6A6A8384 聽SS:ESP:0018F608
聽 聽 DS:002B 聽ES:002B 聽FS:0053 聽GS:002B
聽 聽 Flags:00010246
聽 聽 CS:EIP: 8B 40 0C 25 00 00 00 08 F7 D8 1B C0 83 E0 03 40
聽 聽 SS:ESP: 05154498 000103E8 00BBA138 00004000 00000000 00000111 00000000 00020A28 00000000 00000000 00FDF8D0 003A09C6 76A179CB 40000000 0001010C 00000000

聽 聽 C stack:
聽 聽 EIP: 聽 聽 EBP: 聽 聽 聽 Frame: OldEBP, RetAddr, Params...
聽 聽 6A6A8384 0018F6D0 聽 0018F6E4 6A70B81C 000409E4 00000111 00BBA138
聽 聽 6A70B81C 0018F6E4 聽 0018F760 6A6A7914 000409E4 6A6A7210 00000111 000409E4 000409E4 000103E8 00000001 00020A28
聽 聽 6A6A7914 0018F760 聽 0018F78C 769E8E71 00020A28 00000111 000103E8 000409E4 00000111 DCBAABCD 000409E4 6A6A7210
聽 聽 769E8E71 0018F78C 聽 0018F820 769E90D1 6A6A7210 00020A28 00000111 000103E8 000409E4 19CC67C6 6A6A7210 00020A28
聽 聽 769E90D1 0018F820 聽 0018F85C 76A15429 6A6A7210 00000000 00000111 000103E8 000409E4 00000000 00000000 000409E4
聽 聽 76A15429 0018F85C 聽 0018F884 00419512 FFFF0A79 00020A28 00000111 000103E8 000409E4 0041A4E0 00000111 00020A28
聽 聽 00419512 0018F884 聽 0018F8A4 0041A4FF 00020A28 00000111 000103E8 000409E4 0000002F 000409E4
聽 聽 0041A4FF 0018F8A4 聽 0018F8D0 769E8E71 00020A28 00000111 000103E8 000409E4 00000111 DCBAABCD 000409E4 0041A4E0
聽 聽 769E8E71 0018F8D0 聽 0018F964 769E90D1 0041A4E0 00020A28 00000111 000103E8 000409E4 19CC6682 00000000 0107BB50
聽 聽 769E90D1 0018F964 聽 0018F9D0 76A17924 0041A4E0 00000000 00000111 000103E8 000409E4 7FFDB000 00000001 0107BB50
聽 聽 76A17924 0018F9D0 聽 0018FA0C 769EE4A9 0107BB50 00000000 000409E4 00000000 00000001 00020A28 0000000D 7FFDB800
聽 聽 769EE4A9 0018FA0C 聽 0018FA88 6A6A07E0 00020A28 00000111 000103E8 000409E4 00000000 00BBA1E8 6A69F786 000409E4
聽 聽 6A6A07E0 0018FA88 聽 0018FB28 6A6A0EA6 0000007D 00000043 6A6A6D80 00000202 0043007D 00000000 00000000 0043007D
聽 聽 6A6A0EA6 0018FB28 聽 0018FB54 769E8E71 000409E4 00000202 00000000 0043007D 00000202 DCBAABCD 0043007D 6A6A6D80
聽 聽 769E8E71 0018FB54 聽 0018FBE8 769E90D1 6A6A6D80 000409E4 00000202 00000000 0043007D 19CC640E 0018FC70 0100D890
聽 聽 769E90D1 0018FBE8 聽 0018FC54 769EA66F 6A6A6D80 00000000 00000202 00000000 0043007D FFFFFF7C 00000001 19CC63B2
聽 聽 769EA66F 0018FC54 聽 0018FC5C 76A15D40
聽 聽 76A15D40 0018FC5C 聽 0018FC8C 004193E7 0018FC70 00000000 009FD8B8 000409E4 00000202 00000000 0043007D 2F30C87B
聽 聽 004193E7 0018FC8C 聽 0018FCA8 0048C614 00000004 0000000E 00000000 00000000 00000000
聽 聽 0048C614 0018FCA8 聽 0018FDBC 0048673F 00000001 0058C53E 00000000 0058A7E4 009FD8B8 009FD8B8 0058C46C 003CE4C4


Modules:
0x00400000 0x00646000 C:\ColtHop\NySWin\NySWin.exe
0x76EA0000 0x0016E000 C:\Windows\SYSTEM32\ntdll.dll
0x76660000 0x00140000 C:\Windows\SYSTEM32\KERNEL32.DLL
0x763D0000 0x000D7000 C:\Windows\SYSTEM32\KERNELBASE.dll
0x764B0000 0x0007C000 C:\Windows\SYSTEM32\ADVAPI32.DLL
0x74250000 0x00016000 C:\Windows\SYSTEM32\MPR.DLL
0x741B0000 0x00008000 C:\Windows\SYSTEM32\VERSION.DLL
0x72FF0000 0x00065000 C:\Windows\SYSTEM32\WINSPOOL.DRV
0x6A650000 0x00206000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17810_none_a9edf09f013934e0\COMCTL32.DLL
0x76140000 0x0009B000 C:\Windows\SYSTEM32\COMDLG32.DLL
0x74D50000 0x0010F000 C:\Windows\SYSTEM32\GDI32.DLL
0x72C10000 0x00006000 C:\Windows\SYSTEM32\MSIMG32.DLL
0x74E90000 0x012AD000 C:\Windows\SYSTEM32\SHELL32.DLL
0x769E0000 0x00153000 C:\Windows\SYSTEM32\USER32.DLL
0x74B10000 0x00129000 C:\Windows\SYSTEM32\OLE32.DLL
0x748C0000 0x00095000 C:\Windows\SYSTEM32\OLEAUT32.DLL
0x735C0000 0x0001E000 C:\Windows\SYSTEM32\OLEDLG.DLL
0x76910000 0x000C3000 C:\Windows\SYSTEM32\msvcrt.dll
0x749F0000 0x00041000 C:\Windows\SYSTEM32\sechost.dll
0x74C90000 0x000BA000 C:\Windows\SYSTEM32\RPCRT4.dll
0x74C40000 0x00045000 C:\Windows\SYSTEM32\SHLWAPI.dll
0x761F0000 0x0017D000 C:\Windows\SYSTEM32\combase.dll
0x746A0000 0x0001E000 C:\Windows\SYSTEM32\SspiCli.dll
0x74690000 0x0000A000 C:\Windows\SYSTEM32\CRYPTBASE.dll
0x73D70000 0x0008B000 C:\Windows\SYSTEM32\SHCORE.DLL
0x74630000 0x00054000 C:\Windows\SYSTEM32\bcryptPrimitives.dll
0x74A80000 0x00027000 C:\Windows\system32\IMM32.DLL
0x76540000 0x00112000 C:\Windows\SYSTEM32\MSCTF.dll
0x70BB0000 0x000ED000 C:\Windows\system32\uxtheme.dll
0x66790000 0x0000E000 C:\Program Files\Acer\Acer Power Management\CBT_DLL.dll
0x71000000 0x0001A000 C:\Windows\system32\dwmapi.dll
0x742D0000 0x00009000 C:\Windows\SYSTEM32\kernel.appcore.dll
0x10000000 0x00200000 C:\ColtHop\NySWin\freeimage.dll

Called from WINRUN(0)
Called from TMDIFRAME:ACTIVATE(1003) in .\source\classes\WINDOW.PRG
Called from MAIN(241) in nyswin.prg
------------------------------------------------------------------------
Application Internal Error - C:\ColtHop\NySWin\NySWin.exe
Terminated at: 2015-08-01 12:05:57
Error irrecuperable 6005: Exception error:

聽 聽 Exception Code:C0000005
聽 聽 Exception Address:6A6A8384
聽 聽 EAX:00000000 聽EBX:00BBA138 聽ECX:00BBA138 聽EDX:00000000
聽 聽 ESI:00000000 聽EDI:00000000 聽EBP:0018F6D0
聽 聽 CS:EIP:0023:6A6A8384 聽SS:ESP:0018F608
聽 聽 DS:002B 聽ES:002B 聽FS:0053 聽GS:002B
聽 聽 Flags:00010246
聽 聽 CS:EIP: 8B 40 0C 25 00 00 00 08 F7 D8 1B C0 83 E0 03 40
聽 聽 SS:ESP: 05154498 000103E8 00BBA138 00004000 00000000 00000111 00000000 00020A28 00000000 00000000 00FDF8D0 003A09C6 76A179CB 40000000 0001010C 00000000

聽 聽 C stack:
聽 聽 EIP: 聽 聽 EBP: 聽 聽 聽 Frame: OldEBP, RetAddr, Params...
聽 聽 6A6A8384 0018F6D0 聽 0018F6E4 6A70B81C 000409E4 00000111 00BBA138
聽 聽 6A70B81C 0018F6E4 聽 0018F760 6A6A7914 000409E4 6A6A7210 00000111 000409E4 000409E4 000103E8 00000001 00020A28
聽 聽 6A6A7914 0018F760 聽 0018F78C 769E8E71 00020A28 00000111 000103E8 000409E4 00000111 DCBAABCD 000409E4 6A6A7210
聽 聽 769E8E71 0018F78C 聽 0018F820 769E90D1 6A6A7210 00020A28 00000111 000103E8 000409E4 19CC67C6 6A6A7210 00020A28
聽 聽 769E90D1 0018F820 聽 0018F85C 76A15429 6A6A7210 00000000 00000111 000103E8 000409E4 00000000 00000000 000409E4
聽 聽 76A15429 0018F85C 聽 0018F884 00419512 FFFF0A79 00020A28 00000111 000103E8 000409E4 0041A4E0 00000111 00020A28
聽 聽 00419512 0018F884 聽 0018F8A4 0041A4FF 00020A28 00000111 000103E8 000409E4 0000002F 000409E4
聽 聽 0041A4FF 0018F8A4 聽 0018F8D0 769E8E71 00020A28 00000111 000103E8 000409E4 00000111 DCBAABCD 000409E4 0041A4E0
聽 聽 769E8E71 0018F8D0 聽 0018F964 769E90D1 0041A4E0 00020A28 00000111 000103E8 000409E4 19CC6682 00000000 0107BB50
聽 聽 769E90D1 0018F964 聽 0018F9D0 76A17924 0041A4E0 00000000 00000111 000103E8 000409E4 7FFDB000 00000001 0107BB50
聽 聽 76A17924 0018F9D0 聽 0018FA0C 769EE4A9 0107BB50 00000000 000409E4 00000000 00000001 00020A28 0000000D 7FFDB800
聽 聽 769EE4A9 0018FA0C 聽 0018FA88 6A6A07E0 00020A28 00000111 000103E8 000409E4 00000000 00BBA1E8 6A69F786 000409E4
聽 聽 6A6A07E0 0018FA88 聽 0018FB28 6A6A0EA6 0000007D 00000043 6A6A6D80 00000202 0043007D 00000000 00000000 0043007D
聽 聽 6A6A0EA6 0018FB28 聽 0018FB54 769E8E71 000409E4 00000202 00000000 0043007D 00000202 DCBAABCD 0043007D 6A6A6D80
聽 聽 769E8E71 0018FB54 聽 0018FBE8 769E90D1 6A6A6D80 000409E4 00000202 00000000 0043007D 19CC640E 0018FC70 0100D890
聽 聽 769E90D1 0018FBE8 聽 0018FC54 769EA66F 6A6A6D80 00000000 00000202 00000000 0043007D FFFFFF7C 00000001 19CC63B2
聽 聽 769EA66F 0018FC54 聽 0018FC5C 76A15D40
聽 聽 76A15D40 0018FC5C 聽 0018FC8C 004193E7 0018FC70 00000000 009FD8B8 000409E4 00000202 00000000 0043007D 2F30C87B
聽 聽 004193E7 0018FC8C 聽 0018FCA8 0048C614 00000004 0000000E 00000000 00000000 00000000
聽 聽 0048C614 0018FCA8 聽 0018FDBC 0048673F 00000001 0058C53E 00000000 0058A7E4 009FD8B8 009FD8B8 0058C46C 003CE4C4


Modules:
0x00400000 0x00646000 C:\ColtHop\NySWin\NySWin.exe
0x76EA0000 0x0016E000 C:\Windows\SYSTEM32\ntdll.dll
0x76660000 0x00140000 C:\Windows\SYSTEM32\KERNEL32.DLL
0x763D0000 0x000D7000 C:\Windows\SYSTEM32\KERNELBASE.dll
0x764B0000 0x0007C000 C:\Windows\SYSTEM32\ADVAPI32.DLL
0x74250000 0x00016000 C:\Windows\SYSTEM32\MPR.DLL
0x741B0000 0x00008000 C:\Windows\SYSTEM32\VERSION.DLL
0x72FF0000 0x00065000 C:\Windows\SYSTEM32\WINSPOOL.DRV
0x6A650000 0x00206000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17810_none_a9edf09f013934e0\COMCTL32.DLL
0x76140000 0x0009B000 C:\Windows\SYSTEM32\COMDLG32.DLL
0x74D50000 0x0010F000 C:\Windows\SYSTEM32\GDI32.DLL
0x72C10000 0x00006000 C:\Windows\SYSTEM32\MSIMG32.DLL
0x74E90000 0x012AD000 C:\Windows\SYSTEM32\SHELL32.DLL
0x769E0000 0x00153000 C:\Windows\SYSTEM32\USER32.DLL
0x74B10000 0x00129000 C:\Windows\SYSTEM32\OLE32.DLL
0x748C0000 0x00095000 C:\Windows\SYSTEM32\OLEAUT32.DLL
0x735C0000 0x0001E000 C:\Windows\SYSTEM32\OLEDLG.DLL
0x76910000 0x000C3000 C:\Windows\SYSTEM32\msvcrt.dll
0x749F0000 0x00041000 C:\Windows\SYSTEM32\sechost.dll
0x74C90000 0x000BA000 C:\Windows\SYSTEM32\RPCRT4.dll
0x74C40000 0x00045000 C:\Windows\SYSTEM32\SHLWAPI.dll
0x761F0000 0x0017D000 C:\Windows\SYSTEM32\combase.dll
0x746A0000 0x0001E000 C:\Windows\SYSTEM32\SspiCli.dll
0x74690000 0x0000A000 C:\Windows\SYSTEM32\CRYPTBASE.dll
0x73D70000 0x0008B000 C:\Windows\SYSTEM32\SHCORE.DLL
0x74630000 0x00054000 C:\Windows\SYSTEM32\bcryptPrimitives.dll
0x74A80000 0x00027000 C:\Windows\system32\IMM32.DLL
0x76540000 0x00112000 C:\Windows\SYSTEM32\MSCTF.dll
0x70BB0000 0x000ED000 C:\Windows\system32\uxtheme.dll
0x66790000 0x0000E000 C:\Program Files\Acer\Acer Power Management\CBT_DLL.dll
0x71000000 0x0001A000 C:\Windows\system32\dwmapi.dll
0x742D0000 0x00009000 C:\Windows\SYSTEM32\kernel.appcore.dll
0x10000000 0x00200000 C:\ColtHop\NySWin\freeimage.dll

Called from WINRUN(0)
Called from TMDIFRAME:ACTIVATE(1003) in .\source\classes\WINDOW.PRG
Called from MAIN(241) in nyswin.prg
------------------------------------------------------------------------


Y la l铆nea 241 de nyswin.prg es

" ACTIVATE WINDOW oVentPrinc MAXIMIZED ON INIT gestusua() VALID ! GetKeyState (VK_ESCAPE)"

Pero esto no se interpretarlo.

Un saludo

Carlos
Colt Hop ED, S.L.
Carlos Blas Fern谩ndez Dom铆nguez
Tlfo: 645847093
E-Mail: carlos@colthop.es

Nunca se termina de aprender, por eso necesito siempre ayuda.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 10:23 AM
Que aparece en tu version de window.prg?

Code (fw): Select all Collapse
Called from TMDIFRAME:ACTIVATE(1003) in .\source\classes\WINDOW.PRG


La ventana principal es MDI, evidentemente, y sobre qu茅 ventana creas el COMBO, sobre una MDICHILD?
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 505
Joined: Sat Apr 22, 2006 09:09 AM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 10:33 AM
Hola Crist贸bal:

La l铆nea esta al final y es la que pone "esta es la 1003"

Code (fw): Select all Collapse
METHOD Activate( cShow, bLClicked, bRClicked, bMoved, bResized, bPainted,;
                 bKeyDown, bInit, bUp, bDown, bPgUp, bPgDown,;
                 bLeft, bRight, bPgLeft, bPgRight, bValid, bDropFiles,;
                 bLButtonUp ) CLASS TWindow

   local oVScroll, oHScroll

   DEFAULT cShow := "NORMAL"

   ::nResult     = nil
   ::lValidating = .f.

   if bValid != nil
      ::bValid = bValid
   endif

   if bDropFiles != nil
      ::bDropFiles = bDropFiles
      DragAcceptFiles( ::hWnd, .t. )
   endif

   if bPainted != nil
      if Upper( ::ClassName() ) == "TMDIFRAME"
         #ifdef __XPP__
            ::TMdiFrame:oWndClient:bPainted = bPainted
         #else
            ::oWndClient:bPainted = bPainted
         #endif
      else
         ::bPainted  = bPainted
      endif
   endif

   if bLClicked != nil
      if Upper( ::ClassName() ) == "TMDIFRAME"
         #ifdef __XPP__
            ::TMdiFrame:oWndClient:bLClicked = bLClicked
         #else
            ::oWndClient:bLClicked = bLClicked
         #endif
      else
         ::bLClicked = bLClicked
      endif
   endif

   if bRClicked != nil
      if Upper( ::ClassName() ) == "TMDIFRAME"
         #ifdef __XPP__
            ::TMdiFrame:oWndClient:bRClicked = bRClicked
         #else
            ::oWndClient:bRClicked = bRClicked
         #endif
      else
         ::bRClicked = bRClicked
      endif
   endif

   // For WS_VSCROLL and WS_HSCROLL styles

   if Upper( ::ClassName() ) == "TMDIFRAME"
      #ifndef __XPP__
      oVScroll = ::oWndClient:oVScroll
      oHScroll = ::oWndClient:oHScroll
      #endif
   else
      oVScroll = ::oVScroll
      oHScroll = ::oHScroll
   endif

   if oVScroll != nil       // When using VSCROLL clause
      if bUp != nil
         oVScroll:bGoUp = bUp
      else
         if Upper( ::ClassName() ) == "TMDIFRAME"
            oVScroll:bGoUp = { || ScrollWindow( ::oWndClient:hWnd, 0, 20, 0, GetClientRect( ::oWndClient:hWnd ) ) }
         endif
      endif
      if bDown != nil
         oVScroll:bGoDown = bDown
      else
         if Upper( ::ClassName() ) == "TMDIFRAME"
            oVScroll:bGoDown = { || ScrollWindow( ::oWndClient:hWnd, 0, -20, 0, GetClientRect( ::oWndClient:hWnd ) ) }
         endif
      endif
      if bPgUp != nil
         oVScroll:bPageUp = bPgUp
      endif
      if bPgDown != nil
         oVScroll:bPageDown = bPgDown
      endif
   endif

   if oHScroll != nil       // When using HSCROLL clause
      if bLeft != nil
         oHScroll:bGoUp = bLeft
      else
         if Upper( ::ClassName() ) == "TMDIFRAME"
            oHScroll:bGoUp = { || ScrollWindow( ::oWndClient:hWnd, 20, 0, 0, GetClientRect( ::oWndClient:hWnd ) ), ReleaseCapture() }
         endif
      endif
      if bRight != nil
         oHScroll:bGoDown = bRight
      else
         if Upper( ::ClassName() ) == "TMDIFRAME"
            oHScroll:bGoDown = { || ScrollWindow( ::oWndClient:hWnd, -20, 0, 0, GetClientRect( ::oWndClient:hWnd ) ), ReleaseCapture() }
         endif
      endif
      if bPgLeft != nil
         oHScroll:bPageUp = bPgLeft
      endif
      if bPgRight != nil
         oHScroll:bPageDown = bPgRight
      endif
   endif

   ::AEvalWhen()

   ShowWindow( ::hWnd, AScan( { "HIDDEN", "NORMAL", "ICONIZED", "MAXIMIZED" }, cShow ) - 1 )
   UpdateWindow( ::hWnd )

   ::lVisible = .t.

   if ! lWRunning()
      SetWndApp( ::hWnd )
   endif

   if ::bInit != nil
      Eval( ::bInit, Self )
   endif

   ::Resize()

   if ::oWnd == nil
      if ! lWRunning()
         WinRun( Self:hWnd )    esta es la 1003
      endif
   endif

return nil


Un saludo y Gracias

Carlos
Colt Hop ED, S.L.
Carlos Blas Fern谩ndez Dom铆nguez
Tlfo: 645847093
E-Mail: carlos@colthop.es

Nunca se termina de aprender, por eso necesito siempre ayuda.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 10:54 AM
Carlos la definicion de la ventana: wGestAnti ?

Code (fw): Select all Collapse
OF wGestAnti
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 505
Joined: Sat Apr 22, 2006 09:09 AM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 11:02 AM
Hola Crist贸bal:

wGestAnti es la ventana de la opci贸n, pero pasa en esta y en otras diez mas en wGestInci, wGestIndi, wGestDesp, wGestBoRe, wGestDesp, GestNomi, wGestTrab, wGestITC1, wGestITC2 y wGestITra. Todas se crean similarmente y es:

Code (fw): Select all Collapse
CreaVent(600,1280,"wGestITra","oVentPrinc",Locatext( 1, 1,348),"MenuITra()")


Siendo en estos casos en el Otherwise de CreaVent que es:

Code (fw): Select all Collapse
PROCEDURE CreaVent(yanc1,ylar1,yWind,yWino,yTit,ySty)
do case
聽 case ySty = "NO"
聽 聽 yAnc = yAnc1
聽 聽 yLar = yLar1
聽 聽 yVer = int((720 聽- yanc)/2)
聽 聽 yHor = int((1280 - ylar)/2)
聽 聽 DEFINE WINDOW &yWind MDICHILD OF &yWino PIXEL FROM yVer*ProPorV,yHor*ProPorH TO (yAnc+yline01)*ProPorV,yLar*ProPorH COLORS escri10, fondo10 TITLE yTit STYLE nOr(WS_CAPTION)
聽 聽 聽 SET FONT OF &yWind TO yFont
聽 聽 ACTIVATE WINDOW &yWind NORMAL VALID ! GetKeyState (VK_ESCAPE)
聽 case ySty = "SC"
聽 聽 yAnc = yAnc1
聽 聽 yLar = yLar1
聽 聽 yVer = int((720 聽- yanc)/2)
聽 聽 yHor = int((1280 - ylar)/2)
聽 聽 DEFINE WINDOW &yWind MDICHILD OF &yWino PIXEL FROM yVer*ProPorV,yHor*ProPorH TO (yAnc+yline01)*ProPorV,yLar*ProPorH COLORS escri10, fondo10 TITLE yTit STYLE nOr(WS_CAPTION)
聽 聽 聽 DEFINE SCROLLBAR &yWind:oVScroll VERTICAL OF &yWind
聽 聽 聽 SET FONT OF &yWind TO yFont
聽 聽 ACTIVATE WINDOW &yWind NORMAL ON INIT IMPOSTASCROLL(yWind,.T.) VALID ! GetKeyState (VK_ESCAPE)
聽 case ySty = "SI1"
聽 聽 yAnc = yAnc1
聽 聽 yLar = yLar1
聽 聽 yVer = 10
聽 聽 yHor = int((1280 - ylar)/2)
聽 聽 DEFINE WINDOW &yWind MDICHILD OF &yWino PIXEL FROM yVer*ProPorV,yHor*ProPorH TO (yAnc+yline01)*ProPorV,yLar*ProPorH COLORS escri10, fondo10 TITLE yTit STYLE nOr(WS_DLGFRAME)
聽 聽 聽 SET FONT OF &yWind TO yFont
聽 聽 ACTIVATE WINDOW &yWind NORMAL VALID ! GetKeyState (VK_ESCAPE)
聽 case ySty = "SI2"
聽 聽 yAnc = 25 - yline01
聽 聽 yLar = 3500
聽 聽 yVer = 0
聽 聽 yHor = 0
聽 聽 DEFINE WINDOW &yWind MDICHILD OF &yWino PIXEL FROM yVer*ProPorV,yHor*ProPorH TO (yAnc+yline01)*ProPorV,yLar*ProPorH COLORS escri10, fondo10 TITLE yTit STYLE nOr(WS_DLGFRAME)
聽 聽 聽 SET FONT OF &yWind TO yFont
聽 聽 ACTIVATE WINDOW &yWind NORMAL VALID ! GetKeyState (VK_ESCAPE)
聽 otherwise
聽 聽 yAnc = yAnc1
聽 聽 yLar = yLar1
聽 聽 yVer = int((660 聽- yanc)/2)
聽 聽 yHor = int((1280 - ylar)/2)
聽 聽 DEFINE WINDOW &yWind MDICHILD OF &yWino PIXEL FROM yVer*ProPorV,yHor*ProPorH TO (yAnc+yline01)*ProPorV,yLar*ProPorH COLORS escri10, fondo10 TITLE yTit STYLE nOr(WS_DLGFRAME)
聽 聽 聽 SET FONT OF &yWind TO yFont
聽 聽 聽 &ySty
聽 聽 ACTIVATE WINDOW &yWind NORMAL VALID ! GetKeyState (VK_ESCAPE)
endcase
RETURN (.T.)


Un saludo

Carlos
Colt Hop ED, S.L.
Carlos Blas Fern谩ndez Dom铆nguez
Tlfo: 645847093
E-Mail: carlos@colthop.es

Nunca se termina de aprender, por eso necesito siempre ayuda.
Posts: 505
Joined: Sat Apr 22, 2006 09:09 AM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 11:06 AM
Hola Crist贸bal:

No se si te ayudar谩 pero antes pasaba casi siempre pero le he incluido el "va101 = va100" y en vez de usar va100 para abrir la opci贸n uso va101 y parece que lo hace menos.
Code (fw): Select all Collapse
FUNCTION Cambanti()
if va100 = 1 .OR. va100 = 9
聽 va100 = 1
聽 dDlg003:Refresh()
聽 dDlg003:SetFocus()
聽 dDlg001:SetFocus()
else
聽 va101 = va100
聽 yTrab 聽= nombre
聽 wGestAnti:End()
聽 oDlgwDat:End()
聽 oRBar:nHeight(0)
聽 oGrupos:End()
聽 oRBar:End()
聽 oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
聽 RELEASE wGestAnti,wGestAnti1,wGestAnti2,oRBar,oGrupos
聽 CompTC12(ynumcoti)
聽 clos data
聽 SySRefresh()
聽 yOpc = 70
聽 SelOpCom()
endif
RETURN( .T. )


Y ahora he puesto despu茅s de esta opci贸n va100 = NIL y tambi茅n parece que lo hace menos pero lo sigue haciendo.

Un saludo

Carlos
Colt Hop ED, S.L.
Carlos Blas Fern谩ndez Dom铆nguez
Tlfo: 645847093
E-Mail: carlos@colthop.es

Nunca se termina de aprender, por eso necesito siempre ayuda.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 05:31 PM
Carlos, que haces en esta linea?
Es un cambio de estilo de la ventana?

Code (fw): Select all Collapse
聽 otherwise
聽 聽 yAnc = yAnc1
聽 聽 yLar = yLar1
聽 聽 yVer = int((660 聽- yanc)/2)
聽 聽 yHor = int((1280 - ylar)/2)
聽 聽 DEFINE WINDOW &yWind MDICHILD OF &yWino PIXEL FROM yVer*ProPorV,yHor*ProPorH TO (yAnc+yline01)*ProPorV,yLar*ProPorH COLORS escri10, fondo10 TITLE yTit STYLE nOr(WS_DLGFRAME)
聽 聽 聽 SET FONT OF &yWind TO yFont

聽 聽 聽 // Aqui
聽 聽 聽 &ySty


聽 聽 ACTIVATE WINDOW &yWind NORMAL VALID ! GetKeyState (VK_ESCAPE)
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 505
Joined: Sat Apr 22, 2006 09:09 AM
Re: Problemas con una ComboBox
Posted: Sat Aug 01, 2015 07:33 PM
Hola Crist贸bal:

Esa l铆nea ejecuta una funci贸n que pone el men煤 de la opci贸n si te das cuenta yo llamo a creavent asi:

CreaVent(600,1280,"wGestITra","oVentPrinc",Locatext( 1, 1,348),"MenuITra()")

El 煤ltimo par谩metro es MenuITra() y con &ysty lo ejecuto, en particular esta funci贸n es :

Code (fw): Select all Collapse
FUNCTION MenuITra()
PUBLIC oRBar,oGrupos
DEFINE RIBBONBAR oRBar WINDOW oVentPrinc HEIGHT 70*ProporV TOPMARGIN 0 2013 PROMPT LocaText( 1, 1,916)
oRBar:nWidth = oVentPrinc:nWidth
ADD GROUP oGrupos RIBBON oRBar to OPTION 1 width 730*ProporH
@ 聽3*ProporV, 聽5*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1, 12) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 聽3*ProporV, 85*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1, 16) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 聽3*ProporV,165*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1, 84) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 聽3*ProporV,245*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1, 83) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 聽3*ProporV,325*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1, 25) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 聽3*ProporV,405*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1, 86) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 聽3*ProporV,485*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1,109) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 聽3*ProporV,565*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1, 46) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 聽3*ProporV,645*ProporH ADD BUTTON PROMPT 聽LocaText( 2, 1, 48) GROUP oGrupos 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SIZE 80*ProporV,20*ProporH SAYBUTTON CENTER
@ 23*ProporV, 聽5*ProporH ADD BUTTON BITMAP yruta + "alta.bmp" 聽 GROUP oGrupos ACTION AltaITra(1) 聽SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
@ 23*ProporV, 85*ProporH ADD BUTTON BITMAP yruta + "baja.bmp" 聽 GROUP oGrupos ACTION BajaITra(1) 聽SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
@ 23*ProporV,165*ProporH ADD BUTTON BITMAP yruta + "modi.bmp" 聽 GROUP oGrupos ACTION ModiITra(1) 聽SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
@ 23*ProporV,245*ProporH ADD BUTTON BITMAP yruta + "inse.bmp" 聽 GROUP oGrupos ACTION InseITra(1) 聽SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
@ 23*ProporV,325*ProporH ADD BUTTON BITMAP yruta + "elim.bmp" 聽 GROUP oGrupos ACTION BajaITra1(1) SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
@ 23*ProporV,405*ProporH ADD BUTTON BITMAP yruta + "mod2.bmp" 聽 GROUP oGrupos ACTION ModiITra1(1) SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
@ 23*ProporV,485*ProporH ADD BUTTON BITMAP yruta + "veri.bmp" 聽 GROUP oGrupos ACTION ArchITra() 聽 SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
@ 23*ProporV,565*ProporH ADD BUTTON BITMAP yruta + "calc.bmp" 聽 GROUP oGrupos ACTION RecaITra() 聽 SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
@ 23*ProporV,645*ProporH ADD BUTTON BITMAP yruta + "sali.bmp" 聽 GROUP oGrupos ACTION SaliITra() 聽 SIZE 80*ProporV,40*ProporH ROUND ROUNDSIZE 5
oVentPrinc:Resize(0,oVentPrinc:nWidth, oVentPrinc:nHeight)
@-1,0 BUTTON xPul01 PROMPT LocaText( 2, 1, 12) OF wGestITra ACTION AltaITra(1) SIZE 0,0
@-1,0 BUTTON xPul02 PROMPT LocaText( 2, 1, 16) OF wGestITra ACTION BajaITra(1) SIZE 0,0
@-1,0 BUTTON xPul03 PROMPT LocaText( 2, 1, 84) OF wGestITra ACTION ModiITra(1) SIZE 0,0
@-1,0 BUTTON xPul04 PROMPT LocaText( 2, 1, 83) OF wGestITra ACTION AltaITra(1) SIZE 0,0
@-1,0 BUTTON xPul05 PROMPT LocaText( 2, 1, 25) OF wGestITra ACTION BajaITra(1) SIZE 0,0
@-1,0 BUTTON xPul06 PROMPT LocaText( 2, 1, 86) OF wGestITra ACTION ModiITra(1) SIZE 0,0
@-1,0 BUTTON xPul07 PROMPT LocaText( 2, 1,109) OF wGestITra ACTION ArchITra() 聽SIZE 0,0
@-1,0 BUTTON xPul08 PROMPT LocaText( 2, 1, 46) OF wGestITra ACTION RecaITra() 聽SIZE 0,0
@-1,0 BUTTON xPul09 PROMPT LocaText( 2, 1, 48) OF wGestITra ACTION SaliITra() 聽SIZE 0,0
RETURN( NIL )


Un saludo

Carlos
Colt Hop ED, S.L.
Carlos Blas Fern谩ndez Dom铆nguez
Tlfo: 645847093
E-Mail: carlos@colthop.es

Nunca se termina de aprender, por eso necesito siempre ayuda.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problemas con una ComboBox
Posted: Sun Aug 02, 2015 08:36 AM

Carlos, aparentemente creo que es un problema de que pierde el objeto y no puede crear la ventana o que est谩s volviendo a crearlo sin destruir la ventana, pero sin poder hacer pruebas es complicado poder afirmarlo asi.
Qu茅 usas Harbour o XHarbour?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 505
Joined: Sat Apr 22, 2006 09:09 AM
Re: Problemas con una ComboBox
Posted: Sun Aug 02, 2015 08:59 AM

Hola Crist贸bal:

Uso Harbour pero cuando usaba xHarbour pasaba lo mismo y las funciones y todo te lo he mostrado como est谩 ahora pero antes estaba de otra manera y pasaba lo mismo.

Yo puse Msginfo por todas las l铆neas y toda la funci贸n pasaba perfectamente y cuando creaba en la segunda opci贸n es cuando da el error.

Un saludo

Carlos

Colt Hop ED, S.L.
Carlos Blas Fern谩ndez Dom铆nguez
Tlfo: 645847093
E-Mail: carlos@colthop.es

Nunca se termina de aprender, por eso necesito siempre ayuda.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problemas con una ComboBox
Posted: Sun Aug 02, 2015 09:32 AM

Has probado a poner el FWLOG con el <obj>:hWnd para obtener un fichero .log con el seguimiento del proceso?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces