Конференция "KOL" » Bug with SetRadioChecked?
 
  • Jon © (10.03.10 16:18) [0]
    I can only use SetRadioChecked when AutoSize is True.
    Simple demonstation program:


    program Test;

    uses KOL;

    begin
    Applet := NewForm(nil,'KOL Radiobox Check Bug').SetClientSize(320,240);
    NewRadiobox(Applet,'Item 1').PlaceDown;
    NewRadiobox(Applet,'Item 2').PlaceDown.{AutoSize(True).}SetRadioChecked;
    NewRadiobox(Applet,'Item 3').PlaceDown;
    Run(Applet);
    end.



    Is this a bug?
  • Vladimir Kladov © (10.03.10 16:45) [1]
    A handle for window is not yet created.

    program Test;

    uses KOL;

    var I2: PControl;

    begin
    Applet := NewForm(nil,'KOL Radiobox Check Bug').SetClientSize(320,240);
    NewRadiobox(Applet,'Item 1').PlaceDown;
    I2 := NewRadiobox(Applet,'Item 2').PlaceDown;
    NewRadiobox(Applet,'Item 3').PlaceDown;
    I2.GetWindowHandle;
    I2.{AutoSize(True).}SetRadioChecked;
    Run(Applet);
    end.

  • Jon © (10.03.10 17:49) [2]
    Ah, a handle, thank you very much sir.
 
Конференция "KOL" » Bug with SetRadioChecked?
Есть новые Нет новых   [134431   +10][b:0][p:0.001]