I would need 3 groups of independent radiobuttons.
I use a resource. How can I group the buttons?
Could someone help me please.
Thanks in advance
Otto
I would need 3 groups of independent radiobuttons.
I use a resource. How can I group the buttons?
Could someone help me please.
Thanks in advance
Otto
REDEFINE RADIO cField1 ID 101,102,103 OF oDlg
REDEFINE RADIO cField2 ID 104,105,106 OF oDlg
REDEFINE RADIO cField3 ID 107,108,109 OF oDlgRegards,
Michel D.
Genk (Belgium)
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773
Hello Michael,
thank you very much.
Best regards,
Otto
Otto:
Also try to switch on the tab stop attribute to the first radio button of each group.
Regards
// RESOURCE SCRIPT generated by "Pelles C for Windows, version 5.00".
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
1001 DIALOGEX DISCARDABLE 6, 18, 210, 142
STYLE DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 0, 0, 1
{
CONTROL "OK", IDOK, "Button", WS_TABSTOP, 160, 5, 45, 15
CONTROL "Cancel", IDCANCEL, "Button", WS_TABSTOP, 160, 23, 45, 15
CONTROL "Radio-button", 4001, "Button", BS_AUTORADIOBUTTON|WS_GROUP|WS_TABSTOP, 8, 32, 56, 10
CONTROL "Radio-button", 4002, "Button", BS_AUTORADIOBUTTON, 8, 48, 56, 10
CONTROL "Radio-button", 4003, "Button", BS_AUTORADIOBUTTON, 8, 64, 56, 10
CONTROL "Radio-button", 4004, "Button", BS_AUTORADIOBUTTON|WS_GROUP|WS_TABSTOP, 84, 48, 56, 10
CONTROL "Radio-button", 4005, "Button", BS_AUTORADIOBUTTON, 84, 64, 56, 10
}