Checkbox disappearing (MinGW)

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Checkbox disappearing (MinGW)

Post 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
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Checkbox disappearing

Post by cnavarro »

It also happens when you add the OF oDlg clause?
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Checkbox disappearing

Post 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
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Checkbox disappearing

Post by cnavarro »

Enrico, run OK in my tests
Image
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Checkbox disappearing (MinGW)

Post 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
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Checkbox disappearing (MinGW)

Post by cnavarro »

Enrico, yes, this sample is build with MinGW 8.10
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Checkbox disappearing (MinGW)

Post by cnavarro »

I only use the libraries that are marked.
Image
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Checkbox disappearing (MinGW)

Post 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
Post Reply