ON PAINT oWnd

ON PAINT oWnd

Postby Otto » Thu Oct 11, 2007 5:16 pm

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

Regards,
Otto
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Thu Oct 11, 2007 5:17 pm

Otto,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Thu Oct 11, 2007 5:44 pm

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
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby James Bott » Thu Oct 11, 2007 8:15 pm

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

Postby Enrico Maria Giordano » Thu Oct 11, 2007 9:51 pm

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

Postby Maurizio » Fri Oct 12, 2007 6:44 am

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
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Otto » Fri Oct 12, 2007 2:19 pm

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
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby Maurizio » Fri Oct 12, 2007 4:21 pm

Otto
Ci sentiamo via email
Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Otto » Sat Oct 13, 2007 5:14 am

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
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby James Bott » Sat Oct 13, 2007 6:54 am

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

Postby Otto » Sat Oct 13, 2007 4:42 pm

Thank you James.
I downloaded the file from your homepage.
Regards,
Otto
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby James Bott » Sat Oct 13, 2007 5:45 pm

Otto,

>I downloaded the file from your homepage.

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests