Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid control which depends on form's property
Message
From
25/07/2001 06:01:28
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00534613
Message ID:
00534857
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
Hi!

You can add control to the grid column on the fly in the Init of the grid in case thisform.ProcessType do not change in porocess of user working with form. Otherwise DynamicCurrentControl usage is not avoidable.

The Dynamic* expressions are evaluated ONLY when grid draw self. This can happen only in following cases:

- Somewhere Grid.Refresh is called

- Somewhere Grid.SetFocus is called or grid container SetFocus and grid is a first control that gets focus in that container.

- Show is called for the form

- Refresh called for the form or any parent container for grid.

- Grid columns automatic re-binding happened and _VFP.AutoYield=.T., so grid refreshed before next line executed after command caused auto re-binding (usually record source property assign.

HTH.

>Hi everybody,
>
>I'd like to make town textbox to be a combobox in my grid, if thisform.ProcessType<>'prclproc' Basically, I can just set readonly property of combobox to true in case of "prclproc". But this doesn't seem elegant to me. I'm thinking about placing both controls in the grid and just assigning current control depending on condition. What do you think about this idea?
>
>BTW, I also found, that if I have DynamicBackColor (or ForeColor) on the grid set in its Init method, it seems to be executed for each visible cell, when grid is instantiated. Is it a normal behavior?
>
>Thanks in advance.
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