TRadioButton의 OnClick 이벤트가 해당하는 액션에 반응하는 이벤트입니다.
아래는 TRadioButton.OnClick 이벤트에 대한 도움말입니다.
Usually OnClick occurs when the user presses and releases the left mouse button with the mouse pointer over the control. This event can also occur when:
The user selects an item in a grid, outline, list, or combo box by pressing an arrow key.
The user presses the SPACEBAR while a button or check box has focus.
The user presses ENTER when the active form has a default button (specified by the Default property).
The user presses ESC when the active form has a cancel button (specified by the Cancel property).
The user presses the accelerator key for a button or check box. For example, if the value of the Caption property of a check box is '&Bold', the B is underlined at run time and the OnClick event of the check box is triggered when the user presses Alt+B. However, focus does not move to the control in these instances.
The Checked property of a radio button is set to true.
The value of the Checked property of a check box is changed.
The Click method of a menu item is called.
첫눈 님이 쓰신 글 :
: 말씀하신 내용은 알겠는데요.
: 그걸 어느 이벤트에서 하느냐가 문제입니다.
: 제가 원하는 것은 키보드로 선택하던 마우스로 선택하던 아니면 다른 어떤 외부프로그램을 이용하여 강제로 선택이 바뀌던
: 하여간 선택이 바뀌면 이벤트가 발생하게 하고 싶은건데요.
:
:
: 太郞 님이 쓰신 글 :
: : 첫눈 님이 쓰신 글 :
: : : Panel위에 RadioButton을 두개 올려 놓았습니다.
: : :
: : : RadioButton을 선택하면 그에 맞는 데이터를 화면에 보여주고자 하는데요.
: : :
: : : 문제는 RadioButton에 onChange나 onSelected이벤트가 없네요.
: : :
: : : 지금까지는 어쩔 수 없이 Click이벤트에서 처리를 했는데
: : : 키보드의 방향키로 RadioButton을 선택하는 경우에는 처리를 할 수가 없습니다.
: : :
: : : RadioButton에서 onChange나 onSelected이벤트를 처리할 수는 없을까요?
: : -------------------------------------------------------------
: : 이런식으로 하면 어떨까요?
: :
: : Case RadioGroup1.ItemIndex Of
: : 0 : Begin
: : Label118.Caption :='이름검색';
: : End;
: : 1 : Begin
: : Label118.Caption :='번호검색';
: : End;
: : End;
|