FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour help for GDIPLUS
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
help for GDIPLUS
Posted: Sat Jan 09, 2016 06:21 PM
I have 5 bitmaps on a Wnd.
I wish insert a line over these bitmaps for n seconds when I press a button

I made it with gdiplus but the line is down and not over

I tried to insert another big bitmap to hide and show when I press the button but this bitmap is down and not over the 5 bitmaps

this is my test to try
Code (fw): Select all Collapse
#include "FiveWin.ch"


function Main()

   local oWnd
   local obmp1, obmp2, oBmp3, obmp4, oBmp5 ,oBmp10
   local ofont,oFont1
   local osay

   local nRowPos, nColPos, lDrag := .F.
   local oCrsHand,oFontBold



   sBet:=10
   nLastWin:= 0
   nScore:= 1000





   nWidthReel:= 128
   nHeightReels := 360
   nRowReel:= 40
   nColReel:=40
   nSpaceColReel:=10





   DEFINE CURSOR oCrsHand HAND


   DEFINE FONT ofont NAME "arial" SIZE 0,-80 BOLD
   DEFINE FONT ofont1 NAME "arial" SIZE 0,-22 BOLD

  DEFINE WINDOW oWnd  FROM 10, 10 TO 48,110 TITLE "TEST GDIPLUS"  



     @ nRowReel,nColReel BITMAP oBmp1 File "" size nWidthReel, nHeightReels pixel TRANSPARENT
     nColReel+= nWidthReel+nSpaceColReel
     @ nRowReel,nColReel BITMAP oBmp2 File "" size nWidthReel, nHeightReels pixel TRANSPARENT
     nColReel+= nWidthReel+nSpaceColReel
     @ nRowReel,nColReel BITMAP oBmp3 File "" size nWidthReel, nHeightReels pixel TRANSPARENT
     nColReel+= nWidthReel+nSpaceColReel
     @ nRowReel,nColReel BITMAP oBmp4 File "" size nWidthReel, nHeightReels pixel TRANSPARENT
     nColReel+= nWidthReel+nSpaceColReel
     @ nRowReel,nColReel BITMAP oBmp5 File "" size nWidthReel, nHeightReels pixel TRANSPARENT



     @ 30, 20 BITMAP oBmp10 File "" size (nWidthReel*5)+80, nHeightReels+40 pixel
         nRowReel +=500

   @ nRowReel,522 button "Line1" size 80,20 pixel Action Showlines(1,oBmp10)







   ACTIVATE WINDOW oWnd  ;
   ON INIT  oBmp10:HIDE()

   return nil



Function Showlines(nLinea,obmp10)

      local hDc
      local oGraphics10
      local oPen
      Local acolor:=array(25)

      acolor[1]:="0xFFFF00"   // I WISH THIS COLOR

         oBmp10:Show()

         hDc := obmp10:getDc()
          oPen := Pen():New( 255, 255, 0, 0 , 12 )
         oGraphics10 := Graphics():New( hDC )

     //     oGraphics10:DrawLine( oPen, nLeft, nTop, nRight, nBottom )
          oGraphics10:DrawLine( oPen, 10, 80, 760, 80 )



*obmp10:ReleaseDc(hDc)

oGraphics10:destroy()


Return nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: help for GDIPLUS
Posted: Sun Jan 10, 2016 04:50 PM
Silvio,

try the following :

Download :
http://www.pflegeplus.com/DOWNLOADS/Lines1.zip





best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: help for GDIPLUS
Posted: Mon Jan 11, 2016 08:13 AM

thanks I 'lltry

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion