Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual bar in a grid
Message
De
04/12/2007 09:52:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/12/2007 09:46:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01273044
Message ID:
01273052
Vues:
13
>>>Hello:
>>>
>>>I have this situation:
>>>
>>>My app distributes delivery orders to various trucks. I want to have a grid. the first column should show the % of the truck capacity already used. I'd like to show it as percent, but also I'd like te background to be a bar whose length would correspond to the % of the truck capacity used ie if the truck is 75% used, the bar should cover 3/4 of the textbox length. Also I'd like to color the bar (red for >90%, yellow for 70-90% and green for less).
>>>Any help?
>>
>>You could put there colored containers.
>>
>>Cetin
>Exactly, but I can't imagine how to distribute the bar length.


You have the value (0-100). Just set the width of the bar and color if necessary. Check Images, containers in grid FAQ #7934 to make it work in a grid.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform