darekm wrote:
Attached patch cause that OnSelChange for tComboBox is fired only one time per click

beside I enable some of trace event
Darek


Index: interfaces/gtk/gtkwinapi.inc
===================================================================
--- interfaces/gtk/gtkwinapi.inc        (wersja 8935)
+++ interfaces/gtk/gtkwinapi.inc        (kopia robocza)
@@ -2795,13 +2795,13 @@
       end;
       Self.WordWrap(DC, Str, MaxLength, Lines, NumLines);
- LineWidth := 0;
-      If (Lines <> nil) then begin
+      If (Lines <> nil) and (NumLines>1) then begin
+        LineWidth := 0;
         For J := 0 to NumLines - 1 do begin
           GetTextExtentPoint(DC, Lines[J], StrLen(Lines[J]), AP);
           LineWidth := Max(LineWidth, AP.cX);
         end;
-      end;
+      end else lineWidth:=10000;
       LineWidth := Min(MaxLength, LineWidth);
theRect.Right := theRect.Left + LineWidth;

Are you sure you want to revert this recent change?

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to