Dear All,
I would like to resize the button (same concept with visual design as *::lDrag* is move). How can I resize the button in my program as in workshop?
Thanks for any idea.
Regards,
Dutch
dutch wrote:I would like to resize the button (same concept with visual design as *::lDrag* is move). How can I resize the button in my program as in workshop?
#include "FiveWin.ch"
Function Main()
Local oWnd, oBtn, ;
nTop := 20, ;
nLeft := 20, ;
lPixel := .T., ;
lDrag := .T., ;
nWidth := 60, ;
nHeight := 40
DEFINE Window oWnd
oBtn := TButton():New( nTop, nLeft, "&Test", oWnd, {|| Nil }, nWidth, nHeight,,,, lPixel, lDrag )
Activate Window oWnd
Return Nil
@ nRow, nCol SBUTTON oBtns[nShow] PROMPT cName ;
SIZE nWidth, nHeight ;
FONT oFnt[3] ;
OF oDlg ;
TEXT POSITION ON_LEFT ;
ROUNDRECT ;
W97 ;
TOOLTIP cFullName ;
PIXEL COLOR CLR_WHITE, CLR_RED ;
ACTION RoomInfo( ltrim(aName[nShow][4]), cStatus )
oBtns[nShow]:lDrag := .T.
dutch wrote:The sample is exactly what I want but the really what I need is TSBUTTON()
#include "FiveWin.ch"
Function Main()
Local oWnd, oBtn, ;
nTop := 20, ;
nLeft := 20, ;
lPixel := .T., ;
lDrag := .T., ;
nWidth := 60, ;
nHeight := 60, ;
cShape := "CRYSTAL", ;
nCapPos := 3 // caption at bottom
DEFINE Window oWnd
oBtn := TSButton():New( nTop, nLeft, "&Test", oWnd,, { "\fwh\bitmaps\Save16.bmp" }, ;
{ nWidth, nHeight }, lPixel, {||Nil},,,,,,,,,,,, nCapPos,,, cShape,,, lDrag )
Activate Window oWnd
Return Nil
Yes, I do.Silvio wrote:when you drag this button, it create a hand into control, do you see it ?
Yes, I do.Silvio wrote:it make also a box arround the control with gray color, do you see it ?
No, I don't see the button smaller, I see the rectangle bigger than dots boundaries.Silvio wrote:when you use this drag and move it you can see the button smaller do you see it
Perhaps, in TControl ClassSilvio wrote:perhaps there is an error
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 81 guests