FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Why Words CheckBox Disappear
Posts: 175
Joined: Tue Nov 10, 2009 10:56 AM
Why Words CheckBox Disappear
Posted: Fri Jul 30, 2010 11:49 AM

Hi,

include "FiveWin.ch"

//----------------------------------------------------------------------------//

function Main()

local oDlg, lExit := .f., oBtn
local oFont
local lValue := .f.
local lValue1 := .t.
local lValue2 := .t.

DEFINE FONT oFont NAME "Arial" SIZE 0, -11 BOLD

DEFINE DIALOG oDlg FROM 5, 5 TO 15, 40 TITLE "A Dialog Box"

@ 3, 0.720 CHECKBOX lValue PROMPT "Test 1" of oDlg ;
ON CHANGE { || chkbox19("1") } size 150, 11 UPDATE

@ 3.8, 0.720 CHECKBOX lValue1 PROMPT "Test 2" of oDlg ;
ON CHANGE { || chkbox19("2") } size 130, 8 Font oFont UPDATE

@ 3, 12 BUTTON oBtn PROMPT "&Cancel" OF oDlg SIZE 40, 12 ;
ACTION ( MsgInfo( "Cancel" ), lExit := .t., oDlg:End() )

ACTIVATE DIALOG oDlg VALID lExit

return nil

//----------------------------------------------------------------------------//
function chkbox19()

parameter ckhnum

local abc := "Y"
local pqr := "Y"
local ckhnum

if ckhnum = "1"
if abc = "Y"
abc = "N"
else
abc = "Y"
endif
endif
if ckhnum = "2"
if pqr = "Y"
pqr = "N"
else
pqr = "Y"
endif
endif

return nil
******

When I click on the checkbox, the words disappear. How to make them not disappear.

Thanks

ACWOO
using FWH10.6+Harbour2.1+bcc582

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Why Words CheckBox Disappear
Posted: Fri Jul 30, 2010 01:02 PM

Acwoo,

Your code works fine for me. FWH 10.3/xHarbour, XP Pro.

It may be a bug in the FWH version you are using.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 694
Joined: Fri Oct 07, 2005 06:58 AM
Re: Why Words CheckBox Disappear
Posted: Fri Jul 30, 2010 06:39 PM
Un saludo

Fernando González Diez

ALSIS Sistemas Informáticos
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Why Words CheckBox Disappear
Posted: Fri Jul 30, 2010 09:25 PM

This fix is required:

viewtopic.php?p=101871#p101871

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion