Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation from source code
Components
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.clipper2
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.db2
gb.db2.form
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.stock
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
gb.gtk.opengl
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.opengl
gb.gui.qt
gb.gui.qt.ext
gb.gui.qt.opengl
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.highlight
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.jit
gb.libxml
gb.logging
gb.map
gb.markdown
gb.media
gb.media.form
gb.memcached
gb.mime
gb.mongodb
gb.mysql
gb.ncurses
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webkit
gb.qt5.webview
gb.qt6
gb.qt6.ext
gb.qt6.opengl
gb.qt6.webview
gb.report
gb.report2
gb.scanner
gb.sdl
gb.sdl.sound
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Last Changes
Learning topics
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

Style (gb.gui.base)

This class reimplements Style in gb.qt4.

This class is static.

Constants
ShapeCircle  
Since 3.21
Constant that represents a very round border shape.
ShapeDefault  
Since 3.21
Constant that represents the default border shape.
ShapeFlat  
Since 3.21
Constant flag that indicates a flat background.
ShapeHideBottom  
Since 3.21
Constant flag that indicates that the bottom border is hidden.
ShapeHideLeft  
Since 3.21
Constant flag that indicates that the left border is hidden.
ShapeHideRight  
Since 3.21
Constant flag that indicates that the right border is hidden.
ShapeHideTop  
Since 3.21
Constant flag that indicates that the top border is hidden.
ShapeRound  
Since 3.21
Constant that represents a round border shape.
ShapeSmooth  
Since 3.21
Constant that represents a slight round border shape.
ShapeSquare  
Since 3.21
Constant that represents a square border shape.
ShapeSquareBottom  
Since 3.21
Constant flag that indicates that the bottom border is not rounded.
ShapeSquareLeft  
Since 3.21
Constant flag that indicates that the left border is not rounded.
ShapeSquareRight  
Since 3.21
Constant flag that indicates that the right border is not rounded.
ShapeSquareTop  
Since 3.21
Constant flag that indicates that the top border is not rounded.

Inherited constants
Active   This flag is not used at the moment.
Default  
Since 3.19
This flags tells the Style routine to use the current painted control (if it exists) as a context.
Disabled   This flag indicates that a control is disabled.
HasFocus   This flag indicates that a control has the focus.
Hovered   This flag indicates that the mouse cursor is inside the control.
Normal   This flag indicates that a control is not disabled, does not have the focus, and is not hovered by the mouse cursor.

Static properties
BorderRadius  
Since 3.21
Return the radius of the styled borders in pixels.
BorderSize  
Since 3.21
Return the size of the styled borders in pixels.
Color  
Since 3.21
Return or set the highlight color of the styled borders.
Flat  
Since 3.21
Return or set if the styled borders are drawn with a filled shape instead of a stroke one.
FramedSelection  
Opacity  
Since 3.21
Return or set the opacity of the styled borders.
ScrollBarSize  
ScrollBarSpacing  
Shadows  
Shape  
Since 3.21
Return or set the shape used by styled control border.

Inherited static properties
BoxFrameHeight   Return the height of a textbox (or editable ComboBox) frame.
BoxFrameWidth   Return the width of a textbox (or editable ComboBox) frame.
FrameWidth   Return the width of a panel frame.
Name   Return the name of the current widget style, or theme, or whatever you like calling that.
TextBoxFrameWidth   Return the frame width of a textbox control.

Static methods
ClipBackground  
Since 3.21
Clip the current painter to the shape of a styled background.
PaintBackground  
Since 3.21
Paint a styled background.
PaintSelection  
Since 3.21
Paint a styled selection rectangle.

Inherited static methods
BackgroundOf   Return the actual background color of the control that must be used when drawing it.
ForegroundOf   Return the actual foreground color of the control that must be used when drawing it.
PaintArrow   Draws an arrow.
PaintBox   Draws a box frame.
PaintButton   Draws a push button frame.
PaintCheck   Draws a check box.
PaintHandle   Draws a splitter or toolbar handle.
PaintOption   Draws an option button.
PaintPanel   Draws a panel frame.
PaintSeparator   Draws a toolbar separator.
StateOf   Return the state of a control as a sum of the following flags: