Hi Yuri,
Have read various threads which report issues trying to dynamically move ActiveX controls. Most suggest putting a Container around the ActiveX control and moving the Container.
Have opted to add the second control programatically in the Form's Init method. Since I don't need to change position of the ActiveX Control after the Form has been initialized, find that this works for this particular application.
>Marshal,
>
>- If you add the third control, are you able to change its position?
>- If you create the similar but simple form having just two controls, and without any code, then are you able to change the second control position from the VFP command window?
>- With two controls, does it happen on any other PC, or on the one particular PC only?
>
>
>>Hi Yuri,
>>
>>The Top position is changed to the correct value, but the control does not reposition.
>>
>>
>>Marshal
>>
>>>Can you change the TOP property from the command window and see what happens? Like:
>>>
>>>
>>>do form formname NANE Hi
>>>acti screen
>>>?hi.olecontrol2.Top
>>>hi.olecontrol2.Top=hi.olecontrol2.Top +10
>>>?hi.olecontrol2.Top
>>>
>>>
>>>Has it been moved?
>>>
>>>
>>>>Hi Yuri,
>>>>
>>>>Graphics not the problem...Tried your suggestion...didn't work.
>>>>
>>>>
>>>>>Probably there are problems with graphics on the PC. Try:
>>>>>- make form invisible/minimized while repositioning controls,
>>>>>- repaint/refresh the form after repositioning controls
>>>>>
>>>>>
>>>>>
>>>>>>Hi All,
>>>>>>
>>>>>>I have a Visual Foxpro SP1 form with 2 ChadoSpellText Controls (OleControls).
>>>>>>
>>>>>>There is Code called from the form's INIT method which depending on Data conditions will reposition the Controls.
>>>>>>
>>>>>>What I have observed is that one Control repositions correctly and the 2nd does not, even though it's Top Property shows the correct adjusted value in the Watch window.
>>>>>>
>>>>>>Have also tried setting the Top Property in the OleControl's INIT method with the same result.
>>>>>>
>>>>>>Am stumped on how to why this is occuring or how to make this work.