Posted by Barbara Brazil on May 19, 2005 at 08:22:45:
In Reply to: Win Programming posted by Tom Fulton on May 19, 2005 at 07:47:56:
Tom:
Aligning the controls relative to one another is one of the great features of Dev Studio. Select all of your radio buttons the same way you'd select multiple file names from Explorer - holding down CTL after the first one. Then click on FORMAT, then ALIGN from the Dev Studio menu. There are several options for alignment. The last control you selected will be the one the others are aligned to.
The control IDs are kept in the ".h" file. So, if your project is called MyDialog, look in MyDialog.h and you'll see them. I'd be careful about changing them though. It also keeps track of the next available ID so you'd need to adjust that too perhaps. If you're just trying to determine which of a radio button group was clicked, you do it like this:
cosCtlId = IDC.FIRSTBUTTON !First button of group
cosCtlIdEx = IDC.LASTBUTTON ! Last button of group
gosub COS.GetCheckedRadioBtn
After return from GOSUB, cosItemId will contain the ID of the selected button.
bb