Difference between revisions of "Gambas/libraries/gb.qt"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(moved form-state events to Form page)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
http://tettagonaltd.blog.creep.ru/
+
==About==
http://mistrarmonrn.blog.creep.ru/
+
{{l/same|gb.qt}} is a [[Gambas]] [[../|library]] which provides functions for displaying and handling [[form (GUI)|form]]s; it uses the [[Qt]] graphical library.
http://concubenecon.blog.ziza.ru/
+
 
http://lootballerlo.blog.ziza.ru/
+
Related libraries:
http://bloomybritai.blog.ziza.ru/
+
* {{l/same|gb.qt4}} is (presumably) specific to version 4 of Qt
http://dielectdicinf.blogonline.ru/
+
* {{l/same|gb.gtk}} provides much of the same functionality using the [[GTK+]] graphical library, but it appears to be less fully implemented
http://tettagonaltd.blog.creep.ru/
+
* {{l/same|gb.gui}} provides functionality common to GTK+ and Qt, and loads whichever system is currently in use
http://roillessrurx.blog.ziza.ru/
+
==Events==
http://lootballerlo.blog.creep.ru/
+
===form state===
http://birgindymeet.blog.ziza.ru/
+
''see [[Gambas/controls/Form]]''
http://oollhousep.blogonline.ru/
+
===drag-drop===
 +
Some rules which seem to apply:
 +
* The {{l/sub|Mouse}} location (Mouse.X and Mouse.Y) is not updated while the mouse is dragging anything; you get the mouse's location while dragging from the {{l/sub|Drag}} object.
 +
* Normal mouse events are also not triggered while the mouse is dragging anything
 +
* In order for any element (form or control) to receive mouse events while the mouse is dragging anything, the element's '''Drop''' property must be set to TRUE
 +
* To get continuous updates on the mouse's movements, implement (control).DragMove and (form).DragMove. The control will only receive events while the mouse is inside it; the form will only receive events while the mouse is not inside another drop-enabled control. Use the form events to detect when the mouse has left the control area.
 +
 
 +
==Links==
 +
* [http://gambasdoc.org/help/comp/gb.qt official reference]

Latest revision as of 20:37, 26 April 2015

About

gb.qt is a Gambas library which provides functions for displaying and handling forms; it uses the Qt graphical library.

Related libraries:

  • gb.qt4 is (presumably) specific to version 4 of Qt
  • gb.gtk provides much of the same functionality using the GTK+ graphical library, but it appears to be less fully implemented
  • gb.gui provides functionality common to GTK+ and Qt, and loads whichever system is currently in use

Events

form state

see Gambas/controls/Form

drag-drop

Some rules which seem to apply:

  • The Mouse location (Mouse.X and Mouse.Y) is not updated while the mouse is dragging anything; you get the mouse's location while dragging from the Drag object.
  • Normal mouse events are also not triggered while the mouse is dragging anything
  • In order for any element (form or control) to receive mouse events while the mouse is dragging anything, the element's Drop property must be set to TRUE
  • To get continuous updates on the mouse's movements, implement (control).DragMove and (form).DragMove. The control will only receive events while the mouse is inside it; the form will only receive events while the mouse is not inside another drop-enabled control. Use the form events to detect when the mouse has left the control area.

Links