AITimer Control

10 Posts
4 Users
0 Likes
44 Views
BO
 BO
(@b-olombelarcinfo-com)
Posts: 196
Reputable Member
Topic starter
 

Hello,

Lot of customer have some problem using Timer ActiveX with new version of PcVue and OS.

The fact is with Windows XP and older version of PcVue these Timer work well but after a migration (From 8.0 to 9.0 and XP to W7) these Timer use a lot of ressources (CPU,...).

Do you have any same feedback, solution,...?

Thanks a lot

 
Posted : 10/06/2013 7:59 pm
RT
 RT
(@r-toussaintarcinfo-com)
Posts: 38
Eminent Member
 

I know that there is a problem when you declare the Timer direct in object thisproject.
(I believe you are not notified on change, or s.th. like that)
But if the timer is declared in a mimic : i never met some problem.
I hope, it will help you, colloc.

 
Posted : 10/06/2013 8:36 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Brice, what do you mean by "these Timer use a lot of ressources (CPU,...)."?
Do you have some figures?

To be sure: Are you talking about the Timer we find in the VBA references on Arc Informatique Common Controls?

 
Posted : 11/06/2013 7:16 am
BO
 BO
(@b-olombelarcinfo-com)
Posts: 196
Reputable Member
Topic starter
 

Hi,

I don't have any figures sorry but I asked to my Customer and it is the AITimer that I talked about.

I will keep you informed.

 
Posted : 10/07/2013 2:33 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

OK.
On my side I have no feed back about this ActiveX because I always forbid my customer to use it!
I always recommend using the AI Common Controls that is window less.

 
Posted : 10/07/2013 2:46 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Nico can you develop what you mean with AI Common Controls? I don't know at all how it works.

It can be very interesting for Essilor project.

 
Posted : 10/07/2013 7:47 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

OK.
PcVue provides a component library called Arc Informatique Common Controls.
So far this library contains only 1 ActiveX: AITimer.

You must use this component when you need a permanent timer instead using the old one needing to be inserted in a mimic.

How to use it?

1. Add the AI Common Control library in VBA. Tools / References / Arc Informatique Common Controls 1.0

2. Use the following code. Example: Use a permanent timer triggering every 1s

Dim WithEvents oTimer As AIComCtl.Timer

Private Sub fvProject_StartupComplete()

Set oTimer = New AIComCtl.Timer
oTimer.Interval = 1000
oTimer.Enabled = True

End Sub

Private Sub oTimer_Timer()

Debug.Print Now

End Sub

That's all folks!

PS: If I am not mistaken, this component is available since the 8.0 :whistle:

 
Posted : 11/07/2013 8:05 am
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Thank you !

And may I know what you are waiting to make a kb article? 👿

 
Posted : 11/07/2013 6:04 pm
BO
 BO
(@b-olombelarcinfo-com)
Posts: 196
Reputable Member
Topic starter
 

ok thank you Nico.

I think if my customer still have the same problem, I will advice your solution.

 
Posted : 11/07/2013 6:11 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Thank you !

And may I know what you are waiting to make a kb article? 👿

Sorry Ludo, I thought everybody knew this ActiveX.
Now it's done: KB657

 
Posted : 12/07/2013 7:16 am