How Can I Move object "SAY" using class "TGSA
Posted: Tue Jul 31, 2007 5:34 pm
/*
Hi Everybody
I want to move object "say" for sample bellow
How Can I active the drag method ?
*/
#include "FiveWin.ch"
#include "Tgsay.ch"
Static oWnd
********
Function Main()
********
Private oBmp
Private oFont, oCursor, cSayTxt := ""
DEFINE Font oFont Name "Arial" WEIGHT 10 SIZE 8,15
DEFINE CURSOR oCursor RESOURCE "Catch"
DEFINE Dialog oWnd FROM 1, 1 TO 22, 75
DEFINE BITMAP oBmp FILE "C:\FWH306\bitmaps\graf01.bmp"
SayTransp()
ACTIVATE DIALOG oWnd ON PAINT ( oWnd:SayBitmap( 0, 0, oBmp, oWnd:nWidth, oWnd:nHeight ) )
Return nil
********
Function SayTransp()
********
Local nl:= 80, nc:= 150, cVarSay := "SAMPLE", oSayTxt, bClick
SET 3DLOOK ON
@ nL,nC GSAY oSayTxt PROMPT cVarSay OF oWnd PIXEL SIZE 90,25 FONT oFont COLOR CLR_RED TRANSPARENTE
oSayTxt:lTabs := .f.
oSayTxt:lSombra := .f.
oSayTxt:oDragCursor := oCursor
oSayTxt:bDragBegin := { | nl, nc, nKeyFlags | SetDropInfo( oSayTxt ), oWnd:SetMsg( "Dragging and Dropping" ) }
Return nil
/*
Thanks !
Gui - São Paulo - Brazil
*/
Hi Everybody
I want to move object "say" for sample bellow
How Can I active the drag method ?
*/
#include "FiveWin.ch"
#include "Tgsay.ch"
Static oWnd
********
Function Main()
********
Private oBmp
Private oFont, oCursor, cSayTxt := ""
DEFINE Font oFont Name "Arial" WEIGHT 10 SIZE 8,15
DEFINE CURSOR oCursor RESOURCE "Catch"
DEFINE Dialog oWnd FROM 1, 1 TO 22, 75
DEFINE BITMAP oBmp FILE "C:\FWH306\bitmaps\graf01.bmp"
SayTransp()
ACTIVATE DIALOG oWnd ON PAINT ( oWnd:SayBitmap( 0, 0, oBmp, oWnd:nWidth, oWnd:nHeight ) )
Return nil
********
Function SayTransp()
********
Local nl:= 80, nc:= 150, cVarSay := "SAMPLE", oSayTxt, bClick
SET 3DLOOK ON
@ nL,nC GSAY oSayTxt PROMPT cVarSay OF oWnd PIXEL SIZE 90,25 FONT oFont COLOR CLR_RED TRANSPARENTE
oSayTxt:lTabs := .f.
oSayTxt:lSombra := .f.
oSayTxt:oDragCursor := oCursor
oSayTxt:bDragBegin := { | nl, nc, nKeyFlags | SetDropInfo( oSayTxt ), oWnd:SetMsg( "Dragging and Dropping" ) }
Return nil
/*
Thanks !
Gui - São Paulo - Brazil
*/