Subj : Re: radio buttons To : borland.public.cpp.borlandcpp From : Georges Date : Thu Jul 15 2004 11:19 am GZ wrote: >I have an application where I generate radio buttons at run time.Something >like, >RadioButtons[i] = new TRadioButton(this); > RadioButtons[i]->Parent = this; > RadioButtons[i]->Top = 45+ 16*(i%MAX_IN_COLUMN); > RadioButtons[i]->Left = (Column* HORZ_OFFSET) + 15; > Now i need to handle the events generated by these radio buttons. Can >anybody tell me how to go about it. >Thanks >Greg > It's probably naughty but what I do is create them all normally and then use :: ShowWindow(GetDlgItem(IDC_RADIOBUTTONX), SW_HIDE); :: ShowWindow(GetDlgItem(IDC_RADIOBUTTONX), SW_SHOW); as required!! Georges > > > > .