sgx - include für screen gagdets
Verfasst: 29.01.2008 17:12
sgx ist eine include, mit der man einfache gadgets im screen erstellen und verwalten kann.
doku ist leider nur in englisch.
zum kennenlernen am besten anfangen mit sgxDoc\sgx.html und weiter mit den beispielen im selben ordner.
für die letzten beiden updates siehe dieser post
screenshot
download 1.3mb
doku ist leider nur in englisch.
zum kennenlernen am besten anfangen mit sgxDoc\sgx.html und weiter mit den beispielen im selben ordner.
für die letzten beiden updates siehe dieser post
screenshot
download 1.3mb
sgx is a screen-gadget library for PureBasic programmers to create and manage simple GUI-elements in a fullscreen or windowed screen.
it's available as sourcecode to be included in your projects. it's currently only available for Windows Operating Systems (though the code is pretty straight PB code). there are two versions: a single-file version that only contains the necessary files to just use sgx and a multi-file version in case you want to make changes to the sgx code, including the gimp files for the image files and some tools to build a single-file version from that.
with this library you can create simple GUI objects statically or dynamically of different type and appearance, modify them, display them easily, examine user actions and process events. sgx elements are accessed by ID (index-like, starting with index 1). the appearance is defined by designs, whereas you can create own designs with sets of images (there is also an instant design "lowbudget" which does not need any image files). currently there is no event queue, you will recognize events by checking for fields of your sgx elements.
currently available gadget types:
- sgxCursor
- sgxButton (including toggle buttons and buttons with a user sprite)
- sgxText
- sgxCheckbox
- sgxCombo
- sgxScrollbar
- sgxTrackbar
- sgxEdit
- sgxWin
- sgxTable
- sgxSpriteGadget
- sgxArea
- option gadgets / radio buttons are available through grouping
the documentation includes
- a quick start (sgxDoc\sgx.html)
- a full reference (sgxDoc\sgxDocFull.html)
- a smaller reference (sgxDoc\sgxDoc.html) without sgx internals (some links to sgx internals may not work in that document thought!)
- examples in the directory 'sgxDoc\'
- _README.TXT contains further informations
[...]
thanks to the PureBasic team and the community / the forums.