Why does Text caption inside combobox look scooted to left lazarus / 31-LCL ---------------------------------------------------------------------- Joanna · 2023-04-18 09:25 This has been bothering me for a long time. I scale the size of the font on the form to the form width. Larger makes larger font, smaller makes smaller font. The ideal width of the combobox is determined by the width of the widest string. If the form is narrow the combobox is constrained to the parent form client width. it all works ok when I drag the form horizontally however when I maximize the form from a size where the font size was made larger, the combobox text looks like it is scooted to the left out of sight with blank space on the right. I is as if the text is still in the area that it occupied with a smaller font size. I have found a way to make the text appear correctly by adding and removing a ' ' to the caption but it makes it flicker horribly as i resize dragging. If i put a hide before changing caption and a show after I'm finished it reduces most of the flicker but this seems very hackish ... Has anyone ever seen this before ? or know a better way to correct the flickering text ? thanks in advance Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i PROCEDURE TCONTROL_HELPER.CONSTRAIN; // the ideal width differs with controlBEGINIF TAG > PARENT.ClientWidth   THEN TAG:= PARENT.ClientWidth;WITH Constraints DO     BEGIN     MinWidth := TAG;     MaxWidth := TAG;     END;END;   PROCEDURE TCONTROL_HELPER.RESIZE_CONTROL; // frames are resized elsewhere BEGIN CONSTRAIN; // adjusts tag to fit parent if necessary IF (Self IS TComboBox) OR (SELF IS TEDIT)    THEN BEGIN       hide;         CAPTION:= CAPTION +' '; //to prevent misplaced caption inside the control         CAPTION:= Trim(CAPTION);   //this works but causes alot of flicker         show; // hide and show reduces most of the flicker         END; END;   I'm using Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64 on windows 7