set_window_attrset_window_attrSetWindowAttrSetWindowAttr (Operator)

Name

set_window_attrset_window_attrSetWindowAttrSetWindowAttr — 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)

Beschreibung

set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttr dient zum Setzen von bestimmten Eigenschaften von Graphikfenstern. 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 Titlebar.

Achtung

set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttr muss vor dem Aufruf von open_windowopen_windowOpenWindowOpenWindowOpenWindow aufgerufen werden.

Ausführungsinformationen

Parameter

AttributeNameAttributeNameAttributeNameAttributeNameattributeName (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Name des Attributs, das verändert werden soll.

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

AttributeValueAttributeValueAttributeValueAttributeValueattributeValue (input_control)  string HTupleHTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Attributwert, der gesetzt werden soll.

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

Ergebnis

set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttr liefert den Wert 2 (H_MSG_TRUE), falls die Parameter korrekt sind. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

open_windowopen_windowOpenWindowOpenWindowOpenWindow, set_drawset_drawSetDrawSetDrawSetDraw, set_colorset_colorSetColorSetColorSetColor, set_coloredset_coloredSetColoredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth

Siehe auch

open_windowopen_windowOpenWindowOpenWindowOpenWindow, get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttr, set_window_paramset_window_paramSetWindowParamSetWindowParamSetWindowParam

Modul

Foundation