set_window_attrset_window_attrSetWindowAttrSetWindowAttrset_window_attr (Operator)

Name

set_window_attrset_window_attrSetWindowAttrSetWindowAttrset_window_attr — Setzen von Fenstereigenschaften.

Signatur

set_window_attr( : : AttributeName, AttributeValue : )

Herror set_window_attr(const char* AttributeName, const char* AttributeValue)

Herror T_set_window_attr(const Htuple AttributeName, const Htuple AttributeValue)

void SetWindowAttr(const HTuple& AttributeName, const HTuple& AttributeValue)

static void HSystem::SetWindowAttr(const HString& AttributeName, const HTuple& AttributeValue)

static void HSystem::SetWindowAttr(const HString& AttributeName, const HString& AttributeValue)

static void HSystem::SetWindowAttr(const char* AttributeName, const char* AttributeValue)

static void HSystem::SetWindowAttr(const wchar_t* AttributeName, const wchar_t* AttributeValue)   (Nur Windows)

static void HOperatorSet.SetWindowAttr(HTuple attributeName, HTuple attributeValue)

static void HSystem.SetWindowAttr(string attributeName, HTuple attributeValue)

static void HSystem.SetWindowAttr(string attributeName, string attributeValue)

def set_window_attr(attribute_name: str, attribute_value: Union[str, int]) -> None

Beschreibung

set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr dient zum Setzen von bestimmten Eigenschaften von Grafikfenstern. Damit können folgende Defaultparameter eines Fenster verändert werden:

'border_width'

Breite des Fensterrandes in Pixel. Nicht implementiert unter Windows.

'border_color'

Farbe des Fensterrandes. Nicht implementiert unter Windows.

'background_color'

Hintergrundfarbe des Fensters.

'window_title'

Name des Fensters in der Titelleiste.

Achtung

set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr muss vor dem Aufruf von open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window aufgerufen werden.

Ausführungsinformationen

Parameter

AttributeNameAttributeNameAttributeNameAttributeNameattributeNameattribute_name (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name des Attributs, das verändert werden soll.

Werteliste: 'background_color'"background_color""background_color""background_color""background_color""background_color", 'border_color'"border_color""border_color""border_color""border_color""border_color", 'border_width'"border_width""border_width""border_width""border_width""border_width", 'window_title'"window_title""window_title""window_title""window_title""window_title"

AttributeValueAttributeValueAttributeValueAttributeValueattributeValueattribute_value (input_control)  string HTupleUnion[str, int]HTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Attributwert, der gesetzt werden soll.

Werteliste: 0, 1, 2, 'MyName'"MyName""MyName""MyName""MyName""MyName", 'black'"black""black""black""black""black", 'default'"default""default""default""default""default", 'white'"white""white""white""white""white"

Ergebnis

set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr liefert den Wert TRUE, falls die Parameter korrekt sind. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width

Siehe auch

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttrget_window_attr, set_window_paramset_window_paramSetWindowParamSetWindowParamSetWindowParamset_window_param

Modul

Foundation