FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Checkbox problem when disabled.
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Checkbox problem when disabled.
Posted: Sun Oct 28, 2018 07:35 PM
Hi,

My example is below. The problem is that when I press disable button, the area that is below the checkbox is disappeared.

In this case, when I move the mouse in this area, the lost fields are coming back again.

Code (fw): Select all Collapse
include "Fivewin.ch"


FUNCTION MAIN( )

    LOCAL oDlg, oChk, oChk2

    LOCAL lChk := .F., lChk2 := .F.

    DEFINE DIALOG oDlg
        oDlg:lTransparent := .T.

    @ 1, 1 CHECKBOX oChk VAR lChk PROMPT "Test";
           SIZE 100, 13 

    @ 2, 1 CHECKBOX oChk2 VAR lChk2 PROMPT "Test2";
           SIZE 100, 13 

    @ 3, 1 BUTTON "Disable";
           ACTION oChk:Disable()

    @ 3, 10 BUTTON "Enable";
           ACTION oChk:Enable()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


Code (fw): Select all Collapse
#ifndef __64__
  1 24 "winxp\WindowsXP.Manifest" 
#endif



I think this is related Transparent issue. When I delete oDlg:lTransparent := .T., There is not any problem.

How Can I solve this problem?

Thanks.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Checkbox problem when disabled.
Posted: Sun Oct 28, 2018 11:16 PM
At moment

Code (fw): Select all Collapse
   @ 3, 1 BUTTON "Disable";
           ACTION ( oChk:Disable(), oDlg:Refresh() ) OF oDlg

    @ 3, 10 BUTTON "Enable";
           ACTION ( oChk:Enable(), oDlg:Refresh() ) OF oDlg
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: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Checkbox problem when disabled.
Posted: Mon Oct 29, 2018 11:26 AM
cnavarro wrote:At moment

Code (fw): Select all Collapse
   @ 3, 1 BUTTON "Disable";
           ACTION ( oChk:Disable(), oDlg:Refresh() ) OF oDlg

    @ 3, 10 BUTTON "Enable";
           ACTION ( oChk:Enable(), oDlg:Refresh() ) OF oDlg


Thank you Mr. Navarro. it works.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06

Continue the discussion