Конференция "KOL" » Text selection bug
 
  • Jon © (06.01.11 21:39) [0]
    Editbox selection seems to be broken.
    This example works in KOL v2.xx:


    program Test;

    uses KOL;

    var Editbox, Button: PControl;

    procedure ButtonClick(Dummy: Pointer; Sender: PObj);
    begin
     if Editbox.DoSetFocus then
       Editbox.SelectAll;
    end;

    begin
     Applet := NewForm(nil, 'Test');
     Editbox := NewEditbox(Applet, [eoReadonly, eoMultiline]);
     with Editbox^ do
     begin
       Color := clWindow;
       Text := 'Click button' + #$0D#$0A + 'to select' + #$0D#$0A + 'all text.';
     end;
     Button := NewButton(Applet, 'Select All');
     with Button^ do
     begin
       PlaceDown;
       OnClick := TOnEvent(MakeMethod(nil, @ButtonClick));
     end;
     Run(Applet);
    end.

  • Vladimir Kladov © (06.01.11 22:35) [1]
    Fixed, in KOL.pas (KOL.zip).
  • Jon © (06.01.11 22:46) [2]
    Thank you (yet again).
 
Конференция "KOL" » Text selection bug
Есть новые Нет новых   [134430   +2][b:0][p:0.001]