Re: Win Programming


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

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


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]