Khalid Jayoussi2


I have an MFC ActiveX control with support for SimpleFrame. I added
OLEMISC_SIMPLEFRAME for MiscStatus and call EnableSimpleFrame in the
constructor. I used this control in MFC and Vb and it works fine. but
when I used it in FOXPro, I get a problem with scroll bars. but if I
comment out EnableSimpleFrame the scroll will work fine with Fox Pro.


Re: ActiveX control with FoxPro

dni


What is "EnableSimpleFrame" What Fox Pro version are you using (It is visual)




Re: ActiveX control with FoxPro

Khalid Jayoussi

i am using VPF 6.0 and EnableSimpleFrame used to

Enable the simple frame characteristic for an OLE control.

http://msdn2.microsoft.com/en-us/library/y7y229fx(vs.71).aspx






Re: ActiveX control with FoxPro

dni

How did you insert it As active x bound control or just active x control Can you show some code




Re: ActiveX control with FoxPro

Khalid Jayoussi

well, here what I do

1- I created ActiveX control using wizard without adding any extra code, just the default.

2- I added EnableSimpleFrame to the constructor.

3- I added this ActiveX to the foxpro form as bound ActiveX.

if you need extra information tell me how I contact you and I will send you the whole demo.

Thanks,





Re: ActiveX control with FoxPro

dni

you may try to use something like:

oCon = CreateObject("form")

oCon=NewObject("EnableSimpleFrame"[,Module,...,....])

WITH

.DisplayVerticalScrollBar = .T.

....

...

ENDWITH

oCon.Show(1)

I think in this way you may control scrollbars.







Re: ActiveX control with FoxPro

Khalid Jayoussi

well, I just place now the ActiveX on the form , and when I ran the demo both Horz and Vert scrollbars don¡¯t work properly.

But when I commented out EnableSimpleFrame all work fine. but unfortunately I need to use EnableSimpleFrame.

I appreciate your help

Thanks alot,





Re: ActiveX control with FoxPro

dni

May be is something wrong with file library(containing) "EnableSimpleFrame".






Re: ActiveX control with FoxPro

Khalid Jayoussi2

I found this "Visual FoxPro has limited support for the ISimpleFrame" .do you have more info about it





Re: ActiveX control with FoxPro