Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vmp4, grid.addcover()
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00451016
Message ID:
00451091
Views:
32
Barbara,
I think what George is talking about is blowing the grid completely to hell by changing the controlsource and having to rebuild it from scratch. Column headers, widths, etc.

If this is the case, you should be able to simply call the SetPosition method of the grid cover. If the grid's name didn't change the SetPosition method gets an object reference to the grid and positions itself based on where the grid currentl is.

FWIW, the cover is used really so the icon does not change to the text icon when hovering over the textboxes within a grid. Mostly this is good when your grids are readonly and you don't want to give the user the notion that they might be able to edit.

>MY question is why are you re-adding AddCover()? I place it on the grid in the ShellAdditionalInit() code and never touch it again. All my grids use parameterized views, so they are requeried constantly. I've never had any problems.
>
>I thought (may be wrong) that AddCover was simply a user-interface cover which didn't affect the data handling but kept users from editing.
>
>Barbara
>

>>To VMP4 gurus, let's say I want to re select-sql for a temp table associated with a grid. I then programatically assign properties to the grid such as record source, heading info, and so on.
>>
>>My question is how to re-addcover(). What I tried (failed) to do was
>>
1)check for the object, if object exists, removeobject() from the parent
>>
2)Call .AddCover() again?
>>

>>How do I do this? thanks in advance.
>>
>>George.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform