Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interface idea...
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00617188
Message ID:
00617197
Views:
19
Hi!

Just use the grid insetad of list box. If you want to make it look lik a list box, take a look to the FAQ#8092. To display images in some grid's column, do following:

1. Put an image control into the grid column.
2. Set the DynamicCurrentControl for that colum to expression like following:
thisform.UpdateImageForEachGridRow()
3. In the UpdateImageForEachGridRow methoid of the form (added as custom method), put a code to update the image picture. That code will run for each row, and changes inthe appearance o fthe Image control will be correctly displayed in the appropriate grid row. Example of such code for your case:
with thisform.MyGrid.Column1.Image1
    if Employees.Male
        .Picture = "Male.gif"
    else
        .Picture = "Female.gif"
    endif
endwith
return "Image1" && this required for correct functionality of this method as 
                && value for DynamicCurrentControl
This way you can display in grid even photo of each employee. Just store a path to bitmap in the field in Employees table, and assign that image path to the Picture property in the method that running for each row. You can use any Dynamic* property of the column for that, but keep in mind that method should return correct appropriate value for expression in chosen Dynamic* property.

HTH.

>Hi I have seen an interface idea that would suit a project I am working on at the moment but I an not sure what controls are best to use and how the put it all together... I'll explain...
>
>It was in a Personnel package - the programmer had created 32x32 icons - one for male & one for female... In the employees screen there was a large white area like a huge listbox? with all the employees male and female represented by the icons with their name underneath. Double clicking on an employee launched that employees details screen. This is very similiar to what I want to do...
>
>Any ideas to get me moving in the right direction?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform