I am working on a program originally compiled on a Windows98 PC.
I transferred the source code on a PC with Windows XP and recompiled it.
I found that in several dialogs many buttons were not visible at all.
I solved the problem in two ways:
1) I put the line #OPTION VERSION3
2) I removed the style %WS_BORDER in the CONTROL ADD BUTTON statement
I ask if somebody knows the reason of this behavior.
I attach a zip file with the source code of a 3 test programs that contains the part of the code that creates the dialog.
The file "prova_pulsanti.bas" is the original code
The file "prova_pulsanti_VERSION3" has the #OPTION VERSION3 line
The file "prova_pulsanti_no%WS_BORDER" has all the style %WS_BORDER removed.
The image files show the resulting dialogs.
Thanks in advanced and best regards.
Vincenzo Varoli
I transferred the source code on a PC with Windows XP and recompiled it.
I found that in several dialogs many buttons were not visible at all.
I solved the problem in two ways:
1) I put the line #OPTION VERSION3
2) I removed the style %WS_BORDER in the CONTROL ADD BUTTON statement
I ask if somebody knows the reason of this behavior.
I attach a zip file with the source code of a 3 test programs that contains the part of the code that creates the dialog.
The file "prova_pulsanti.bas" is the original code
The file "prova_pulsanti_VERSION3" has the #OPTION VERSION3 line
The file "prova_pulsanti_no%WS_BORDER" has all the style %WS_BORDER removed.
The image files show the resulting dialogs.
Thanks in advanced and best regards.
Vincenzo Varoli
Comment