DCdialog blink

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

DCdialog blink

#1 Post by digitsoft »

Roger tengo problemas con dcdialog Ya que al cargar parpaean mucho
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCdialog blink

#2 Post by rdonnay »

If you are having a problem, can you provide a sample program?
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: DCdialog blink

#3 Post by digitsoft »

Hi Roger
The problem is that loading the screen much palpaden



Nolberto Paulino
Regards
Nolberto Paulino
Regards

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: DCdialog blink

#4 Post by digitsoft »

Hi Roger
This is in the HELP eXpress, but I still blinking
Using even CLEAREVENTS

Nolberto Paulino
Regards


DCREAD GUI - Read the DIALOG GetList with the GUI reader (GUI) 1.3

CLEAREVENTS will clear all events from the event queue before
starting up the event loop. Many times there are many extra
xbeP_Paint events created by DC_ReadGui(), especially when
creating browse screens to insure that all browse objects are
stablized. If you see a flicker in the screen at startup it
is recommended that you use the CLEAREVENTS clause.
Nolberto Paulino
Regards

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DCdialog blink

#5 Post by Tom »

Hi, Nolberto.

CLEAREVENTS works good. I have several huge dialogs which used to flicker, but they stopped this behaviour with "clearevents". You make look for unneeded DC_Getrefreshs, oDialog:InvalidateRect and stuff like this in your code. Maybe you do something inside the EVAL clause of DCREAD GUI which causes the dialog to paint again.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: DCdialog blink

#6 Post by digitsoft »

Hi, Tom
This is what I have in some DCREAD

DCREAD GUI TITLE 'Consulta de Productos'+SPACE(5)+'Depósito Nº:'+LEFT(aBuscar(aDepositos,LEFT(xCodDep,2),2),25) ;
FIT ;
CLEAREVENTS ;
SETFOCUS oSeek ;
SETAPPWINDOW ;
OPTIONS GetOptions ;
MODAL ;
TO lOk ;
eval {|| oBrowse :hScrollObject:useVisualStyle := .T.,;
oBrowse :vScrollObject:useVisualStyle := .T.,;
oBrowse2:hScrollObject:useVisualStyle := .T.,;
oBrowse2:vScrollObject:useVisualStyle := .T. ;
}



DCREAD GUI FIT MODAL TITLE "Pedido de Venta "+IIF(cTipoModulo = "VR","Rápida",IIF(cTipoModulo = "VS","Sin Cajero","Con Cajero")) PARENT @oDlg ; &&&&& APPWINDOW oDialog
OPTIONS GetOptions ;
SETAPPWINDOW ;
CLEAREVENTS ;
eval {|o| o:setFrameState( XBPDLG_FRAMESTAT_MAXIMIZED ),;
iif(lDocumento,(lCodProd := .T.,BuscarDocumento( aApp, GetList, "PD" ),SetAppFocus( oCodProd )),SetAppFocus( IIF((lModificarCliente .or. lModificarTipoDeVenta) .AND. cTipoModulo # "VR",oCodCli,IIF(lModificarCliente .AND. cTipoModulo # "VR",oFormaVenta,oCodProd )) ) ),;
oFPendiente :hScrollObject:useVisualStyle := .T.,;
oFPendiente :vScrollObject:useVisualStyle := .T.,;
oDetalles :hScrollObject:useVisualStyle := .T.,;
oDetalles :vScrollObject:useVisualStyle := .T.,;
oUPrecioVenta :hScrollObject:useVisualStyle := .T.,;
oUPrecioVenta :vScrollObject:useVisualStyle := .T.,;
oDetalleDeOferta:vScrollObject:useVisualStyle := .T.,;
oDPendiente :hScrollObject:useVisualStyle := .T.,;
oDPendiente :vScrollObject:useVisualStyle := .T.;
}
Nolberto Paulino
Regards

Post Reply