Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSTextFieldCellMBS class

Super class: NSActionCellMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The text field class for using as NSCell.
Example:
// ask for the textfield behind the label
dim n as NSTextFieldMBS = NSTextFieldMBS(label1.NSViewMBS)

// query cell
dim c as NSTextFieldCellMBS = n.cell

// and set background style
c.backgroundStyle = NSTextFieldCellMBS.NSBackgroundStyleRaised
Notes:
The NSTextFieldCell class adds to the text display capabilities of the NSCell class by allowing you to set the color of both the text and its background. You can also specify whether the cell draws its background at all.

All of the methods declared by this class are also declared by the NSTextField class, which uses NSTextFieldCell objects to draw and edit text. These NSTextField cover methods call the corresponding NSTextFieldCell methods.

Placeholder strings, set using PlaceholderString or PlaceholderAttributedString, now appear in the text field cell if the actual string is "". They are drawn in grey on the cell.
Subclass of the NSActionCellMBS class.

Feedback, Comments & Corrections

Super class NSActionCellMBS

Super class NSCellMBS

Sub classes:

Some events for this class:

Some examples which use this class:


The items on this page are in the following plugins: MBS MacCocoa Plugin, MBS MacControls Plugin.


NSTextContainerMBS   -   NSTextFieldMBS




Links
MBS Xojo tutorial videos