FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Test scroll
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Test scroll
Posted: Sat Feb 18, 2006 04:07 PM

Imust show a big Image
I must use vertical scroll
Have you an sample test to make it ?

Regards
Silvio

Best Regards, Saludos



Falconi Silvio
Posts: 114
Joined: Tue Feb 14, 2006 08:13 AM
Re: Test scroll
Posted: Sun Feb 19, 2006 06:31 AM
Silvio wrote:Imust show a big Image
I must use vertical scroll
Have you an sample test to make it ?

Regards
Silvio


Sylivio,
Seems simle...
In the .RC file...
FISH DIALOG LOADONCALL MOVEABLE DISCARDABLE 9, 19, 178, 117
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Fishes DataBase"
BEGIN
	CONTROL "TBitmap", 110, "TBitmap", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 23, 7, 83, 55
	PUSHBUTTON "&Previous", 120, 5, 98, 43, 13
	PUSHBUTTON "&Next", 130, 66, 98, 43, 13
	PUSHBUTTON "&End", 2, 129, 98, 43, 13
	EDITTEXT 111, 124, 51, 40, 12
	EDITTEXT 112, 124, 69, 40, 12
END


In the .PRG file... (from TESTBMP.PRG modified by me)

Function DlgFish()

   local oDlg
   local n := 1
   local bmpFish
   local a, b

   a := Space(8)
   b := 0


   DEFINE DIALOG oDlg NAME "Fish"

   *        BITMAP
   REDEFINE bitmap bmpFish ID 110 OF oDlg NAME "Fish1" SCROLL  ;
      on click ;
      ( hf := GetFocus(),;
        SetFocus(bmpFish),;
      msginfo('Hello...'+CRLF+ "Your values are:"+CRLF+;
              'Variable a: '+ oa:ctext +CRLF+;
              'Variable b: '+ cvaltochar(ob:ctext)),;
        SetFocus(hf))


   bmpFish:bLDblClick = { | nRow, nCol, nFlags | ;
                          MsgInfo( "DblClick on the bitmap" ) }

   REDEFINE BUTTON ID 120 OF oDlg ;
      ACTION If( n > 1, bmpFish:SetBMP( "Fish" + AllTrim( Str( --n ) ) ), ;
                        Tone( 956, 2 ) )
   
   redefine get oa var a picture '@!' id 111 of oDlg 

   redefine get ob var b picture '99999' id 112 of oDlg 

   REDEFINE BUTTON ID 130 OF oDlg ;
      ACTION If( n < 6, bmpFish:SetBMP( "Fish" + AllTrim( Str( ++n ) ) ), ;
                        Tone( 956, 2 ) ) 


   ACTIVATE DIALOG oDlg CENTERED
   
return nil
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Test scroll
Posted: Sun Feb 19, 2006 10:39 PM

I sent you a message private. thank

Best Regards, Saludos



Falconi Silvio

Continue the discussion