[SIMPLEGRAPH] Hiding controls paint on form

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

[SIMPLEGRAPH] Hiding controls paint on form

Postby mrbar » September 21st, 2011, 9:17 pm

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!
Attachments
_Heredrogram.zip
Heredrogram Source Project
(108.58 KiB) Downloaded 30 times
mrbar
Active Member
Active Member
 
Posts: 7
Joined: August 8th, 2011, 1:27 pm

Re: [SIMPLEGRAPH] Hiding controls paint on form

Postby dec » September 23rd, 2011, 2:03 pm

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?
dec
Senior Member
Senior Member
 
Posts: 53
Joined: July 17th, 2011, 12:33 am

Re: [SIMPLEGRAPH] Hiding controls paint on form

Postby Kambiz » September 23rd, 2011, 6:39 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: [SIMPLEGRAPH] Hiding controls paint on form

Postby mrbar » September 23rd, 2011, 7:49 pm

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
mrbar
Active Member
Active Member
 
Posts: 7
Joined: August 8th, 2011, 1:27 pm

Re: [SIMPLEGRAPH] Hiding controls paint on form

Postby mrbar » September 28th, 2011, 9:44 pm

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
Attachments
_Heredrogram.zip
(109.2 KiB) Downloaded 31 times
mrbar
Active Member
Active Member
 
Posts: 7
Joined: August 8th, 2011, 1:27 pm

Re: [SIMPLEGRAPH] Hiding controls paint on form

Postby Kambiz » September 29th, 2011, 9:20 am

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: [SIMPLEGRAPH] Hiding controls paint on form

Postby mrbar » September 30th, 2011, 9:05 pm

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!
mrbar
Active Member
Active Member
 
Posts: 7
Joined: August 8th, 2011, 1:27 pm

Re: [SIMPLEGRAPH] Hiding controls paint on form

Postby Kambiz » October 1st, 2011, 9:23 am

I followed the steps, but couldn't see any problem.
Whatever it is, it is not related to SG.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest