ComboBox Höhe

Eine ComboBox hat per Default 20 Pixel Höhe, ein Textfield aber 22 Pixel.
Stehen die nebeneinander, sieht es blöd aus.
Ich frage mich jetzt nur, was ist die korrekte Default Höhe für diese Controls?

Auf die Höhe von Comboboxen hast man keinen Einfluss, das ist so ein Cocoa-Ding (genau wie bei Popup-Menüs). Steht übrigens auch so in der Doku (http://documentation.xojo.com/index.php/ComboBox).

[quote]OS X Cocoa limits ComboBox height to just a single size. Any changes to the Height property are ignored.
[/quote]

Wenn Du eine Mac only Lösung brauchst, dann schau Dir mal die NSComboBoxMBS an.

ich würde die Combobox einfach ein Pixel tiefer setzen.

No only on mac, on windows the same. It is what it is by O.S.
I just try to avoid having textbox and combo nest to eachother on a form, and if not possible I do what Christian sugests, line out on top.

No only on mac, on windows the same. It is what it is by O.S.
I just try to avoid having textbox and combo next to eachother on a form, and if not possible I do what Christian sugests, line out on top.

Du kannst mit NSView setFrameSize: die Höhe verändern, musst aber wahrscheinlich danach mit einem NSAttributedString then text anpassen, weil der angezeigte Text höchstwahrscheinlich innerhalb der CombBox am unteren Rand klebt.

Ok, wie würde das gehen, habe keine Ahnung, wie ich das anwende?