FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Checkbox disappearing (MinGW)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Checkbox disappearing (MinGW)
Posted: Sat Jan 16, 2021 09: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 (fw): Select all Collapse
#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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Checkbox disappearing
Posted: Sat Jan 16, 2021 09: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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox disappearing
Posted: Sat Jan 16, 2021 02:34 PM
Yes, same result. This is the files used to build the EXE:

Code (fw): Select all Collapse
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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Checkbox disappearing
Posted: Sun Jan 17, 2021 12:50 AM
Enrico, run OK in my tests
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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox disappearing (MinGW)
Posted: Sun Jan 17, 2021 08:10 AM

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

There is nobody here using MinGW, please?

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Checkbox disappearing (MinGW)
Posted: Sun Jan 17, 2021 09: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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox disappearing (MinGW)
Posted: Sun Jan 17, 2021 09:38 AM

Ok, thank you.

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Checkbox disappearing (MinGW)
Posted: Sun Jan 17, 2021 09:53 AM
I only use the libraries that are marked.
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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox disappearing (MinGW)
Posted: 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

Continue the discussion