get_window_attrget_window_attrGetWindowAttrGetWindowAttr (Operator)

Name

get_window_attrget_window_attrGetWindowAttrGetWindowAttr — Lesen von Fenstereigenschaften.

Signatur

get_window_attr( : : AttributeName : AttributeValue)

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

Herror T_get_window_attr(const Htuple AttributeName, Htuple* AttributeValue)

void GetWindowAttr(const HTuple& AttributeName, HTuple* AttributeValue)

static HTuple HSystem::GetWindowAttr(const HString& AttributeName)

static HTuple HSystem::GetWindowAttr(const char* AttributeName)

static HTuple HSystem::GetWindowAttr(const wchar_t* AttributeName)   (Nur Windows)

static void HOperatorSet.GetWindowAttr(HTuple attributeName, out HTuple attributeValue)

static HTuple HSystem.GetWindowAttr(string attributeName)

Beschreibung

get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttr dient zum Auslesen von Eigenschaften von Graphikfenstern, die mit set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttr gesetzt wurden. Folgende Parameter eines Fenster können ausgelesen werden:

'border_width'

Breite des Fensterrandes in Pixel.

'border_color'

Farbe des Fensterrandes.

'background_color'

Hintergrundfarbe des Fensters.

'window_title'

Name des Fensters in der Titlebar.

Ausführungsinformationen

Parameter

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

Name des Attributs, das gelesen 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 (output_control)  string HTupleHTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Attributwert.

Ergebnis

get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttr 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, set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttr

Modul

Foundation