Jump to content

Recommended Posts

Posted

hi,

I created TuniDBRadioGroup from TuniRadioGroup.

But I received error at "Buttons[itemIndex].Focused".

it is defined as property of TCustomRadioGroup in extctrl.pas

I think, it is not defined in TuniRadioGroup.

How Can I correct?

 

bets regards.

 

 

 

 

procedure TuniDBRadioGroup.SetValue(const Value: string);

var

WasFocused: Boolean;

I, Index: Integer;

begin

if FValue <> Value then

begin

FInSetValue := True;

try

WasFocused := (ItemIndex > -1) and (Buttons[itemIndex].Focused);

Index := -1;

for I := 0 to Items.Count - 1 do

if Value = GetButtonValue(I) then

begin

Index := I;

Break;

end;

ItemIndex := Index;

// Move the focus rect along with the selected index

if WasFocused and (ItemIndex <> -1) then

Buttons[itemIndex].SetFocus;

finally

FInSetValue := False;

end;

FValue := Value;

Change;

end;

end;

UniDBRadioGroup.rar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...