FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ON PAINT oWnd
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
ON PAINT oWnd
Posted: Thu Oct 11, 2007 05:16 PM

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

Regards,
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
ON PAINT oWnd
Posted: Thu Oct 11, 2007 05:17 PM

Otto,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
ON PAINT oWnd
Posted: Thu Oct 11, 2007 05: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) );

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
ON PAINT oWnd
Posted: Thu Oct 11, 2007 08: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
ON PAINT oWnd
Posted: Thu Oct 11, 2007 09: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
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
ON PAINT oWnd
Posted: Fri Oct 12, 2007 06:44 AM
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
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
ON PAINT oWnd
Posted: Fri Oct 12, 2007 02: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

Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
ON PAINT oWnd
Posted: Fri Oct 12, 2007 04:21 PM

Otto
Ci sentiamo via email
Maurizio

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
ON PAINT oWnd
Posted: Sat Oct 13, 2007 05: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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
ON PAINT oWnd
Posted: Sat Oct 13, 2007 06: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
ON PAINT oWnd
Posted: Sat Oct 13, 2007 04:42 PM

Thank you James.
I downloaded the file from your homepage.
Regards,
Otto

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
ON PAINT oWnd
Posted: Sat Oct 13, 2007 05:45 PM

Otto,

>I downloaded the file from your homepage.

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

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion