Page 1 of 1
[SIMPLEGRAPH] Hiding controls paint on form

Posted:
September 21st, 2011, 9:17 pm
by mrbar
Hi guys,
I´m doing a project with SimpleGraph 2.8, and I have created some new kinds of nodes.
When loading some files the form do not paint rightly. after close the openfile dialog the area where the dialog was open dont repaint.
look this images
Before load file:
http://imageshack.us/photo/my-images/850/screen1vo.jpg/After load file:
http://imageshack.us/photo/my-images/84 ... n2dix.jpg/I´m attachment the source project too
We need help, please!
Re: [SIMPLEGRAPH] Hiding controls paint on form

Posted:
September 23rd, 2011, 2:03 pm
by dec
Hi,
Maybe dont work, but, did you try with the "Form.DoubleBuffered" set to "True"? For the other hand, the image show a non repainted area but out of the SimpleGraph... I view the non repainted area is the program menu/toolbar part?
Re: [SIMPLEGRAPH] Hiding controls paint on form

Posted:
September 23rd, 2011, 6:39 pm
by Kambiz
I couldn't run the sample program because it depends on Toolbar97, and I don't have it.
It seems the problem is because of calling "FillRect" method of a wrong canvas (particularly "Panel1.Canvas"). Double checking "with" statements in your code can lead you to the origin of the problem.
Re: [SIMPLEGRAPH] Hiding controls paint on form

Posted:
September 23rd, 2011, 7:49 pm
by mrbar
Hi guys,
I'm not using FillRect with "with" nowhere.
I do not paint on canvas of form or panel too!
I'm sending the project again without the ToolBarButton97.
Try help me again, please!
thanks
Re: [SIMPLEGRAPH] Hiding controls paint on form

Posted:
September 28th, 2011, 9:44 pm
by mrbar
Hi guys,
I'm not using FillRect with "with" nowhere.
I do not paint on canvas of form or panel too!
I'm sending the project again without the ToolBarButton97.
Try help me again, please!
thanks
Re: [SIMPLEGRAPH] Hiding controls paint on form

Posted:
September 29th, 2011, 9:20 am
by Kambiz
Using Delphi 7, all is fine on my computer.
By the way, when driving a class, always use override keyword for Destroy method to do not hide the base destructor. Check out Destroy method of THeredrograma class.
Re: [SIMPLEGRAPH] Hiding controls paint on form

Posted:
September 30th, 2011, 9:05 pm
by mrbar
Kambiz i use override and inherited on drstroy without sucess too.
Look the steps to reproduce the problem:
1 - run the application and click on "Abrir" button
2 - choose the hered1.her file
* in my computer on this moment part of top panel is hidden.... but to see better
3 - put or open some windows that cover all screen in front the application
4 - now click on application on tray bar.
U will see that all top bar of application is hidden
the same thing not happen with file hered2.
Seens happen just when we have more children on second lane.
Please i need very much of your help, i did all that i knew!
Re: [SIMPLEGRAPH] Hiding controls paint on form

Posted:
October 1st, 2011, 9:23 am
by Kambiz
I followed the steps, but couldn't see any problem.
Whatever it is, it is not related to SG.