Hi
I am pretty sure it's something I have set on a control or something, But I have now hit a brick wall trying to work it out. SO I hope someone can shed some light on what settings is causing the Problem.
I have a panel that has controls on it, and I am trying to adjust the panel height so that the non-active controls are not displayed.
However when I change the Pane.height the controls get all shifted and display incorrectly.
Below code trying to work the problem shows a control.top on the panel changing.
showmessage('Control Top Before Height Adjusted:'+inttostr(bank_cat_000.Top)); // This display 24 as is the top control on the panel. which is correct
Banks_Popup_Panel.Height:=200; // Now adjusting the height of panel to crop the bottom section
application.processmessages;
showmessage('Control Top After Height Adjusted:'+inttostr(bank_cat_000.Top)); // This now display -10 Why?
Unfortunately I cannot upload the whole application, the Panel has components that are created at runtime, I can move the panel around the form and all controls stay intact, but when I change the Panel Height. everything gets messed up.
I am hoping that it is a setting with component creation rather than a bug.
Hoping someone can help and help.