ON PAINT oWnd

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

ON PAINT oWnd

Post by Otto »

If I open a window with on paint is there a method to terminate the on paint and to restart?

Regards,
Otto
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Otto,

Please provide a small example of what you want to do ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post 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) );

Image
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post 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
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Ciao Otto

Image
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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post 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
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Otto
Ci sentiamo via email
Maurizio
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post 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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

Thank you James.
I downloaded the file from your homepage.
Regards,
Otto
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Otto,

>I downloaded the file from your homepage.

Keep in mind that the demo only works with FW/Clipper.

James
Post Reply