Transparent say over a bitmap

Transparent say over a bitmap

Postby Otto » Sun May 10, 2009 7:34 pm

I would like to print a TRANSPARENT say over a BITMAP.
Is this possible?
Thanks in advance
Otto



Code: Select all  Expand view  RUN
@ 0,0 BITMAP oBmp FILENAME CURDIR() + "\bmp\Clip5.bmp" PIXEL   of oDlg  SIZE 60,38
@ 0,0 say oSaydemo PROMPT cText of oBmp font oFontMedium CENTERED   PIXEL  SIZE 50,12
oSaydemo:SetText(cText)
oSayDemo:refresh()
 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Transparent say over a bitmap

Postby Antonio Linares » Mon May 11, 2009 12:06 am

Otto,

Use oBmp:Say( ... ) instead of placing a SAY control on top of it.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Transparent say over a bitmap

Postby Otto » Mon May 11, 2009 7:56 am

Hello Antonio,

thank you for your answer.
I tried yesterday with oBmp:Say before I tried using placing a SAY control on top.

Now as you suggested oBmp:Say I tried again but there are some problems:
I would like to use the oBmp as a kind of pointer to show where I have clicked.

1) I must hide and show the bmp
2) I have to clear the text

Attached I have my test code.
The problem is that you have to click twice to show the bitmap.

And could you please show me how to clear the oBmp:say or how to repaint the bmp without text?

Thanks in advance
Otto


Code: Select all  Expand view  RUN
#include "FWCE.ch"

STATIC oBmp
STATIC oPanArt_WG

function Main()
   local oWnd

   DEFINE WINDOW oWnd TITLE "Bmp-Res"
 
 
    @ 5, 24 BITMAP oBmp FILENAME CURDIR() + "\users.bmp" SIZE 80,20 PIXEL   NOBORDER
        oBmp:hide()
 
   
   ACTIVATE WINDOW oWnd ;
      ON CLICK    neu(oWnd)

return nil


function neu(oWnd)
 
 oBmp:Say(0, 0, "*"+time(),   , , , .T., .T. )  
 oBmp:show()
 
return nil
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 0 guests