Page 1 of 1
ON PAINT oWnd
Posted: Thu Oct 11, 2007 5:16 pm
by Otto
If I open a window with on paint is there a method to terminate the on paint and to restart?
Regards,
Otto
Posted: Thu Oct 11, 2007 5:17 pm
by Antonio Linares
Otto,
Please provide a small example of what you want to do ? thanks
Posted: Thu Oct 11, 2007 5:44 pm
by Otto
I repaint the plan with the on paint but sometimes I would like to stop this behavior.
For example the tooltip executes a on paint.
Best regards,
Otto
ACTIVATE WINDOW oWndPlan MAXIMIZED;
ON PAINT (ziplan:=.F., MiPaint(ZZ,hdatum,A,Monat,hOben,nAnzeige) );
Posted: Thu Oct 11, 2007 8:15 pm
by James Bott
> repaint the plan with the on paint but sometimes I would like to stop this behavior.
For example the tooltip executes a on paint.
It looks like you are being redundant, you are repainting every time windows repaints. I think you want to use ON RESIZE instead of ON PAINT.
Give it a try.
James
Posted: Thu Oct 11, 2007 9:51 pm
by Enrico Maria Giordano
Otto wrote:I repaint the plan with the on paint but sometimes I would like to stop this behavior.
For example the tooltip executes a on paint.
You should repaint only the invalidated area and not the whole window. But sorry I can't help you more on this subject.
EMG
Posted: Fri Oct 12, 2007 6:44 am
by Maurizio
Ciao Otto
I dont use ON PAINT in ACTIVATE WINDOW
But after ACTIVATE WINDOW
DO WHILE ! m->lExitTb
SysWait(0.3) //0.3
ENDDO
I dont use ON PAINT in ACTIVATE WINDOW
But after ACTIVATE WINDOW
DO WHILE ! m->lExitTb
SysWait(0.3) //0.3
ENDDO
Maurizio
Posted: Fri Oct 12, 2007 2:19 pm
by Otto
Hello James, Enrico and Mauricio,
Thank you for your answer.
I will try your suggestions.
Maurizio, can you share a little bit of code. How you do this?
Best regards,
Otto
Posted: Fri Oct 12, 2007 4:21 pm
by Maurizio
Otto
Ci sentiamo via email
Maurizio
Posted: Sat Oct 13, 2007 5:14 am
by Otto
Hello James,
thank you for your answer.
In case I would start using your database class is it possible to implement it in a gentle way.
I mean could I implement the class parallel to conventional data access in one prg.
Best regards,
Otto
Posted: Sat Oct 13, 2007 6:54 am
by James Bott
Otto,
>In case I would start using your database class is it possible to implement it in a gentle way. I mean could I implement the class parallel to conventional data access in one prg.
Yes you can.
James
Posted: Sat Oct 13, 2007 4:42 pm
by Otto
Thank you James.
I downloaded the file from your homepage.
Regards,
Otto
Posted: Sat Oct 13, 2007 5:45 pm
by James Bott
Otto,
>I downloaded the file from your homepage.
Keep in mind that the demo only works with FW/Clipper.
James