csSimple Combobox Will not resize in IDE at design time but only after project reload (fix suggestion attached)
Original Reporter info from Mantis: jamie @jamie
-
Reporter name: jamie philbrook
Original Reporter info from Mantis: jamie @jamie
- Reporter name: jamie philbrook
Description:
Combobox in csSImple will not size while in the IDE at design time until project reload and a fix has been found to work very nicely posted by another that I can't remember now, sorry for that..
Steps to reproduce:
Drop a Combobox on the form, set the style to csSimple and try to drag its box larger veritically…
Now save the project and reload, you will now be able to size it until you change the style again, this only happens in the IDE.
Below is the Fix, can some one apply it, I have had bad luck trying to get the trunk setup here so I can generate patches.. sorry.
See additional INFO
Interface file "Win32WSStdCtrls"
class procedure TWin32WSCustomComboBox.SetStyle(const ACustomComboBox: TCustomComboBox; NewStyle: TComboBoxStyle);
begin
RecreateWnd(ACustomComboBox);
if (NewStyle = csSimple) and (csDesigning in ACustomComboBox.ComponentState) then //Added
ACustomComboBox.Constraints.SetInterfaceConstraints(0,0,0,0); // ADDED
end;
This corrects the IDE design time behavior Thank you.
Mantis conversion info:
- Mantis ID: 37679
- Build: current and Trunk
- Version: 2.0.10
- Fixed in revision: 63857 (#b4cc95fc)