Dear Manuel,
everything is included now ( nearly finished ) like the Background-Painter and a Source-Creator.
I have a Question about the HOTSPOT-section :
On Mouse-caption, I get a oversized Area and I couldn't find out, where it comes from.
As far as possible, I'm trying to use / include Your samples. Only some Object-adjustments needed.
( added some Space between the Buttons )
================= A part of the sample ========
FUNCTION TESTHOT1(oWnd)
LOCAL oFont, oMenu, oBrush
LOCAL nEle, oBtn[ 20 ], oBtn30, ;
aPrompt := {}, ;
aAction := {}, ;
aRVSP := { { 11, 11, 27, 26 }, { 11, 28, 27, 41 }, { 11, 43, 27, 58 } }, ;
aBVSP := { 'MsgInfo( "Preview" )', 'MsgInfo( "Save" )', 'MsgInfo( "Print" )' }, ;
aTVSP := { "Preview", "Save", "Print" }, ;
aRPS := { { 11, 17, 27, 32 }, { 11, 35, 27, 48 } }, ;
aBPS := { 'MsgInfo( "Print" )', 'MsgInfo( "Save" )' }, ;
aTPS := { "Print", "Save" }, ;
aRVP := { { 11, 19, 27, 34 }, { 11, 37, 27, 52 } }, ;
aBVP := { 'MsgInfo( "Preview" )', 'MsgInfo( "Print" )' }, ;
aTVP := { "Preview", "Print" }, ;
aROne := { 11, 10, 27, 62 }
For nEle := 1 To 18
AAdd( aPrompt, "TSButton Hot Spot Sample " + LTrim( Str( nEle ) ) )
Next
DEFINE BRUSH oBrush FILENAME ".\system\Blustone.bmp"
DEFINE DIALOG oDlg8 OF oWnd FROM 60, 50 TO nHeight - 80, nWidth- 300 PIXEL ;
FONT oFont BRUSH oBrush // COLORS CLR_BLACK, CLR_NBLUE
//
The 1. Button@ 5, 5 SBUTTON oBtn[ 1 ] PROMPT aPrompt[ 1 ] PIXEL OF oDlg8 ;
RESOURCE "VSP" FONT oFont COLOR CLR_BLUE SHAPE ;
ACTION MsgInfo( "Main Action Sample 1" ) ;
TOOLTIP "Test"
// aHotSpot, { aRect, bAction, cToolTip }
oBtn[ 1 ]:AddHotSpot( aRVSP[ 1 ], aBVSP[ 1 ], aTVSP[ 1 ] )
oBtn[ 1 ]:AddHotSpot( aRVSP[ 2 ], aBVSP[ 2 ], aTVSP[ 2 ] )
oBtn[ 1 ]:AddHotSpot( aRVSP[ 3 ], aBVSP[ 3 ], aTVSP[ 3 ] )
...
...
Maybe something to be changed here ???// moving the caption to a specific location inside the button (pixel coordinates)
For nEle := 1 To 18
oBtn[ nEle ]:SetText( Nil, 12, 77, .T. )
Next
ACTIVATE DIALOG oDlg8 VALID ( lACTIVE8 := .F., oBtn8:Enable(), .T. ) NOWAIT ;
ON INIT oDlg8:Move( 60, 50, nWidth- 350, nHeight - 150, .f. )
RETURN NIL
======================
The SAY is defined as TRANSPARENT but doesn't work
@50, 70 SAY "White Box" FONT oFont SIZE 60, 15 PIXEL
TRANSPARENT@50, 290 SAY "Blue Box" FONT oFont SIZE 60, 15 PIXEL
TRANSPARENT@50, 500 SAY "Green Box" FONT oFont SIZE 60, 15 PIXEL
TRANSPARENTI tested :
@50, 50
STSAY oSay PROMPT ;
"Class: TSTSay" + CRLF + "Command: STSAY" OF oWnd2 ;
SIZE 450, 150 PIXELS ;
FONT oFont COLOR CLR_RED, CLR_HGRAY ;
SHADED BLINK CLR_HRED, 500, 3000
it works
perfect on the same Backround.
Label-Text-color is always BLACK ???
// label left aligned (default)
@400, 30 GRAY BOX SIZE 150, 150 OF oWnd3 PIXEL
TEXT "Label" FONT oFont
Doesn't work
// @50, 70 SAY "White Box" FONT oFont SIZE 60, 15 PIXEL TRANSPARENT
Changed to :
@50, 70 STSAY oSay PROMPT "White Box" OF oWnd3 SIZE 60, 15 PIXELS ;
FONT oFont COLOR 16776960, CLR_HGRAY
Best Regards
Uwe