Problem with a GraphicControl in a GroupBox
Original Reporter info from Mantis: ChP
-
Reporter name: Pierre CHAUVEAU
Original Reporter info from Mantis: ChP
- Reporter name: Pierre CHAUVEAU
Description:
I place a TGraphicControl (a TShape or else) directly on a form and an other one in a TGroupBox. I draw the same things in the two GraphicControl : a line, a Rectangle and a text.
- with Windows XP, the line, the rectangle and the text have the same (and right) place in each of the two GraphicControl,
- with Linux (Ubuntu 11.04), idem as in Windows for the GraphicControl directly placed on the form. But for the GraphicControl placed in the TGroupBox, all the elements drawn are moved leftward (may be 2 pixels) and upward (may be 10 pixels). This deplacement is (seems to be) independant of the place :
- of the elements in the GraphicControl,
- or the place of the GraphicControl in the TGroupBox,
- or the place of the TGroupBox in the frorm.
It looks to be constant.
See little attached program.
Additional information:
The behavior of each GraphicControl is different in the Windows XP OS : the elements of the GraphicControl in the TGroupBox are erased when the mouse enter the TGroupBox.
In the Linux OS, the elements of each of the two GraphicControl are erased only when I maximize or minimize the form.
Mantis conversion info:
- Mantis ID: 20615
- Version: 0.9.30