Removed RadioGroup and fixed the "Create" of the AppShell

This commit is contained in:
rods 1998-07-06 21:36:17 +00:00
Родитель 1f5b3b6c21
Коммит 06687231b6
1 изменённых файлов: 3 добавлений и 9 удалений

Просмотреть файл

@ -417,7 +417,9 @@ nsresult CreateApplication()
// Create an application shell
nsIAppShell *appShell;
NSRepository::CreateInstance(kCAppShellCID, nsnull, kIAppShellIID, (void**)&appShell);
appShell->Create();
int argc;
char ** argv = nsnull;
appShell->Create(&argc, argv);
//
// create the main window
@ -438,17 +440,10 @@ nsresult CreateApplication()
// Add the scribble/lines section
//
//
// create a Radio Group
//
NSRepository::CreateInstance(kCRadioGroupCID, nsnull, kIRadioGroupIID, (LPVOID*)&(scribbleData.group));
scribbleData.group->SetName(nsString("Group1"));
// create the "Scribble" check button
rect.SetRect(50, 50, 100, 25);
NSRepository::CreateInstance(kCRadioButtonCID, nsnull, kIRadioButtonIID, (LPVOID*)&(scribbleData.scribble));
scribbleData.scribble->SetRadioGroup(scribbleData.group);
scribbleData.scribble->Create(controlPane, rect, NULL, NULL);
nsString cbLabel("Scribble");
scribbleData.scribble->SetLabel(cbLabel);
@ -460,7 +455,6 @@ nsresult CreateApplication()
rect.SetRect(50, 75, 100, 25);
NSRepository::CreateInstance(kCRadioButtonCID, nsnull, kIRadioButtonIID, (LPVOID*)&(scribbleData.lines));
scribbleData.lines->SetRadioGroup(scribbleData.group);
scribbleData.lines->Create(controlPane, rect, NULL, NULL);
nsString cbLabel1("Lines");
scribbleData.lines->SetLabel(cbLabel1);