Re: [WIN32LIB] Transparent Labels

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 10 Mar 2003 18:51:43 -0500, <thomas at columbus.rr.com> wrote:

>
> The first solution that popped into my mind when I read your message was
> to make use of a back buffer. This would involve drawing all of your
> text to a picture (pixmap?) in the background then copying that back
> buffer to your window all at once. This would eliminate the flashing of
> text labels for the most part.
>
> It's less complicated than managing a fleet of semi-transparent floating
> text labels, no?
>
> ~Tom
>
> -----Original Message-----
> From: Travis Beaty [mailto:t_beaty at mchsi.com] Sent: Monday, March 10, 
> 2003 3:01 PM
> To: EUforum
> Subject: [WIN32LIB] Transparent Labels
>
> Hello everyone!
>
> I have a quick question.  I am working on a project, but not in Euphoria
>
> due to the fact that I haven't been able to create a transparent label 
> using win32lib.ew.  The basic idea is that the main form has, as a 
> background, an image.  The labels are placed on top of this image, and 
> ideally, the image would be seen through the label, so that the text 
> would appear to be written directly on top of the background image. Yes, 
> I suppose I could use putsw to write the text directly on the form
>
> using wPuts(), but I am worried about a "flashing" effect, as most of the 
> text would need to be updated once per second, and a few every 1/8 
> second, so this might be a little better achieved via a transparent label 
> and setText().
>
> I've been able to do this with Borland C++, using VCL and transparent 
> labels, but I would much, MUCH rather write this application in
> Euphoria.
>
> Any ideas?

There is no reason why you can't use win32lib. All you have to do is create 
an owner-drawn window and manage all the drawing yourself.

I really must take the time to knock up a demo of this technique.

-- 

cheers,
Derek Parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu