mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
Improved combo box look with other minor changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19487 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2e5ad2655d
commit
31234d376f
3 changed files with 45 additions and 19 deletions
|
@ -42,7 +42,7 @@ static NSNotificationCenter *nc;
|
|||
An NSComboBox is what we can call a completion/choices box, derived from
|
||||
NSTextField, it allows you to enter text like in a text field but also to click
|
||||
in the ellipsis button (indicating the fact other user inputs are possible) on
|
||||
the right of it to obtain a list of choices whose you can use as the text field
|
||||
the right of it to obtain a list of choices, you can use them as the text field
|
||||
value by selecting a row in this list. You can also obtain direct completion
|
||||
when it is enabled via <code>setCompletes:</code> to get a suggested text
|
||||
field value updated as you type.
|
||||
|
@ -463,4 +463,12 @@ static NSNotificationCenter *nc;
|
|||
[super mouseDown: theEvent];
|
||||
}
|
||||
|
||||
- (void) setFrame: (NSRect)frame
|
||||
{
|
||||
NSRect rect = NSMakeRect(frame.origin.x, frame.origin.y, frame.size.width, 21);
|
||||
// FIX ME: We shouldn't harcode the height value
|
||||
|
||||
[super setFrame: rect];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue