Functions and Macros |
---|
sgx(index) - use this macro to access the structure of your sgx elements.
|
sgxNew(id) - create a new sgx object.
|
sgxInBounds(index) - returns #True if 'index' is within bounds of the basic sgx element array, otherwise it returns #False.
|
sgxSetCurrentParent(id) - set the parent for coming creations of new sgx elements.
|
sgxSetParent(id, parent) - sets or changes the parent of an sgx element.
|
sgxEach(it) - use this macro to iterate through the elements.
|
sgxMoveOnTop(id) - make an sgx window (#sgxTypeWin) active and foreground or move an element above its siblings.
|
sgxGetElementAt(x, y) - returns the ID of the topmost sgx element at the given position on screen, or -1 if no sgx element is found there.
|
sgxGetTopLevel(id) - returns the ID of the topmost parent.
|
sgxMove(id, x, y, relative = #True) - change the position of an sgx element.
|
sgxSetDisabled(id, disabled = #True) - disable or enable an sgx element.
|
sgxResize(id, w, h) - change the size of an sgx element.
|
sgxCloseLevel(closeAllLevels = #False) - call this function when you finished the creation of a window or table and it's childs.
|
sgxDebugElem.s(id, multiline = #False) - returns a string with information about the element's attributes.
|
sgxDebugTree.s(id = -1) - returns a string with information about the elements attributes and their hierarchy.
|
sgxSetFont(font) - set the font for coming creations of new sgx elements.
|
sgxSetGroup(id, groupID) - add an sgx element to a radio group.
|
sgxGetGroup(id) - returns the groupID of an sgx element, or -1 if the element does not belong to a radio group.
|
sgxSetDimensions(width, height) - tell sgx about the screen dimensions you use.
|
sgxFree(id) - free / delete an sgx element, including childs.
|
sgxFreeChildsOf(parent) - free / delete all childs of an sgx element, including their own childs.
|
sgxSetShow(id, show, recursively = #True, ignoreWindows = #True) - shows or hides an element.
|
sgxMinimizeWin(id) - initializes minimizing of window.
|
sgxRestoreWin(id) - initializes restoring of window.
|
sgxCloseWin(id) - initializes closing of a window and it's child windows.
|
sgxPresentWin(id) - initializes presenting of a window and it's child windows.
|
sgxSetWinAnimStyle(winState, winAnimStyle) - configures window animations.
|
sgxSetTextcursorType(textcursorType) - changes the type of the textcursor used by sgxEdit elements.
|
sgxSetText(id, text.s) - changes the text of an sgx element and refreshes it.
|
sgxSetResizable(id, resizable = #True) - make an element resizeable via the mouse.
|
sgxSetMinSize(id, minWidth, minHeight) - set the minimum size allowed for manually resizing elements via mouse.
|
sgxSetScrollMax(id, max) - change the range of a scrollbar/trackbar.
|
sgxSetState(id, state, handleRadioGroups = #True, *changed.sgxS_ListWrapper = 0) - changes the state of an sgx element and refreshes it if necessary.
|
sgxSetEmsContainer(*emsContainer.Integer) - tell sgx about your 'ems' variable.
|
sgxSetDesign(*design.sgxS_Design, id = -1) - set the design for coming creations of new sgx elements, or change the design of an sgx element.
|
sgxSetAlpha(alpha, id = -1, recursive = #False) - set the alpha value for coming creations of new sgx elements (default alpha is 255, no transparency), or change the alpha value of an sgx element.
|
sgxCell(table, i, k) - use this macro to access the structure of your sgx elements if they are cells of a table and you want to access them via their position in the table.
|
sgxCellId(table, i, k) - returns the ID of a table-cell, or 0 for empty cells or if it fails, which happens if table is not a valid sgx table element or if the coordinates are out of the table's dimensions.
|
sgxCellAssign(i, k, id, table = -1) - assigns an sgx element to a cell of a table or removes it.
|
sgxSetKeyboardLayout(layout = #sgxKeyLayQwerty, keystrokeDelay_1 = 280, keystrokeDelay_2 = 40) - configure keyboard layout and keystroke delay used by sgxEdit elements (via sgx_keyboardEdit).
|
sgxLoadDesign(design.s = "lowbudget", basecolor = -1) - loads a design.
|
sgxRefreshDesign(*design.sgxS_Design) - refresh the design.
|
sgxCursor(id) - creates an sgx cursor element and returns it's ID.
|
sgxButton(id, x, y, w, h, text.s, toggle = #sgxStateNone, sprNr = -1, x2 = 5, y2 = 5) - creates an sgx button element and returns it's ID.
|
sgxCheckbox(id, x, y, w, h, checked = #sgxStateOff, text.s = "", align = #sgxAlignCheckboxTextRight) - creates an sgx checkbox element and returns it's ID.
|
sgxScrollbar(id, x, y, w, h, w2, h2, max, state = 0, style = 0) - creates an sgx scrollbar element and returns it's ID.
|
sgxTrackbar(id, x, y, w, h, w2, h2, max, state = 0, style = #sgxStyleGrid) - creates an sgx trackbar element and returns it's ID.
|
sgxEdit(id, x, y, w, h, text.s = "", maxLines = -1) - creates an sgx edit element and returns it's ID.
|
sgxWin(id, x, y, w, h, text.s = "", style = 0) - creates an sgx window element and returns it's ID.
|
sgxSpriteGadget(id, x, y, sprNr) - creates an sgx sprite container and returns it's ID.
|
sgxArea(id, x, y, w, h) - creates an sgx area container and returns it's ID.
|
sgxTip(id, text.s) - creates a tooltip for an sgx element.
|
sgxCombo(id, x, y, w, h, text.s = "") - creates an sgx combo element and returns it's ID.
|
sgxText(id, x, y, w = -1, h = -1, text.s = "", style = 0, margin = 3, textalign = #sgxAlignTextLeft, wordwrap = #False) - creates an sgx text element and returns it's ID.
|
sgxTable(id, x, y, columns, lines, margin, style = #sgxStyleGrid) - creates an sgx table element and returns it's ID.
|
sgxRefreshAll() - refresh all existing sgx elements, if you modified the design for instance.
|
sgxRefresh(id, mode = #sgx_refreshNormalWithTip) - refresh an sgx element.
|
sgxExamine(mousex = -1, mousey = -1) - process actions / events and update the field data of all sgx element.
|
sgxDisplay() - display all sgx element on screen.
|
sgxDisplayCursor() - display the sgx mouse cursor on screen.
|
sgxDisplayID(id) - display an sgx element on screen.
|