Checkbox disappearing (MinGW)

Checkbox disappearing (MinGW)

Postby Enrico Maria Giordano » Sat Jan 16, 2021 9:24 am

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 view
#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
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox disappearing

Postby cnavarro » Sat Jan 16, 2021 9:44 am

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

Re: Checkbox disappearing

Postby Enrico Maria Giordano » Sat Jan 16, 2021 2:34 pm

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

Code: Select all  Expand view
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
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox disappearing

Postby cnavarro » Sun Jan 17, 2021 12:50 am

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

Re: Checkbox disappearing (MinGW)

Postby Enrico Maria Giordano » Sun Jan 17, 2021 8:10 am

Thank you. Are you using MinGW? Did you move the focus to checkbox?

There is nobody here using MinGW, please?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox disappearing (MinGW)

Postby cnavarro » Sun Jan 17, 2021 9:36 am

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: 6501
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Re: Checkbox disappearing (MinGW)

Postby cnavarro » Sun Jan 17, 2021 9:53 am

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

Re: Checkbox disappearing (MinGW)

Postby Enrico Maria Giordano » Mon Jan 18, 2021 11:42 am

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
User avatar
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 43 guests