Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

True control refresh...

Status
Not open for further replies.

rcloutie

Programmer
May 26, 2005
164
CA
Hi there,

I've built a VCL based on TPanel which define a new property 'Transparent'. When first opening the form, all is ok but if the app is minimized and then restored, the paint operation doesn't work fine (some area are not refreshed properly).

I've tried to call Invalidate, InvalidateRect, Refresh, Repaint, UpdateControl, SendMessage(WM_SETREDRAW)... nothing works. Except if I call hide and show for each child controls. But it is really slow...

Is there any to really refresh a control no matter what...

Thanks in advance,

RC
 
show some code, the problem could lie elsewhere...

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Hi,

As you said, the problem lies in the TPageControl rather than in the transparent TPanel. The only control which have paint problem is a VCL based on TPageControl control (I tried the original one and the same problem occurs, with or without OwnerDraw set).

Also, I've tried all method to refresh the control (check 1st post) within the Form paint event without result...

Thanks for reply,

RC
 
Another thing...

The problem is solved if I remove the line
Params.ExStyle := Params.ExStyle or WS_EX_TRANSPARENT;
in the CreateParams procedure of my Transparent Panel.

But I want to keep it, it's all about that... :~\

Thanks for help,

RC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top