Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing Containers in Grids
Message
 
To
15/06/2004 12:10:25
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00913671
Message ID:
00913937
Views:
19
Mike,

I will give it a whirl later today.
Tks.

>Hi Allan
>
>What you could do is set the currentcontrol to the container name. Set the controlsource of the textbox to what you would have as the controlsource of the column. Leave the column controlsource empty. It doesn't have any effect in this case. Set the tabstop of the button to .F. I don't see why the user would want to tab to the button. They'd probably just click it.
>
>Then you'll have to start handling other side effects, such as row/column navigation.
>
>>Mike,
>>
>>As I suspected.
>>However, how * do * I accomplish the task?
>>I have seen applications which have a grid to enter, let's say an item code, with a command button beside it with a magnifying glass or binoculars.
>>I know from some technical docs for an app that we resell that the text box and command button are in a container. However, the docs don't explain 'how' it works.
>>
>>
>>>Looking at the drop down for the current control in the property sheet, it appears you cannot access the objects inside the container.
>>>
>>>>Luis,
>>>>
>>>>Just double-checked.
>>>>It is 'none'.
>>>>
>>>>>Hi Allan,
>>>>>I suspect you might have "something" in the ControlSource of the base class
>>>>>for the TextBox
>>>>>
>>>>>
>>>>>>I have created a container with a text field and a command button which I would like to include in a grid.
>>>>>>It will be used to enter a value which will be looked up in another table. The user can also click on the command button which will display all of the look-up values (in another grid) from which they can pick one.
>>>>>>The problem that I am having is setting the 'current control' in the column.
>>>>>>If I try to use the containername.textfield I get an error 'Expression evaluated to an illegal value'. I have set sparse to false.
>>>>>>
>>>>>>Previously, I used a combo box in the column but am now moving away from them due to a bug that was documented here.
>>>>>>
>>>>>>Any suggestions as what I am doing wrong with the container or a better way to accomplish the same task are appreciated.
>>>>>>
>>>>>>TIA.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform