Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browse window in Color
Message
From
20/04/2014 17:50:03
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
20/04/2014 04:30:26
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01598839
Message ID:
01598848
Views:
56
>Hi Cyrus,
>I have never done this. But there was a trick. For what I remember a browse window is a grid that behaves in parts like a window, in other like a grid (even if it is called by a non OOP command)
>
>try (untestet)
>
>SET COLOR OF SCHEME 1 TO GR+/B, RB+/R, G/R+
>DEFINE WINDOW browse2 IN DESKTOP  FROM 1, 1 TO 25, 100 COLOR SCHEME 1
>BROWSE COLOR SCHEME 1 NAME oBrowse_1 WINDOW browse2 
>oBrowse_1.BACKCOLOR = GETCOLOR()
>oBrowse_1.Column1.BACKCOLOR = GETCOLOR()
>*etc
>
There's also the browse ... name oGrid, which is the shorthand for getting an object reference to the grid (which browse command will create with default PEMs anyway). After that, we can do whatever we want with oGrid - set the dynamic properties of its columns, set its colors, bindevents() to any of the grid's events or proeprties... without having to actually design a grid.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform