Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sizing objects in a grid column
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00036205
Message ID:
00036805
Views:
42
>>>>>>>I've put a command button in a grid column however it appears quite small. The grid column has been resized to that it is relatively large and I need the button to have the same height and width. Can this be done in the designer or must I use only code. I'm sure I'm missing something simple here.
>>>>>>>
>>>>>>>Thanks,
>>>>>>>Steve Despres
>>>>>>
>>>>>>when running? i tried it and it filled the column wo/ changing anything. resize the col or row when running and the button expands/shrinks to fill space...
>>>>>
>>>>>Hi Dave,
>>>>>
>>>>>When running, the button doesn't even show up. I tried setting .cmdButton1.Visible = .T. in the forms init but it didn't show up.
>>>>>
>>>>>I'm still looking at it.
>>>>>
>>>>>Thanks,
>>>>>Steve
>>>>
>>>>check the sparse setting. also, it should be visible in any case when you click in the column...
>>>
>>>Sparse is set to .F. I'm in the form designer and even when I remove the text1 textbox and then drop on the command button, it is this tiny thing not filling the column dimensions. The buttons height and width properties are read only so I cannot change them in the designer.
>>>
>>>Steve
>>
>>Dave,
>>
>>It seems that the grid wants the recordsource property to be filled. Once I did that, the buttons came to life as I thought they should have.
>>
>>Thanks,
>>Steve
>
>
makes sense. also, the 'button' you see when designing the form is just telling you what control is active in that column. the height and width are read only because vfp sizes the button to fit the size of the column (and row). when you run it, it will look right and fill the desired area...

Dave,

Now here's a good one. I'd like the captions on these buttons to be dynamic, to reflect some value in a table. Without a .ControlSource property, I've not been able to do this. Any ideas?

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform