GET ACTION com SPINNER ?? (RESOLVIDO)

GET ACTION com SPINNER ?? (RESOLVIDO)

Postby MGA » Mon Jan 04, 2010 8:01 pm

Sr. Antonio,

Não esta aparecendo o botão quando uso ACTION no GET + SPINNER, algum exemplo de como utilizar?

veja:
Image

rc:
FROMRES DIALOG 0, 0, 150, 150
STYLE DS_MODALFRAME | WS_BORDER | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
FONT 8, "MS Sans Serif"
CAPTION "Dialog"
BEGIN
EDITTEXT 100, 11, 10, 80, 15, ES_AUTOHSCROLL|WS_VSCROLL
EDITTEXT 101, 10, 40, 80, 15, ES_AUTOHSCROLL|WS_VSCROLL
EDITTEXT 102, 9, 70, 129, 17, ES_AUTOHSCROLL|WS_VSCROLL
EDITTEXT 103, 10, 100, 130, 14, ES_AUTOHSCROLL|WS_VSCROLL
END
Last edited by MGA on Wed Jan 06, 2010 8:00 pm, edited 1 time in total.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: GET ACTION com SPINNER ??

Postby MGA » Wed Jan 06, 2010 7:19 pm

?
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: GET ACTION com SPINNER ?? (resolvido)

Postby MGA » Wed Jan 06, 2010 7:59 pm

method CreateButton()

de:
::oBtn := TBtnBmp():New(0,::nWidth - nBmpWidth - 4,nBmpWidth,::nHeight - 4,;

por:
::oBtn := TBtnBmp():New(0,::nWidth - nBmpWidth - if(::lSpinner,20,4),nBmpWidth,::nHeight - 4,;
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: GET ACTION com SPINNER ?? (RESOLVIDO)

Postby Antonio Linares » Mon Jan 25, 2010 11:20 am

SGS,

Si, tu solución es correcta, gracias :-)

Tambien habría que cambiar estas líneas:
Code: Select all  Expand view

         @ 0, ::nWidth - ::nHeight - If( ::lSpinner, 20, 0 ) BUTTONBMP ::oBtn OF Self ;
         ACTION ( Eval( oThis:bAction, oThis ), oThis:SetFocus() ) ;
         SIZE ::nHeight - 4, ::nHeight - 4 PIXEL
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: GET ACTION com SPINNER ?? (RESOLVIDO)

Postby MGA » Mon Jan 25, 2010 12:38 pm

obrigado
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 62 guests

cron