How to use TMeter on SET MESSAGE Down window

How to use TMeter on SET MESSAGE Down window

Postby HATHAL » Fri May 13, 2016 6:59 pm

welcome everybody .
I want to help .
How to use TMeter on SET MESSAGE Down window
Thank.
hathal
User avatar
HATHAL
 
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh

Re: How to use TMeter on SET MESSAGE Down window

Postby armando.lagunas » Sat May 14, 2016 11:47 am

hello

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

 
SkyPe: armando.lagunas@hotmail.com
Mail: armando.lagunas@gmail.com
User avatar
armando.lagunas
 
Posts: 346
Joined: Mon Oct 05, 2009 3:35 pm
Location: Curico-Chile

Re: How to use TMeter on SET MESSAGE Down window

Postby HATHAL » Sat May 14, 2016 12:45 pm

Thanks for the engineer.
armando.bagunas
This was required.
Million greeting.
Hathal
User avatar
HATHAL
 
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 95 guests