help for GDIPLUS

help for GDIPLUS

Postby Silvio.Falconi » Sat Jan 09, 2016 6: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: Select all  Expand view

#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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: help for GDIPLUS

Postby ukoenig » Sun Jan 10, 2016 4:50 pm

Silvio,

try the following :

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

Image

Image

best regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: help for GDIPLUS

Postby Silvio.Falconi » Mon Jan 11, 2016 8:13 am

thanks I 'lltry
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 110 guests