FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Para Daniel Garcia - Gil
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Para Daniel Garcia - Gil
Posted: Mon Jun 07, 2010 09:02 PM

Daniel,

Utilizando SET MESSAGE com a clausula 2007(Apenas com 2007), ao mover o MOUSE para os lados o PROGRESS BAR que adicionei na MESSAGE BAR fica PISCANDO e só para de PISCAR se eu parar de mover o mouse.

set message of ownd to ... 2007

define msgitem omicasill2 of ownd:omsgbar size 110

@ 04,ownd:omsgbar:nWidth-111 progress ometer position natual of ownd:omsgbar size 94,18 pixel

Tem alguma idéia do que pode estar acontecendo?

Muito Obrigado

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Para Daniel Garcia - Gil
Posted: Mon Jun 07, 2010 09:53 PM
SGS...

La clase TMsgBar no esta diseñada paera ser contenedora de otros objetos

podrias resolverlo por esta via:

Code (fw): Select all Collapse
#include "fivewin.ch"

#define GWL_STYLE          (-16)


FUNCTION Main()

   LOCAL oWnd, oMeter, oTimer
   
   DEFINE WINDOW oWnd
    
   SET MESSAGE OF oWnd TO "Testing" 2007
   
   @ 04, oWnd:oMsgBar:nWidth-111 PROGRESS oMeter POSITION 1 of oWnd:oMsgBar SIZE 94,18 pixel   

   oMeter:SetRange( 0, 100 ) 
   
   DEFINE TIMER oTimer INTERVAL 5 ACTION SetPosProg( oMeter, oTimer ) OF oWnd

   SetWindowLong( oWnd:oMsgBar:hWnd, GWL_STYLE, nOr( GetWindowLong( oWnd:oMsgBar:hWnd, GWL_STYLE ), WS_CLIPCHILDREN ) )
 
   ACTIVATE WINDOW oWnd;
            ON INIT oTimer:Activate()
   
RETURN NIL

FUNCTION SetPosProg( oMeter, oTimer )

   oMeter:SetPos( oMeter:nPos + 1 )
   IF oMeter:GetPos() > 100
      oTimer:End()
   ENDIF
   
RETURN NIL
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: Para Daniel Garcia - Gil
Posted: Tue Jun 08, 2010 05:08 PM

Daniel,

Simplesmente FANTASTICO!!!

Muito obrigado

:D

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: Para Daniel Garcia - Gil
Posted: Sun May 24, 2015 07:19 PM

Excelente...

Muchas Gracias :lol:

Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]

Continue the discussion