40 MFXDynamicLabel(FXComposite* p,
const FXString& text, FXIcon* ic = 0, FXuint opts = LABEL_NORMAL, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0, FXint pl = DEFAULT_PAD, FXint pr = DEFAULT_PAD, FXint pt = DEFAULT_PAD, FXint pb = DEFAULT_PAD, std::string indent =
"- ");
45 void setText(
const FXString& text);
48 long onUpdate(FXObject* sender, FXSelector,
void*);
51 void position(FXint x, FXint y, FXint w, FXint h);
void reformatLineBreaks(const int curWidth)
reformat line breaks
MFXDynamicLabel()
fox needs this
int myPreviousWidth
previous width
MFXDynamicLabel & operator=(const MFXDynamicLabel &)=delete
Invalidated assignment operator.
void setText(const FXString &text)
overload text label updates to store the original string as backup for when width changes again
void position(FXint x, FXint y, FXint w, FXint h)
overload position to be informed when the parent has done the layout
virtual ~MFXDynamicLabel()
MFXDynamicLabel(const MFXDynamicLabel &)=delete
Invalidated copy constructor.
void computeIndentation()
compute indentation
long onUpdate(FXObject *sender, FXSelector, void *)
overload to be informed when the label text has to be reformatted due to width changes
MFXDynamicLabel(FXComposite *p, const FXString &text, FXIcon *ic=0, FXuint opts=LABEL_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD, std::string indent="- ")
Construct label with given text and icon.
std::string myOriginalString
original string
std::string myIndentString
indent string