Problem painted with "TRANSPARENT" and "WHEN" (Fixed)

Post Reply
User avatar
Blessed
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.
Contact:

Problem painted with "TRANSPARENT" and "WHEN" (Fixed)

Post by Blessed »

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: Select all

      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 :D

FWH 9.06, xHarbour
Last edited by Blessed on Mon Dec 14, 2009 5:39 pm, edited 5 times in total.
_ A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
Blessed
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.
Contact:

Re: WHEN Clause

Post by Blessed »

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
_ A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: WHEN Clause

Post by demont frank »

Maybe you could use :

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

Frank
User avatar
Blessed
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.
Contact:

Re: WHEN Clause

Post by Blessed »

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: Select all

DEFINE DIALOG oWndChilds RESOURCE "REP_ART_VEN";
             TRANSPARENT COLOR  0, oApp:Color2007
 
Any suggestions, since at this point, no where to go :?

Best regards
_ A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
Blessed
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.
Contact:

Re: Problem painted with "TRANSPARENT" and "WHEN" (Fixed)

Post by Blessed »

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: Select all

REDEFINE SAY oGet[8] ID 154 OF oWndChilds TRANSPARENT
Thank you all, Best regards :D
_ A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Post Reply