change color of part of a screen

change color of part of a screen

Postby Jeff Barnes » Sat Mar 17, 2007 2:39 am

Hi Everybody,


I would like to change the background color of "part" of my screen.

In the following screen shot clip, I would like to change the background whenever the waveform dips below the red line. I need to still see the waveform. I can get the screen co-ordinates, I just need to know the color changing part.

Is this possible?

Thanks,

Jeff


[img]
www.can-soft.net/dl/ScreenShot.JPG
[/img]
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » Sat Mar 17, 2007 6:32 am

Jeff,

If you don't use a dooted red line (use a continuous one) then you can use FloodFill()
regards, saludos

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

Postby Jeff Barnes » Sat Mar 17, 2007 4:24 pm

Antonio,

Take a look at this second screen shot ... This is an idea of what I am trying to do.


[img]
www.can-soft.net/dl/ScreenShot2.JPG
[/img]


Thanks,
Jeff
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby James Bott » Sat Mar 17, 2007 4:55 pm

Jeff,

Try drawing a box then use floodFill(). Use the same color pen for both.

Maybe you will have to redraw the gridlines and graph afterward.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Sat Mar 17, 2007 5:53 pm

Jeff,

Do you mean those vertical gray rectangles ?
regards, saludos

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

Postby Jeff Barnes » Sat Mar 17, 2007 6:12 pm

Antonio,

Yes, the grey areas are what I would like to add when needed.


Jeff
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » Sun Mar 18, 2007 12:12 am

Jeff,

You may paint them using Rectangle() before painting the lines
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 74 guests