Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying pictures in grid
Message
From
01/05/2001 07:15:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/05/2001 06:20:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00501889
Message ID:
00501892
Views:
20
>Could anyone point out a source or give an example how dynamically display pictures in a cell based let's say for simplicity on logical field value and resulting in two pictures checked/unchecked. I understand that it resembles checkboxes and column.sparse=.f. and it works with general field and current oleboundcontrol in cell , but can't figure out the way to make it work without saving pictures in a table. Something like : if field .t. show green "ticked" picture in grid cell otherwise red "crossed out" picture .
>
>Thank you
>Michael

Michael,
As I get it you only want it for checkboxes not image displaying (if image displaying check FAQ section).
For checkbox :
-Add checkbox to grid.columnx
-Set checkbox.downpicture to 'ticker bitmap'
-Set checkbox.picture to 'crossed out bitmap'
-Set checkbox.caption to none
-Set checkbox.style to graphical
-Set column.dynamiccurrentcontrol property to checkbox (typically 'check1')
-Set column.sparse to .f.
Done:)
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform