home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SAMPLES
/
TESTBMP.PRG
< prev
next >
Wrap
Text File
|
1994-04-11
|
2KB
|
82 lines
//----------------------------------------------------------------------------//
// FiveWin 1.0 - Ejemplos
// (c) A.Linares, F.Pulpón 1993
//
// Construir con BUILD TestBmp
//
//----------------------------------------------------------------------------//
// Prototipos de Bases de datos gráficas con FiveWin
// Las imágenes están almacenadas dentro de la DLL Fishes.dll
// Necesitas un editor de recursos - Te recomendamos el Resource WorkShop
// de Borland. No esperes más y comprátelo ya !!!
// Contacta con Borland para conseguirlo.
#include "FiveWin.ch"
static oWnd
//----------------------------------------------------------------------------//
function Main()
SET RESOURCES TO "Fishes.dll"
DEFINE WINDOW oWnd FROM 1, 1 TO 22, 75 ;
TITLE "Bitmap Test" MENU BuildMenu()
SET MESSAGE OF oWnd TO OemToAnsi( "FiveWin 1.0 - Base de Datos de 'Pescaitos'" )
ACTIVATE WINDOW oWnd
SET RESOURCES TO
return
//----------------------------------------------------------------------------//
function BuildMenu()
MENU
MENUITEM "Dialog Box"
MENU
MENUITEM "&Activate..." CHECKED ACTION DlgFish() ;
MESSAGE OemToAnsi( "Activar la Caja de Diálogo con Imágenes" )
SEPARATOR
MENUITEM "&Terminar" ACTION oWnd:End() ;
MESSAGE "Eso es todo... Seguro que ya tienes algunas buenas ideas!"
ENDMENU
MENUITEM "&Another" DISABLED
ENDMENU
return
//----------------------------------------------------------------------------//
function DlgFish()
local oDlg
local n := 1
local bmpFish
DEFINE DIALOG oDlg NAME "Fish"
REDEFINE BITMAP bmpFish ID 110 OF oDlg NAME "Fish1"
REDEFINE BUTTON ID 120 OF oDlg ;
ACTION If( n > 1, bmpFish:SetBMP( "Fish" + AllTrim( Str( --n ) ) ), ;
Tone( 956, 2 ) )
REDEFINE BUTTON ID 130 OF oDlg ;
ACTION If( n < 6, bmpFish:SetBMP( "Fish" + AllTrim( Str( ++n ) ) ), ;
Tone( 956, 2 ) )
ACTIVATE DIALOG oDlg CENTERED
return
//----------------------------------------------------------------------------//