FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Turn off SetDlgGradient() - stop
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Turn off SetDlgGradient() - stop
Posted: Fri Jul 13, 2012 10:18 PM

To All

I have been working on a Picture Zoom routine ( with Uwe's help ) and have just realized that the SetDlgGradient() ( global ) function is causing my picture zoom routine to fail.

Is there a way I can STOP at run-time the SetDlgGradient() global settings for a single routine and then start it up again when I close my routine ?

Thanks
Rick Lipkin

Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: Turn off SetDlgGradient() - stop
Posted: Fri Jul 13, 2012 11:08 PM
Hi Rick,

You can save the gradient in a variable when you activate it
Code (fw): Select all Collapse
 SetDlgGradient( aDlgActual := aDlgGradient[( 1 + nRandom (3) ) ] )

To deactivate:
Code (fw): Select all Collapse
 SetDlgGradient( )

and then set it again....
Code (fw): Select all Collapse
 SetDlgGradient( aDlgActual )

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Turn off SetDlgGradient() - stop
Posted: Sat Jul 14, 2012 02:10 PM

Bayron

Thank you .. a simple solution ..

Rick

Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: Turn off SetDlgGradient() - stop
Posted: Sat Jul 14, 2012 03:38 PM
As I always say:

FiveWin, One line of code and it's done...

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Continue the discussion