Checkbox disappearing (MinGW)

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
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 | Expand

#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: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Checkbox disappearing

Post by cnavarro »

It also happens when you add the OF oDlg clause?
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
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Checkbox disappearing

Post by Enrico Maria Giordano »

Yes, same result. This is the files used to build the EXE:

Code: Select all | Expand

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: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Checkbox disappearing

Post by cnavarro »

Enrico, run OK in my tests
Image
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
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
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: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Checkbox disappearing (MinGW)

Post by cnavarro »

Enrico, yes, this sample is build with MinGW 8.10
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
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Checkbox disappearing (MinGW)

Post by cnavarro »

I only use the libraries that are marked.
Image
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
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
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