-
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? -
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.