Page 1 of 1
Checkbox disappearing (MinGW)
Posted: Sat Jan 16, 2021 9:24 am
by Enrico Maria Giordano
In the following sample, the checkbox disappears when it receives the focus. Please note that the problem shows up only with Harbour and MinGW.
Any ideas?
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := SPACE( 30 )
LOCAL lVar := .F.
DEFINE DIALOG oDlg
@ 1, 1 GET cVar
@ 3, 1 CHECKBOX lVar
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
EMG
Re: Checkbox disappearing
Posted: Sat Jan 16, 2021 9:44 am
by cnavarro
It also happens when you add the OF oDlg clause?
Re: Checkbox disappearing
Posted: Sat Jan 16, 2021 2:34 pm
by Enrico Maria Giordano
Yes, same result. This is the files used to build the EXE:
Code: Select all
q.prg
-fullstatic
fwh.hbc
This is fwh.hbc:
{win}incpaths=include
{win}libpaths=lib
{win}gt=gtgui
{mingw}libs=fivehg fivehgc
{bcc}libs=fiveh fivehc
{win}libs=comctl32
{win}libs=comdlg32
{win}libs=gdi32
{win}libs=hbct
{win}libs=hbsqlit3
{win}libs=hbtip
{win}libs=hbwin
{win}libs=hbmainstd
{win}libs=hbziparc
{win}libs=hbmzip
{win}libs=minizip
{win}libs=hbnf
{win}libs=hbodbc
{mingw}libs=kernel32
{mingw}libs=mfcuia32
{win}libs=msimg32
{win}libs=odbc32
{win}libs=ole32
{win}libs=oleaut32
{win}libs=oledlg
{win}libs=psapi
{mingw}libs=stdc++
{win}libs=user32
{win}libs=uuid
{mingw}libs=version
{win}libs=vfw32
{mingw}libs=win32k
{win}libs=winmm
{win}libs=winspool
{win}libs=wsock32
{win}libs=xhb
{win}libs=gdiplus
{win}libs=shell32
{win}libs=mpr
{win}libs=png
EMG
Re: Checkbox disappearing
Posted: Sun Jan 17, 2021 12:50 am
by cnavarro
Enrico, run OK in my tests
Re: Checkbox disappearing (MinGW)
Posted: Sun Jan 17, 2021 8:10 am
by Enrico Maria Giordano
Thank you. Are you using MinGW? Did you move the focus to checkbox?
There is nobody here using MinGW, please?
EMG
Re: Checkbox disappearing (MinGW)
Posted: Sun Jan 17, 2021 9:36 am
by cnavarro
Enrico, yes, this sample is build with MinGW 8.10
Re: Checkbox disappearing (MinGW)
Posted: Sun Jan 17, 2021 9:38 am
by Enrico Maria Giordano
Ok, thank you.
EMG
Re: Checkbox disappearing (MinGW)
Posted: Sun Jan 17, 2021 9:53 am
by cnavarro
I only use the libraries that are marked.
Re: Checkbox disappearing (MinGW)
Posted: Mon Jan 18, 2021 11:42 am
by Enrico Maria Giordano
The problem was the MinGW version used (probably a bug in that version of MinGW SDK libs). Using a new version (10.2) the problem is fixed.
EMG