>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()"
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