Killet Software Ing.-GbR - short: KilletSoft - is a software company, which was established in the year 1991. The society is divided into the ranges "Geodetic Standard Software", "Development Tools for Geoinformatics" and "International Geodata". The industrial sectors of emphasis of the companies supplied by KilletSoft are consulting engineers, GIS developers, Internet marketing, public utilities, logistics, telecommunications, security and public services.
Print page body  •    Contact  •    Imprint
Deutsch English

Description of the Visual Objects Class gDataWindow{}

To explain the possibilities of the Graphics Development Kit Graphics4VO, the documentation of the class gDataWindow{} contained in it is shown. Further classes are described in the original documentation.

CLASS gDataWindow INHERIT dataWindow

Creates a data window capable of interfacing with a data server that can
display graphic elements.


Inherits from: dataWindow
A detailed description of this class and derived classes is available in
Visual Objects online help. All methods and instance variables of this class
can be used in a regular way.


Methods:
init()            Creates an instance of the class
paint()           Calls methods necessary to display graphic elements
paintNew()        Draws graphic elements
setTransparent()  Displays static controls transparent or with background
                  color
setTimer()        Sets timer for the window
timerEvent()      Method called by the timer


Variables that provide access to methods of the class:
_oGraphics        Graphic object used to call class methods.


Bemarks:
Data window should be owned by the window of the class ShellWindow. Window
editor can be used to place controls if the 'Inherit from class' property
is changed to "gDataWindow".

Transparency represented FixedText controls update their background
automatically, when a new text is written. With other classes inherited by
the class TextControl the text is overwritten.

All methods for initializing and display of graphic elements are accessible
through the class instance variable _oGraphics. Class methods should be
called from within the class method paint() only.


Example:
CLASS winGraphData INHERIT gDataWindow

METHOD paint() CLASS winGraphData
LOCAL nWinW,nWinH AS WORD
SELF:_oGraphics:setBackgroundColor(G_COLORLIGHTCYAN)
SELF:_oGraphics:paintGradientCanvas(10,G_DIRECTIONDOWN)
nWinW := SELF:_oGraphics:getDeviceWidth()
nWinH := SELF:_oGraphics:getDeviceHeight()
SELF:_oGraphics:setWorldOrigin(nWinW / 2, nWinH / 2)
SELF:_oGraphics:setStringFont(G_FONTTYPEROMAN,40,120,G_FONTBOLD,;
  G_FONTDIMFLEX,0.0)
SELF:_oGraphics:setStringColor(G_COLORWHITE)
SELF:_oGraphics:setStringShadow(6,G_COLORBLACK,G_DIRECTIONRIGHTDOWN)
SELF:_oGraphics:paintStringShadow(0,nWinH * 0.2,"Graphics4VO",G_ORIGINCENTER)
RETURN




METHOD init(oOwner,oRessourceID,nRessourcenID) CLASS gDataWindow

Creates an instance of the class gDataWindow.


Arguments:
oOwner:           The owner window
oRessourceID      The Id of the resource that defines the layout of the
                  window
nRessourcenID     The resource ID that specifies the location and size of
                  the sub-data window




METHOD paint() CLASS gDataWindow

Contains method calls necessary for graphics construction.


Arguments:
None


Remarks:
Derived classes will have their own paint() methods overriding those of
the super class. Graphic elements are constructed within paint() by
methods of the "graphics" classes.

Important! This is a callback method; it should not be called by the
application code. The class calls this method automatically and executes
the code within it.




METHOD paintNew() CLASS gDataWindow

Draws graphic elements.


Arguments:
None


Remarks:
This method calls paint() method of the derived class.

Graphics are automatically rebuilt after initialization, window resizing
or uncovering. Under those circumstances this method should not be called
directly. However, it is necessary to call this method when the graphics
content is changed.




METHOD setTransparent(lTransparent) CLASS gDataWindow

Displays static controls with a transparent background or with their
background color.


Arguments:
lTransparent      Flag for transparent static controls
                  TRUE:  transparent background
                  FALSE: with background color


Remarks:
Displaying static controls with a transparent background is the default.




METHOD setTimer(nMilliSec) CLASS gDataWindow


Creates a timer with a specified time-out rate.


Arguments:
nMilliSec         The time-out rate in milliseconds (1/1000 second)


Remarks:
Method timerEvent() is called when the time-out interval elapses. Derived
classes have their own timerEvent() methods overriding those of the
super class.




METHOD timerEvent(nMilliSec) CLASS gDataWindow

Executes the timer event.


Arguments:
nMilliSec         The time-out rate in milliseconds (1/1000 second)


Remarks:
This method is overridden in derived classes. It contains the code
executed for the timer event.

Important! This is a callback method. It should not be called in the
application code. The class calls and executes this method automatically.

KilletSoft News In order that you always are well informed about our company, we write actual news, current information and special offers here into this column.

KilletSoft Logo Anniversary
 
Good service pays off - 25 years Geo Software by KilletSoft!
 Read more...

KilletSoft Logo Updates
 
The period, in which you can use free updates of our programs, has been extended!
 Read more...

KilletSoft Logo Innovation Award 2016
 
Award 2016 KilletSoft's geodetic software has won for the second year in succession the Innovation Award from the Initiative Small and Medium Enterprises.
 Certificate TRANSDAT...
 Certificate ORTWIN...
 Read the Press Release...

KilletSoft Logo GeoDLL / TRANSDAT
 
Proposal for using Polygonal Validity Scopes in NTv2 grid files.
 Read the White Paper...

KilletSoft Logo WINDOWS© 10 compatible
 
Win10 kompatibel Our software has got the certificate "WINDOWS© 10 compatible". So it complies with the compatibility standards of the Microsoft operating systems WINDOWS© 10.

KilletSoft Logo NTv2 Hamburg
 
Highly accurate NTv2 file of the Federal State of Hamburg free of charge for TRANSDAT and GeoDLL users.
 Download the NTv2 file ...
 Read the Press Release...

KilletSoft Logo GeoDLL
 
GeoDLL provides Time Zone Calculations with aspect to Maritime Territorial Limits.
 Read the Press Release...

KilletSoft Logo TRANSDAT / GeoDLL
 
The program and the DLL now support all HARN / HPGN Reference Systems of the United States.
 Read more...

KilletSoft Logo Translators wanted!
 
The latest versions of the programs TRANSDAT and SEVENPAR support language files for the programs interface. Since the language dependent texts are managed in external files,  new languages can be added at any time by creating new language files. Every user of the program now can compile language files for himself and our customers.