Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
H E L P !!!! Events aren't fired
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00525910
Message ID:
00526178
Views:
28
This message has been marked as the solution to the initial question of the thread.
Hi!

After reading this thread, I got another idea hoe to workaround this.

Make a VFP class for that ActiveX control (VFP allows this and it is great!). Than you can re-create that ActiveX control programmatically by Visible=.F., RemoveObject, AddObject and visible=.T. each time control returned to main form from the modal form. Of course, this is in case when populating of the list each time after re-creating ActiveX is not that long.

We used completely another interface approach - instead of modal forms we switch to another page of the page frame, page frame is without tabs, so it takes no space and looks much like a modal form. This way do not cause mentioned behaviour, however you will require to set Visible of the ActiveX to .F. when switching to another page of pageframe, otherwise your ActiveX will appear on all pages ;)

HTH.

>Hi all,
>I need help URGENT!
>
>I need to know why in some cases the events of an activeX control isn't fired.
>I have a ListView in a form of a formset (modaless). It works ok. By a command button click, I open a modal form who have a VFPDatePicker control (I download from file section) When I dropdown the control, the DateClick event isn't fired when I click on a date. Neighter KeyPress event.
>
>That isn't all! In this last form, clicking a button, another modal form is open with a ListView control. It is filled OK but... ItemClick, columnclick,etc.. events isn't fired.
>
>If I run this modal forms from the Command Window, its works OK.
>
>This is no the first time I have this problem. With bbListView control, I has the same problem.
>
>All controls are OleContainer subclassing the activeX controls.
>
>Please, Help me as soon as possible
>Thanks very much in advance.
>
>Esteban
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
Next
Reply
Map
View

Click here to load this message in the networking platform