Checkbox problem when disabled.

Checkbox problem when disabled.

Postby Horizon » Sun Oct 28, 2018 7: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: Select all  Expand view
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: Select all  Expand view
#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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Checkbox problem when disabled.

Postby cnavarro » Sun Oct 28, 2018 11:16 pm

At moment

Code: Select all  Expand view


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

Re: Checkbox problem when disabled.

Postby Horizon » Mon Oct 29, 2018 11:26 am

cnavarro wrote:At moment

Code: Select all  Expand view


   @ 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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 53 guests