Para Daniel Garcia - Gil

Para Daniel Garcia - Gil

Postby MGA » Mon Jun 07, 2010 9: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

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: Para Daniel Garcia - Gil

Postby Daniel Garcia-Gil » Mon Jun 07, 2010 9:53 pm

SGS...

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

podrias resolverlo por esta via:

Code: Select all  Expand view

#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
 
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Para Daniel Garcia - Gil

Postby MGA » Tue Jun 08, 2010 5:08 pm

Daniel,

Simplesmente FANTASTICO!!!

Muito obrigado

:D
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: Para Daniel Garcia - Gil

Postby leandro » Sun May 24, 2015 7:19 pm

Excelente...

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

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1482
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 7 guests