38 if (header_separator_ != header_separator_) {
54 if (show_date_ != value) {
68 if (show_time_ != value) {
79 name(
"9f5767d6-7a21-4ebe-adfe-2427b2024a55");
80 text_.
name(
"d014d407-851c-49c1-a343-3380496a639a");
127 auto now = std::chrono::system_clock::now();
128 text_.
append_text(
xtd::ustring::format(format_, now, (std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch())).count() % 1000000, header_separator_));
129 need_header_ =
false;
141 if (need_header_ != value)
142 need_header_ = value;
149 void update_format() {
151 if (show_date_ && show_time_) format_ =
"{0:u}.{1:D6}{2}" + format_;
152 else if (show_date_) format_ =
"{0:L}-{0:k}-{0:i}{2}" + format_;
153 else if (show_time_) format_ =
"{0:t}.{1:D6}{2}" + format_;
156 bool need_header_ =
true;
157 bool show_date_ =
true;
158 bool show_time_ =
true;
static font_family generic_monospace()
Gets a generic monospace font_family.
Definition font_family.h:64
Defines a particular format for text, including font face, size, and style attributes....
Definition font.h:39
static xtd::ustring new_line()
Gets the newline string defined for this environment.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
virtual bool multiline() const
Gets a value indicating whether this is a multiline text box control.
Definition text_box_base.h:73
virtual bool word_wrap() const
Indicates whether a multiline text box control automatically wraps words to the beginning of the next...
Definition text_box_base.h:132
virtual bool read_only() const
Gets a value indicating whether text in the text box is read-only.
Definition text_box_base.h:90
Represents a standard Windows text box.
Definition text_box.h:22
void append_text(const xtd::ustring &value) override
Appends text to the current text of a text box.
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:48
Contains xtd::drawing::font_family class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::forms::text_box control.