Antonio Linares wrote:Si explicas con mas detalle lo que necesitas, veremos como poder hacerlo y ayudarte mejor
Antonio Linares wrote:Que aplicación es esa ? Existe demo ?
#include "FiveWin.ch"
#include "slider.ch"
static nLargoManga := 400
function Main()
local oWnd, oSlider, nValue := 400, oPanel
DEFINE WINDOW oWnd
@ 2, 2 SLIDER oSlider VAR nValue SIZE 300, 20 OF oWnd ;
COLORS nil, nil, CLR_BLUE SLIMSTYLE ;
RANGE 0, 800 ON CHANGE ( nLargoManga := nValue, oPanel:Refresh() )
@ 20, 350 PANEL oPanel OF oWnd SIZE 1200, 800
oPanel:SetColor( "W/N" )
oPanel:bPainted = { | hDC | Paint( hDC ) }
ACTIVATE WINDOW oWnd MAXIMIZED
return nil
function Paint( hDC )
local hOldPen, hBluePen
hBluePen = CreatePen( PS_SOLID, 1, CLR_HBLUE )
hOldPen = SelectObject( hDC, hBluePen )
MoveTo( hDC, 100, 100 )
LineTo( hDC, 100, nLargoManga )
MoveTo( hDC, 100, nLargoManga )
LineTo( hDC, 200, nLargoManga )
MoveTo( hDC, 200, nLargoManga )
LineTo( hDC, 200, 200 )
SelectObject( hDC, hOldPen )
return nil
#include "FiveWin.ch"
#include "slider.ch"
static nLargoManga := 400
function Main()
local oWnd, oSlider, nValue := 400, oPanel
DEFINE WINDOW oWnd
@ 2, 2 SLIDER oSlider VAR nValue SIZE 300, 20 OF oWnd ;
COLORS nil, nil, CLR_BLUE SLIMSTYLE ;
RANGE 0, 800 ON CHANGE ( nLargoManga := nValue, oPanel:Refresh() )
@ 20, 350 PANEL oPanel OF oWnd SIZE 1200, 800
oPanel:SetColor( "W/N" )
oPanel:bPainted = { | hDC | Paint( hDC ) }
ACTIVATE WINDOW oWnd MAXIMIZED
return nil
function Paint( hDC )
local hOldPen, hBluePen, x, y, n
hBluePen = CreatePen( PS_SOLID, 1, CLR_HBLUE )
hOldPen = SelectObject( hDC, hBluePen )
MoveTo( hDC, 100, 100 )
LineTo( hDC, 100, nLargoManga )
MoveTo( hDC, 100, nLargoManga )
LineTo( hDC, 200, nLargoManga )
MoveTo( hDC, 200, nLargoManga )
LineTo( hDC, 200, 160 )
MoveTo( hDC, 100, 100 )
x = 100
y = 100
for n = 0 to 100
x = x + 1
y = y + ( 1 * sin( n * 3.14 / 100 ) )
SetPixel( hdc, x, y, CLR_HBLUE )
next
SelectObject( hDC, hOldPen )
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 45 guests