popup and pulldown menus added to palette

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@6017 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-02-14 07:50:01 +00:00
parent 3ec2072c83
commit bffcf44703
2 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun Feb 14 06:56:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Palettes/2Control/main.m: Add popup and pulldown menu controls
though there is no way to edit them yet.
Sun Feb 6 8:44:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Removed InfoPanel.m and updated Gorm to use standard panel now that

View file

@ -63,6 +63,21 @@
RELEASE(v);
#endif
v = [[NSPopUpButton alloc] initWithFrame: NSMakeRect(10, 60, 80, 20)];
[v addItemWithTitle: @"PopUp1"];
[v addItemWithTitle: @"PopUp2"];
[v addItemWithTitle: @"PopUp3"];
[contents addSubview: v];
RELEASE(v);
v = [[NSPopUpButton alloc] initWithFrame: NSMakeRect(10, 30, 80, 20)];
[v setPullsDown: YES];
[v addItemWithTitle: @"PullDown1"];
[v addItemWithTitle: @"PullDown2"];
[v addItemWithTitle: @"PullDown3"];
[contents addSubview: v];
RELEASE(v);
v = [[NSTextField alloc] initWithFrame: NSMakeRect(100, 160, 80, 20)];
[v setEditable: NO];
[v setSelectable: NO];