FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour change color of part of a screen
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
change color of part of a screen
Posted: Sat Mar 17, 2007 02: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


www.can-soft.net/dl/ScreenShot.JPG
" alt="" loading="lazy">
Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
change color of part of a screen
Posted: Sat Mar 17, 2007 06: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
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
change color of part of a screen
Posted: Sat Mar 17, 2007 04:24 PM
Antonio,

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


www.can-soft.net/dl/ScreenShot2.JPG
" alt="" loading="lazy">


Thanks,
Jeff
Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
change color of part of a screen
Posted: Sat Mar 17, 2007 04: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
change color of part of a screen
Posted: Sat Mar 17, 2007 05:53 PM

Jeff,

Do you mean those vertical gray rectangles ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
change color of part of a screen
Posted: Sat Mar 17, 2007 06:12 PM

Antonio,

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

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
change color of part of a screen
Posted: 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

Continue the discussion