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

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

Postby Blessed » Sun Dec 13, 2009 4: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: Select all  Expand view

      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.
Oscar 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.

Re: WHEN Clause

Postby Blessed » Mon Dec 14, 2009 5: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
User avatar
Blessed
 
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.

Re: WHEN Clause

Postby demont frank » Mon Dec 14, 2009 8:10 am

Maybe you could use :

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

Frank
demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: WHEN Clause

Postby Blessed » Mon Dec 14, 2009 5: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: Select all  Expand view
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
User avatar
Blessed
 
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.

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

Postby Blessed » Mon Dec 14, 2009 5: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: Select all  Expand view
REDEFINE SAY oGet[8] ID 154 OF oWndChilds TRANSPARENT


Thank you all, Best regards :D
Oscar 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.


Return to FiveWin for Harbour/xHarbour

Who is online

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