+ contrib/gtwvg/3state.prg
+ contrib/gtwvg/activex.prg
+ contrib/gtwvg/bitmap.prg
+ contrib/gtwvg/checkbox.prg
+ contrib/gtwvg/class.prg
+ contrib/gtwvg/combobox.prg
+ contrib/gtwvg/crt.prg
+ contrib/gtwvg/dataref.prg
+ contrib/gtwvg/dialog.prg
+ contrib/gtwvg/drawarea.prg
+ contrib/gtwvg/genrc.prg
+ contrib/gtwvg/htmlview.prg
+ contrib/gtwvg/listbox.prg
+ contrib/gtwvg/menubar.prg
+ contrib/gtwvg/mle.prg
+ contrib/gtwvg/paint.prg
+ contrib/gtwvg/parthdlr.prg
+ contrib/gtwvg/pushbut.prg
+ contrib/gtwvg/radiobut.prg
+ contrib/gtwvg/scrollbr.prg
+ contrib/gtwvg/sle.prg
+ contrib/gtwvg/statbar.prg
+ contrib/gtwvg/static.prg
+ contrib/gtwvg/syswnd.prg
+ contrib/gtwvg/tabpage.prg
+ contrib/gtwvg/toolbar.prg
+ contrib/gtwvg/treeview.prg
+ contrib/gtwvg/wnd.prg
+ contrib/hbxbp/3state.prg
+ contrib/hbxbp/appevent.prg
+ contrib/hbxbp/bitmap.prg
+ contrib/hbxbp/browse.prg
+ contrib/hbxbp/checkbox.prg
+ contrib/hbxbp/clipboard.prg
+ contrib/hbxbp/combobox.prg
+ contrib/hbxbp/crt.prg
+ contrib/hbxbp/dataref.prg
+ contrib/hbxbp/dialog.prg
+ contrib/hbxbp/filedialog.prg
+ contrib/hbxbp/fontdialog.prg
+ contrib/hbxbp/generic.prg
+ contrib/hbxbp/gra.prg
+ contrib/hbxbp/htmlviewer.prg
+ contrib/hbxbp/listbox.prg
+ contrib/hbxbp/menubar.prg
+ contrib/hbxbp/mle.prg
+ contrib/hbxbp/parthandler.prg
+ contrib/hbxbp/presspace.prg
+ contrib/hbxbp/printdialog.prg
+ contrib/hbxbp/printer.prg
+ contrib/hbxbp/pushbutton.prg
+ contrib/hbxbp/radiobutton.prg
+ contrib/hbxbp/rtf.prg
+ contrib/hbxbp/scrollbar.prg
+ contrib/hbxbp/sle.prg
+ contrib/hbxbp/spinbutton.prg
+ contrib/hbxbp/static.prg
+ contrib/hbxbp/statusbar.prg
+ contrib/hbxbp/style.prg
+ contrib/hbxbp/tabpage.prg
+ contrib/hbxbp/toolbar.prg
+ contrib/hbxbp/treeview.prg
+ contrib/hbxbp/window.prg
- contrib/gtwvg/wvg3stat.prg
- contrib/gtwvg/wvgax.prg
- contrib/gtwvg/wvgbitmp.prg
- contrib/gtwvg/wvgcheck.prg
- contrib/gtwvg/wvgclass.prg
- contrib/gtwvg/wvgcombo.prg
- contrib/gtwvg/wvgcrt.prg
- contrib/gtwvg/wvgdarea.prg
- contrib/gtwvg/wvgdatar.prg
- contrib/gtwvg/wvgdlg.prg
- contrib/gtwvg/wvggenrc.prg
- contrib/gtwvg/wvghtmlv.prg
- contrib/gtwvg/wvglistb.prg
- contrib/gtwvg/wvgmenub.prg
- contrib/gtwvg/wvgmle.prg
- contrib/gtwvg/wvgpaint.prg
- contrib/gtwvg/wvgphdlr.prg
- contrib/gtwvg/wvgpushb.prg
- contrib/gtwvg/wvgradio.prg
- contrib/gtwvg/wvgscrlb.prg
- contrib/gtwvg/wvgsle.prg
- contrib/gtwvg/wvgstatb.prg
- contrib/gtwvg/wvgstatc.prg
- contrib/gtwvg/wvgsysw.prg
- contrib/gtwvg/wvgtabpg.prg
- contrib/gtwvg/wvgtoolb.prg
- contrib/gtwvg/wvgtreev.prg
- contrib/gtwvg/wvgwnd.prg
- contrib/hbxbp/xbp3state.prg
- contrib/hbxbp/xbpappevent.prg
- contrib/hbxbp/xbpbitmap.prg
- contrib/hbxbp/xbpbrowse.prg
- contrib/hbxbp/xbpcheckbox.prg
- contrib/hbxbp/xbpclipboard.prg
- contrib/hbxbp/xbpcombobox.prg
- contrib/hbxbp/xbpcrt.prg
- contrib/hbxbp/xbpdataref.prg
- contrib/hbxbp/xbpdialog.prg
- contrib/hbxbp/xbpfiledialog.prg
- contrib/hbxbp/xbpfontdialog.prg
- contrib/hbxbp/xbpgeneric.prg
- contrib/hbxbp/xbpgra.prg
- contrib/hbxbp/xbphtmlviewer.prg
- contrib/hbxbp/xbplistbox.prg
- contrib/hbxbp/xbpmenubar.prg
- contrib/hbxbp/xbpmle.prg
- contrib/hbxbp/xbpparthandler.prg
- contrib/hbxbp/xbppresspace.prg
- contrib/hbxbp/xbpprintdialog.prg
- contrib/hbxbp/xbpprinter.prg
- contrib/hbxbp/xbppushbutton.prg
- contrib/hbxbp/xbpradiobutton.prg
- contrib/hbxbp/xbprtf.prg
- contrib/hbxbp/xbpscrollbar.prg
- contrib/hbxbp/xbpsle.prg
- contrib/hbxbp/xbpspinbutton.prg
- contrib/hbxbp/xbpstatic.prg
- contrib/hbxbp/xbpstatusbar.prg
- contrib/hbxbp/xbpstyle.prg
- contrib/hbxbp/xbptabpage.prg
- contrib/hbxbp/xbptoolbar.prg
- contrib/hbxbp/xbptreeview.prg
- contrib/hbxbp/xbpwindow.prg
* contrib/gtwvg/gtwvg.hbp
* contrib/hbxbp/hbxbp.hbp
% deleted unnecessary prefix from .prg filenames,
thus making the much more easily searchable and
recognizable and also allowing more room for
the real description with much less undecipherable
abbreviations.
1159 lines
32 KiB
Plaintext
1159 lines
32 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* Harbour Project source code:
|
|
* Source file for the Wvg*Classes
|
|
*
|
|
* Copyright 2008 Pritpal Bedi <pritpal@vouchcac.com>
|
|
* http://harbour-project.org
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
|
*
|
|
* As a special exception, the Harbour Project gives permission for
|
|
* additional uses of the text contained in its release of Harbour.
|
|
*
|
|
* The exception is that, if you link the Harbour libraries with other
|
|
* files to produce an executable, this does not by itself cause the
|
|
* resulting executable to be covered by the GNU General Public License.
|
|
* Your use of that executable is in no way restricted on account of
|
|
* linking the Harbour library code into it.
|
|
*
|
|
* This exception does not however invalidate any other reasons why
|
|
* the executable file might be covered by the GNU General Public License.
|
|
*
|
|
* This exception applies only to the code released by the Harbour
|
|
* Project under the name Harbour. If you copy code from other
|
|
* Harbour Project or Free Software Foundation releases into a copy of
|
|
* Harbour, as the General Public License permits, the exception does
|
|
* not apply to the code that you add in this way. To avoid misleading
|
|
* anyone as to the status of such modified files, you must delete
|
|
* this exception notice from them.
|
|
*
|
|
* If you write modifications of your own for Harbour, it is your choice
|
|
* whether to permit this exception to apply to your modifications.
|
|
* If you do not wish that, delete this exception notice.
|
|
*
|
|
*/
|
|
/*----------------------------------------------------------------------*/
|
|
/*----------------------------------------------------------------------*/
|
|
/*----------------------------------------------------------------------*/
|
|
*
|
|
* EkOnkar
|
|
* ( The LORD is ONE )
|
|
*
|
|
* Xbase++ Compatible xbpCrt Class
|
|
*
|
|
* Pritpal Bedi <pritpal@vouchcac.com>
|
|
* 08Nov2008
|
|
*
|
|
/*----------------------------------------------------------------------*/
|
|
/*----------------------------------------------------------------------*/
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
#include "hbclass.ch"
|
|
#include "common.ch"
|
|
#include "inkey.ch"
|
|
#include "hbgtinfo.ch"
|
|
|
|
#include "hbgtwvg.ch"
|
|
#include "wvtwin.ch"
|
|
#include "wvgparts.ch"
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
CLASS WvgCrt INHERIT WvgWindow, WvgPartHandler
|
|
|
|
DATA oMenu
|
|
|
|
/* CONFIGURATION */
|
|
DATA alwaysOnTop INIT .F. /* Determines whether the dialog can be covered by other windows */
|
|
DATA border INIT 0 /* Border type for the XbpCrt window */
|
|
DATA clipChildren INIT .F.
|
|
DATA closable INIT .T.
|
|
DATA fontHeight INIT 16
|
|
DATA fontWidth INIT 10
|
|
DATA fontName INIT "Courier New"
|
|
DATA gridMove INIT .F.
|
|
DATA icon INIT 0
|
|
DATA minMax INIT .T.
|
|
DATA sysMenu INIT .T.
|
|
DATA taskList INIT .T.
|
|
DATA title INIT " "
|
|
DATA titleBar INIT .T.
|
|
DATA visible INIT .T.
|
|
|
|
DATA autoFocus INIT .T.
|
|
DATA autoMark INIT .T.
|
|
DATA dropFont INIT .T.
|
|
DATA dropZone INIT .F.
|
|
DATA helpLink INIT NIL
|
|
DATA maxCol INIT 79
|
|
DATA maxRow INIT 24
|
|
DATA mouseMode INIT 1 /* Determines whether mouse coordinates are given as graphics or text coordinates.*/
|
|
DATA modalResult INIT NIL /* Specifies the result of a modal dialog. */
|
|
DATA aSyncFlush INIT .F. /* Determines the display behavior of text-mode output. */
|
|
DATA tooltipText INIT ""
|
|
DATA useShortCuts INIT .F. /* Enables shortcut keys for the system menu */
|
|
DATA xSize INIT 640 READONLY
|
|
DATA ySize INIT 400 READONLY
|
|
|
|
/* GUI Specifics */
|
|
DATA animate INIT .F.
|
|
DATA clipParent INIT .F.
|
|
DATA clipSiblings INIT .T.
|
|
DATA group INIT 0 /* XBP_NO_GROUP */
|
|
DATA sizeRedraw INIT .F.
|
|
DATA tabStop INIT .F.
|
|
|
|
/* CALLBACK SLOTS */
|
|
DATA sl_enter
|
|
DATA sl_leave
|
|
DATA sl_lbClick
|
|
DATA sl_lbDblClick
|
|
DATA sl_lbDown
|
|
DATA sl_lbUp
|
|
DATA sl_mbClick
|
|
DATA sl_mbDblClick
|
|
DATA sl_mbDown
|
|
DATA sl_mbUp
|
|
DATA sl_motion
|
|
DATA sl_rbClick
|
|
DATA sl_rbDblClick
|
|
DATA sl_rbDown
|
|
DATA sl_rbUp
|
|
DATA sl_wheel
|
|
|
|
DATA sl_close
|
|
DATA sl_helpRequest
|
|
DATA sl_keyboard
|
|
DATA sl_killDisplayFocus /* only for CRT */
|
|
DATA sl_killInputFocus
|
|
DATA sl_move
|
|
DATA sl_paint /* only for gui dialogs */
|
|
DATA sl_quit
|
|
DATA sl_resize
|
|
DATA sl_setDisplayFocus /* only for CRT */
|
|
DATA sl_setInputFocus
|
|
DATA sl_dragEnter
|
|
DATA sl_dragMotion
|
|
DATA sl_dragLeave
|
|
DATA sl_dragDrop
|
|
|
|
/* HARBOUR implementation */
|
|
DATA resizable INIT .t.
|
|
DATA resizeMode INIT HB_GTI_RESIZEMODE_FONT
|
|
DATA style INIT (WS_OVERLAPPED + WS_CAPTION + WS_SYSMENU + WS_SIZEBOX + WS_MINIMIZEBOX + WS_MAXIMIZEBOX)
|
|
DATA exStyle INIT 0
|
|
DATA lModal INIT .f.
|
|
DATA pGTp
|
|
DATA pGT
|
|
DATA objType INIT objTypeCrt
|
|
DATA ClassName INIT "WVGCRT"
|
|
DATA drawingArea
|
|
DATA hWnd
|
|
DATA aPos INIT { 0,0 }
|
|
DATA aSize INIT { 24,79 }
|
|
DATA aPresParams INIT {}
|
|
DATA lHasInputFocus INIT .F.
|
|
DATA nFrameState INIT 0 /* normal */
|
|
|
|
DATA isGT INIT .F.
|
|
|
|
METHOD setTitle( cTitle ) INLINE ::title := cTitle, hb_gtInfo( HB_GTI_WINTITLE, cTitle )
|
|
METHOD getTitle() INLINE hb_gtInfo( HB_GTI_WINTITLE )
|
|
METHOD showWindow() INLINE ::show()
|
|
METHOD refresh() INLINE ::invalidateRect()
|
|
|
|
/* LIFE CYCLE */
|
|
METHOD new( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
|
|
METHOD create( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
|
|
METHOD configure( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
|
|
METHOD destroy()
|
|
|
|
/* METHODS */
|
|
METHOD currentPos()
|
|
METHOD currentSize()
|
|
METHOD captureMouse()
|
|
METHOD disable()
|
|
METHOD enable()
|
|
METHOD getFrameState()
|
|
METHOD getHWND()
|
|
METHOD getModalState()
|
|
METHOD hasInputFocus()
|
|
METHOD hide()
|
|
METHOD invalidateRect( nTop, nLeft, nBottom, nRight )
|
|
METHOD isEnabled()
|
|
METHOD isVisible()
|
|
METHOD lockPS()
|
|
METHOD lockUpdate()
|
|
METHOD menuBar()
|
|
METHOD setColorBG()
|
|
METHOD setColorFG()
|
|
METHOD setFont()
|
|
METHOD setFontCompoundName()
|
|
METHOD setFrameState( nState )
|
|
METHOD setPresParam()
|
|
METHOD setModalState()
|
|
METHOD setPointer()
|
|
METHOD setTrackPointer()
|
|
METHOD setPos()
|
|
METHOD setPosAndSize()
|
|
METHOD setSize( aSize, lPaint )
|
|
METHOD showModal()
|
|
METHOD show()
|
|
METHOD toBack()
|
|
METHOD toFront()
|
|
METHOD unlockPS()
|
|
METHOD winDevice()
|
|
|
|
/* MESSAGES */
|
|
METHOD enter( xParam ) SETGET
|
|
METHOD leave( xParam ) SETGET
|
|
METHOD lbClick( xParam ) SETGET
|
|
METHOD lbDblClick( xParam ) SETGET
|
|
METHOD lbDown( xParam ) SETGET
|
|
METHOD lbUp( xParam ) SETGET
|
|
METHOD mbClick( xParam ) SETGET
|
|
METHOD mbDblClick( xParam ) SETGET
|
|
METHOD mbDown( xParam ) SETGET
|
|
METHOD mbUp( xParam ) SETGET
|
|
METHOD motion( xParam ) SETGET
|
|
METHOD rbClick( xParam ) SETGET
|
|
METHOD rbDblClick( xParam ) SETGET
|
|
METHOD rbDown( xParam ) SETGET
|
|
METHOD rbUp( xParam ) SETGET
|
|
METHOD wheel( xParam ) SETGET
|
|
METHOD close( xParam ) SETGET
|
|
METHOD helpRequest( xParam ) SETGET
|
|
METHOD keyboard( xParam ) SETGET
|
|
METHOD killDisplayFocus( xParam ) SETGET
|
|
METHOD killInputFocus( xParam ) SETGET
|
|
METHOD move( xParam ) SETGET
|
|
METHOD paint( xParam ) SETGET
|
|
METHOD quit( xParam, xParam1 ) SETGET
|
|
METHOD resize( xParam ) SETGET
|
|
METHOD setDisplayFocus( xParam ) SETGET
|
|
METHOD setInputFocus( xParam ) SETGET
|
|
METHOD dragEnter( xParam, xParam1 ) SETGET
|
|
METHOD dragMotion( xParam ) SETGET
|
|
METHOD dragLeave( xParam ) SETGET
|
|
METHOD dragDrop( xParam, xParam1 ) SETGET
|
|
|
|
ENDCLASS
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
* Instance Initiation
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:new( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
|
|
|
|
::WvgWindow:new( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
|
|
|
|
IF HB_ISARRAY( aPos )
|
|
::aPos := aPos
|
|
ENDIF
|
|
IF HB_ISARRAY( aSize )
|
|
::aSize := aSize
|
|
ENDIF
|
|
IF HB_ISARRAY( aPresParams )
|
|
::aPresParams := aPresParams
|
|
ENDIF
|
|
IF HB_ISLOGICAL( lVisible )
|
|
::visible := lVisible
|
|
ENDIF
|
|
|
|
/* Drawing Area of oCrt will point to itself */
|
|
::drawingArea := Self
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
* Life Cycle
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:create( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
|
|
Local lRowCol := .T.
|
|
|
|
DEFAULT oParent TO ::oParent
|
|
DEFAULT oOwner TO ::oOwner
|
|
DEFAULT aPos TO ::aPos
|
|
DEFAULT aSize TO ::aSize
|
|
DEFAULT aPresParams TO ::aPresParams
|
|
DEFAULT lVisible TO ::visible
|
|
|
|
::oParent := oParent
|
|
::oOwner := oOwner
|
|
::aPos := aPos
|
|
::aSize := aSize
|
|
::aPresParams := aPresParams
|
|
::visible := lVisible
|
|
|
|
::maxRow := ::aSize[ 1 ]
|
|
::maxCol := ::aSize[ 2 ]
|
|
|
|
::WvgWindow:create( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
|
|
|
|
IF ::lModal
|
|
::pGT := hb_gtCreate( "WVG" )
|
|
::pGTp := hb_gtSelect( ::pGT )
|
|
ELSE
|
|
hb_gtReload( "WVG" )
|
|
::pGT := hb_gtSelect()
|
|
ENDIF
|
|
|
|
IF ::lModal
|
|
::style := WS_POPUP + WS_CAPTION + WS_SYSMENU
|
|
IF ::resizable
|
|
::style += WS_MINIMIZEBOX + WS_MAXIMIZEBOX + WS_THICKFRAME
|
|
ENDIF
|
|
ENDIF
|
|
|
|
hb_gtInfo( HB_GTI_RESIZABLE, ::resizable )
|
|
hb_gtInfo( HB_GTI_PRESPARAMS, { ::exStyle, ::style, ::aPos[ 1 ], ::aPos[ 2 ], ;
|
|
::maxRow+1, ::maxCol+1, ::pGTp, .F., lRowCol, HB_WNDTYPE_CRT } )
|
|
hb_gtInfo( HB_GTI_SETFONT, { ::fontName, ::fontHeight, ::fontWidth } )
|
|
|
|
IF HB_ISNUMERIC( ::icon )
|
|
hb_gtInfo( HB_GTI_ICONRES, ::icon )
|
|
ELSE
|
|
IF ( ".ico" $ lower( ::icon ) )
|
|
hb_gtInfo( HB_GTI_ICONFILE, ::icon )
|
|
ELSE
|
|
hb_gtInfo( HB_GTI_ICONRES, ::icon )
|
|
ENDIF
|
|
ENDIF
|
|
|
|
/* CreateWindow() be forced to execute */
|
|
? " "
|
|
::hWnd := hb_gtInfo( HB_GTI_SPEC, HB_GTS_WINDOWHANDLE )
|
|
::setFocus()
|
|
|
|
Hb_GtInfo( HB_GTI_CLOSABLE , ::closable )
|
|
hb_gtInfo( HB_GTI_WINTITLE , ::title )
|
|
hb_gtInfo( HB_GTI_RESIZEMODE, iif( ::resizeMode == HB_GTI_RESIZEMODE_ROWS, HB_GTI_RESIZEMODE_ROWS, HB_GTI_RESIZEMODE_FONT ) )
|
|
|
|
|
|
IF ::lModal
|
|
hb_gtInfo( HB_GTI_DISABLE, ::pGTp )
|
|
ENDIF
|
|
|
|
IF ::visible
|
|
Hb_GtInfo( HB_GTI_SPEC, HB_GTS_SHOWWINDOW, SW_NORMAL )
|
|
::lHasInputFocus := .t.
|
|
ENDIF
|
|
|
|
HB_GtInfo( HB_GTI_NOTIFIERBLOCKGUI, {|nEvent, ...| ::notifier( nEvent, ... ) } )
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:configure( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
|
|
|
|
DEFAULT oParent TO ::oParent
|
|
DEFAULT oOwner TO ::oOwner
|
|
DEFAULT aPos TO ::aPos
|
|
DEFAULT aSize TO ::aSize
|
|
DEFAULT aPresParams TO ::aPresParams
|
|
DEFAULT lVisible TO ::visible
|
|
|
|
::oParent := oParent
|
|
::oOwner := oOwner
|
|
::aPos := aPos
|
|
::aSize := aSize
|
|
::aPresParams := aPresParams
|
|
::visible := lVisible
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:destroy()
|
|
|
|
IF HB_ISOBJECT( ::oMenu )
|
|
::oMenu:destroy()
|
|
ENDIF
|
|
|
|
IF Len( ::aChildren ) > 0
|
|
aeval( ::aChildren, {|o| o:destroy() } )
|
|
ENDIF
|
|
|
|
IF ! ::isGT
|
|
IF ::lModal
|
|
hb_gtInfo( HB_GTI_ENABLE , ::pGTp )
|
|
hb_gtSelect( ::pGTp )
|
|
hb_gtInfo( HB_GTI_SETFOCUS, ::pGTp )
|
|
ENDIF
|
|
::pGT := NIL
|
|
::pGTp := NIL
|
|
ENDIF
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
* Methods
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:currentPos()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:currentSize()
|
|
|
|
RETURN { hb_gtInfo( HB_GTI_SCREENWIDTH ), hb_gtInfo( HB_GTI_SCREENHEIGHT ) }
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:captureMouse()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:disable()
|
|
|
|
hb_gtInfo( HB_GTI_DISABLE, ::pGT )
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:enable()
|
|
|
|
hb_gtInfo( HB_GTI_ENABLE, ::pGT )
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:getFrameState()
|
|
|
|
IF WVG_IsIconic( ::hWnd )
|
|
RETURN WVGDLG_FRAMESTAT_MINIMIZED
|
|
ENDIF
|
|
IF WVG_IsZoomed( ::hWnd )
|
|
RETURN WVGDLG_FRAMESTAT_MAXIMIZED
|
|
ENDIF
|
|
|
|
RETURN WVGDLG_FRAMESTAT_NORMALIZED
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:getHWND()
|
|
|
|
RETURN ::hWnd
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:getModalState()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:hasInputFocus()
|
|
|
|
RETURN ::lHasInputFocus
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:hide()
|
|
|
|
hb_gtInfo( HB_GTI_SPEC, HB_GTS_SHOWWINDOW, HB_GTS_SW_HIDE )
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:invalidateRect( nTop, nLeft, nBottom, nRight )
|
|
|
|
DEFAULT nTop TO 0
|
|
DEFAULT nLeft TO 0
|
|
DEFAULT nBottom TO maxrow()
|
|
DEFAULT nRight TO maxcol()
|
|
|
|
Wvt_InvalidateRect( nTop, nLeft, nBottom, nRight )
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:isEnabled()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:isVisible()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:lockPS()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:lockUpdate()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:menuBar()
|
|
|
|
IF !( HB_ISOBJECT( ::oMenu ) )
|
|
::oMenu := WvgMenuBar():New( self ):create()
|
|
ENDIF
|
|
|
|
RETURN ::oMenu
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setColorBG()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setColorFG()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setFont()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setFontCompoundName()
|
|
|
|
RETURN ""
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setFrameState( nState )
|
|
Local lSuccess := .f.
|
|
|
|
DO CASE
|
|
|
|
CASE nState == WVGDLG_FRAMESTAT_MINIMIZED
|
|
lSuccess := ::sendMessage( WM_SYSCOMMAND, SC_MINIMIZE, 0 )
|
|
|
|
CASE nState == WVGDLG_FRAMESTAT_MAXIMIZED
|
|
lSuccess := ::sendMessage( WM_SYSCOMMAND, SC_MAXIMIZE, 0 )
|
|
|
|
CASE nState == WVGDLG_FRAMESTAT_NORMALIZED
|
|
lSuccess := ::sendMessage( WM_SYSCOMMAND, SC_RESTORE, 0 )
|
|
|
|
ENDCASE
|
|
|
|
RETURN lSuccess
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setModalState()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setPointer()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setTrackPointer()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setPos()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setPosAndSize()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setPresParam()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setSize( aSize, lPaint )
|
|
|
|
if HB_ISARRAY( aSize )
|
|
DEFAULT lPaint TO .T.
|
|
|
|
hb_gtInfo( HB_GTI_SCREENHEIGHT, aSize[ 1 ] )
|
|
hb_gtInfo( HB_GTI_SCREENWIDTH , aSize[ 2 ] )
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:show()
|
|
|
|
Hb_GtInfo( HB_GTI_SPEC, HB_GTS_SHOWWINDOW, SW_NORMAL )
|
|
::lHasInputFocus := .t.
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:showModal()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:toBack()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:toFront()
|
|
RETURN WVG_SetWindowPosToTop( ::hWnd )
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:unlockPS()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:winDevice()
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
* Callback Methods
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:enter( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_enter )
|
|
eval( ::sl_enter, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_enter := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:leave( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_leave )
|
|
eval( ::sl_leave, NIL, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_leave := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:lbClick( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_lbClick )
|
|
eval( ::sl_lbClick, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_lbClick := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:lbDblClick( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_lbDblClick )
|
|
eval( ::sl_lbDblClick, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_lbDblClick := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:lbDown( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_lbDown )
|
|
eval( ::sl_lbDown, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_lbDown := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:lbUp( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_lbUp )
|
|
eval( ::sl_lbUp, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_lbUp := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:mbClick( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_mbClick )
|
|
eval( ::sl_mbClick, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_mbClick := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:mbDblClick( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_mbDblClick )
|
|
eval( ::sl_mbDblClick, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_mbDblClick := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:mbDown( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_mbDown )
|
|
eval( ::sl_mbDown, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_mbDown := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:mbUp( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_mbUp )
|
|
eval( ::sl_mbUp, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_mbUp := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:motion( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_motion )
|
|
eval( ::sl_motion, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_motion := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:rbClick( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_rbClick )
|
|
eval( ::sl_rbClick, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_rbClick := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:rbDblClick( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_rbDblClick )
|
|
eval( ::sl_rbDblClick, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_rbDblClick := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:rbDown( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_rbDown )
|
|
eval( ::sl_rbDown, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_rbDown := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:rbUp( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_rbUp )
|
|
eval( ::sl_rbUp, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_rbUp := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:wheel( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_wheel )
|
|
eval( ::sl_wheel, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_wheel := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
* Other Messages
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:close( xParam )
|
|
|
|
if HB_ISNIL( xParam ) .and. HB_ISBLOCK( ::sl_close )
|
|
eval( ::sl_close, NIL, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_close := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:helpRequest( xParam )
|
|
|
|
if HB_ISNIL( xParam ) .and. HB_ISBLOCK( ::sl_helpRequest )
|
|
eval( ::sl_helpRequest, NIL, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_helpRequest := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:keyboard( xParam )
|
|
|
|
if HB_ISNUMERIC( xParam ) .and. HB_ISBLOCK( ::sl_keyboard )
|
|
eval( ::sl_keyboard, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_keyboard := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:killDisplayFocus( xParam )
|
|
|
|
if HB_ISNIL( xParam ) .and. HB_ISBLOCK( ::sl_killDisplayFocus )
|
|
eval( ::sl_killDisplayFocus, NIL, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_killDisplayFocus := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:killInputFocus( xParam )
|
|
|
|
if HB_ISNIL( xParam ) .and. HB_ISBLOCK( ::sl_killInputFocus )
|
|
eval( ::sl_killInputFocus, NIL, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_killInputFocus := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:move( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_move )
|
|
eval( ::sl_move, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_move := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:paint( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_paint )
|
|
eval( ::sl_paint, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_paint := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:quit( xParam, xParam1 )
|
|
|
|
if HB_ISNUMERIC( xParam ) .and. HB_ISBLOCK( ::sl_quit )
|
|
eval( ::sl_quit, xParam, xParam1, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_quit := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:resize( xParam )
|
|
|
|
if HB_ISBLOCK( xParam )/* .or. HB_ISNIL( xParam ) */
|
|
::sl_resize := xParam
|
|
RETURN NIL
|
|
endif
|
|
IF empty( xParam )
|
|
::sendMessage( WM_SIZE, 0, 0 )
|
|
ENDIF
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setDisplayFocus( xParam )
|
|
|
|
if HB_ISNIL( xParam ) .and. HB_ISBLOCK( ::setDisplayFocus )
|
|
eval( ::setDisplayFocus, NIL, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::setDisplayFocus := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:setInputFocus( xParam )
|
|
|
|
if HB_ISNIL( xParam ) .and. HB_ISBLOCK( ::sl_setInputFocus )
|
|
eval( ::sl_setInputFocus, NIL, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_setInputFocus := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:dragEnter( xParam, xParam1 )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_dragEnter )
|
|
eval( ::sl_dragEnter, xParam, xParam1, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_dragEnter := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:dragMotion( xParam )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_dragMotion )
|
|
eval( ::sl_dragMotion, xParam, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_dragMotion := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:dragLeave( xParam )
|
|
|
|
if HB_ISNIL( xParam ) .and. HB_ISBLOCK( ::sl_dragLeave )
|
|
eval( ::sl_dragLeave, NIL, NIL, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_dragLeave := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
METHOD WvgCrt:dragDrop( xParam, xParam1 )
|
|
|
|
if HB_ISARRAY( xParam ) .and. HB_ISBLOCK( ::sl_dragDrop )
|
|
eval( ::sl_dragDrop, xParam, xParam1, Self )
|
|
RETURN Self
|
|
endif
|
|
|
|
if HB_ISBLOCK( xParam ) .or. HB_ISNIL( xParam )
|
|
::sl_dragDrop := xParam
|
|
RETURN NIL
|
|
endif
|
|
|
|
RETURN Self
|
|
|
|
/*----------------------------------------------------------------------*/
|