FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem painted with "TRANSPARENT" and "WHEN" (Fixed)
Posts: 243
Joined: Wed Sep 19, 2007 04:32 PM
Problem painted with "TRANSPARENT" and "WHEN" (Fixed)
Posted: Sun Dec 13, 2009 04:30 PM
Hello friends of the forum.

I need help with the WHEN clause, some items to be disabled for not complying with the condition WHEN all the dialogue is not painted correctly.

http://img704.imageshack.us/i/errorwhen.jpg/

The code used in this part is:
Code (fw): Select all Collapse
      REDEFINE COMBOBOX oGet[4] VAR cCajero ITEMS aCajeros ID 152 OF oWndChilds ;
               UPDATE WHEN !lCostos

      REDEFINE CHECKBOX oGet[5] VAR lDetallar ID 150 OF oWndChilds WHEN !lCostos UPDATE 
      REDEFINE CHECKBOX oGet[6] VAR lCostos   ID 151 OF oWndChilds ;
                     VALID ( oWndChilds:Refresh(),.T. ) WHEN oApp:Accs_Cost UPDATE


Best regards from Honduras :-)

FWH 9.06, xHarbour
Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Posts: 243
Joined: Wed Sep 19, 2007 04:32 PM
Re: WHEN Clause
Posted: Mon Dec 14, 2009 05:33 AM
Hello friends of the forum.

So looks the dialogue without pressing the checkbox costs.
http://img704.imageshack.us/i/errorwhen2.jpg/

Once you press the image appears as the first post.
And as you see I'm using the "refresh" the dialogue, to force the repainting and does not work, any suggestions?

Best regards

FWH 9.06, xHarbour
Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Re: WHEN Clause
Posted: Mon Dec 14, 2009 08:10 AM

Maybe you could use :

VALID ( oWndChilds:AevalWhen() ,.T. ) WHEN oApp:Accs_Cost UPDATE

Frank

Posts: 243
Joined: Wed Sep 19, 2007 04:32 PM
Re: WHEN Clause
Posted: Mon Dec 14, 2009 05:08 PM
Thanks Frank.

But it did not work.
When you hover your mouse pointer over the objects are painted properly.
But when you tell the window to repaint the "refresh".
I found the problem is with TRANSPARENT clause without this working properly.

Code (fw): Select all Collapse
DEFINE DIALOG oWndChilds RESOURCE "REP_ART_VEN";
             TRANSPARENT COLOR  0, oApp:Color2007


Any suggestions, since at this point, no where to go :-)

Best regards
Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Posts: 243
Joined: Wed Sep 19, 2007 04:32 PM
Re: Problem painted with "TRANSPARENT" and "WHEN" (Fixed)
Posted: Mon Dec 14, 2009 05:38 PM
Hello friends of the forum.

The solution is to not use the clause TRANSPARENT with dialogue, if not in the commands in the dialogue.
Code (fw): Select all Collapse
REDEFINE SAY oGet[8] ID 154 OF oWndChilds TRANSPARENT


Thank you all, Best regards :-)
Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06

Continue the discussion