Can we modify class #DEFINE

Can we modify class #DEFINE

Postby TimStone » Tue Dec 29, 2015 8:02 pm

In the class for tget, we have the following:

#define COLOR_GRAYTEXT 17

I realize this is a Windows standard. It is used when displaying a Read Only field.

Some of my clients say it is too hard to read. So normally, I take the tget.prg, modify the value to 1, and link that into the application. However, anytime there are changes to tget.prg I have to copy over the new source, modify it, and then re-link. With all of the changes that come along, that is an annoying task.

So, is there anyway I can setup the MAIN.prg to use the value I want and ignore the #define in the class ?

I've asked this in the past and there wasn't, but just in case something changed .... Thank You.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Can we modify class #DEFINE

Postby Antonio Linares » Tue Dec 29, 2015 8:27 pm

Tim,

We can change it into a CLASSDATA.

We will implement it for FWH 15.12
regards, saludos

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

Re: Can we modify class #DEFINE

Postby TimStone » Tue Dec 29, 2015 8:31 pm

That would be helpful. I have no problem myself but the one client ( and others will follow ) use older monitors and they are quite picky.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Can we modify class #DEFINE

Postby Antonio Linares » Tue Dec 29, 2015 8:31 pm

done :-)
regards, saludos

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

Re: Can we modify class #DEFINE

Postby TimStone » Tue Dec 29, 2015 8:43 pm

The other problem, however, is the xbrowse column auto sizing issue that I found in 15.10. I had to revert that program back to 15.06 and it works perfectly. So hopefully I can find the problem for that before 15.12. Exact same code is fine with .06, but scrunches columns in 15.10. I will test it shortly in 15.11
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

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