Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GoFish
Message
De
17/04/2015 11:18:26
 
 
À
17/04/2015 08:17:11
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Re: GoFish
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01618623
Message ID:
01618635
Vues:
97
Yes, you can control the grid colors...

Use this PRG and place it in the same folder as the GoFish.App. Modify as needed to set the colors you want. Basically, this PRG is called when GF is started and it give you full control over how the grid is formatted.

Good luck!
*-- Sample to format GoFish grid color. Provided by Jim R. Nelson
*-- Assigns row colors based on field MatchType:
*-- Certain color for Comments, bold for Filenames and Class Names, red for Procedures, Functions, Methods, etc.


Lparameters toGrid, tcResultsCursor

Local lcComments, lcCommentsColor, lcDefs, lcDefsColor, lcOthers, lcOthersColor, lcProcs
Local lcProcsColor

lcProcs         = 'Inlist(' + tcResultsCursor + '.MatchType, "<Method>", "<Procedure>", "<Function>")'
lcProcsColor = 'RGB(255,0,0)'

lcDefs        = 'Left(' + tcResultsCursor + '.MatchType, 2) = "<<"'
lcDefsColor    = 'RGB(0,0,0)'

lcOthers      = 'Left(' + tcResultsCursor + '.MatchType, 1) = "<"'
lcOthersColor = 'RGB(0,128,0)'

toGrid.SetAll ('DynamicForeColor', 'ICase(' +    ;
      lcProcs + ', ' + lcProcsColor + ', ' +    ;
      lcDefs + ', ' + lcDefsColor + ', ' +        ;
      lcOthers + ', ' + lcOthersColor + ', ' +    ;
      ' Rgb(0,0,0))')

lcComments        = tcResultsCursor + '.MatchType = "<Comment>"'
lcCommentsColor    = 'RGB(224,224,224)'

toGrid.SetAll ('DynamicBackColor', 'ICase(' +        ;
      lcComments + ', ' + lcCommentsColor + ', ' +    ;
      ' Rgb(255,255,255))')

toGrid.SetAll ('DynamicFontBold', 'Left(' + tcResultsCursor + '.MatchType, 2) = "<<"')
.
>Hi Matt,
>
>procrastinating the next job, I gave GoFish a try. No need yet, but one never know.
>
>Not that bad.
>
>Except:
>
>-Foreign Date(Time) format, Set Point. Should respect SYSFORMATS, best the settings of the active IDE.
>-The colors you use. Can one alter them? Red Green color blindness is not that rare, I have problem with some of your colors. It's not as bad as red-on-blue, but it could be better.
>-If I run in a different IDE GoFish brings up the settings of the last run. They have nothing in common except they are VFP. The way Code Reference basically bound to active project / projects in IDE is not that bad.
>-The prog writes in some strange place where I do nothing with VFP.
>
>What regexp do you use?
>If in regex, what are the values for Global and MultiLine and can I change them (I guess IgnoreCase ;) )
>
>Lutz
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform