Hi, I am in the process of creating a few Canvas-based custom controls. On the Canvas' Paint event I call a method that uses g.DrawRect, g.FillRect, g.DrawLine and g.DrawString to form the custom control. like a keypad.
This all works as expected when I place this control on a window. I also place some of these in GroupBox on the same window. I.e., the parent of these controls in now the GroupBox. So far so good. The problem now: if I click on another window on the screen, so that now the focus is no longer on the RB window, the custom controls in the GroupBox become invisible, but not the others directly on the window. Returning focus to the RB window does not refresh the invisible controls. The only way to do that is to click inside the GroupBox. I tried to place 'Self.refresh' in the Windows Avtivate event. That made it worse: Now the custom controls in the GroupBox are invisible at program launch. So, the question: why does this happen? What can I do to prevent that? Thanks for any guidance on this. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
