Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Images on menu bars
Message
 
To
18/01/2002 23:48:14
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00607183
Message ID:
00611309
Views:
24
>I want to create a shortcut menu with 'fatter' bars than the default, and I also want images to the left of each prompt. The problem is that no matter what font size I select for each bar, the image still stays the same size (ie. very small). It makes no difference whether I use .jpg, .gif or .bmp images.
>
>Is there any way of getting the image size to increase to fill the bar height? If not, does anyone know of a utility which uses a grid to achieve a similar effect?
>
>TIA,
>Alan Harris-Reid

Hi Alan,

It is pretty easy to get the grid to do so. You can add the Image control into the column and use any of Dynamic... properties to call the user defined function which will return the same value as it is currently in this property, but on the way the UDF will do something else - i.e. set the correct picture for each line.
You can place the picture filenames in the grid RecordSource table.
thisform.myGrid.Column1.DynamicFontBold = "myUDF()"

* MyUDF() && User defined function to fool the grid.
thisform.myGrid.Column1.Image1.picture = myGridRecordSourceTable.Filename
RETURN thisform.myGrid.Column1.DynamicFontBold 
Take a look also at file#10003 "Icons in menu for any VFP version" and see if it can help you in any ways.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform