[futurebasic] The text in TextField goes up

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2022 : Group Archive : Group : All Groups

From: Eugen Roșu <eugen.rosu@...>
Date: Fri, 21 Jan 2022 13:30:01 +0200

I have a little problem regarding the vertical alignment in a text field.
In the example below, you can see how the text in the first textField goes up whenever I click on it.
Can anyone tell me how to fix this, how to control this vertical displacement.How to set the margins/borders of a text filed.

N.B. - I don’t want to have a focus ring for the 2 edit fields and no borders.


_textField2 = 2

void local fn LoadNibWindow
nibwindow 1, @"Window", @"Window"

textField _textField2,, @"TextField - programaticaly", (20,106,440,20)
ViewSetAutoresizingMask( _textField2, NSViewMinYMargin + NSViewWidthSizable )
TextSetFontWithName( _textField2, @"Lucida Console", 13.0)
end fn

FN LoadNibWindow