Page 1 of 1
New Objects ...
Posted: Mon Feb 07, 2011 8:37 am
by lambor734
Hi ,
I love the new version of Pb, these objects exist.
1 - Grid Control
2 - ImageScroller With the ability Zoom & ...
3 - Timer Like Vb
Is whether, in the next version of PB these Objects exist?

Re: New Objects ...
Posted: Mon Feb 07, 2011 11:41 am
by c4s
lambor734 wrote:Hi ,
I love the new version of Pb, these objects exist.
1 - Grid Control
2 - ImageScroller With the ability Zoom & ...
3 - Timer Like Vb
Is whether, in the next version of PB these Objects exist?

@ 3.
Do you mean timers like AddWindowTimer()?
Re: New Objects ...
Posted: Mon Feb 07, 2011 1:32 pm
by lambor734
No No, timers like object in VB.I want to do this object exist.

Re: New Objects ...
Posted: Mon Feb 07, 2011 1:56 pm
by Kukulkan
Why don't you simply start a thread with the code you desired for the timer-control? As PB is not OOP, a object like a timer-control makes simply no sense to me...
A good, builtin grid-control would make sense. A image-viewer gadget seems not as important to me.
Kukulkan
Re: New Objects ...
Posted: Mon Feb 07, 2011 1:57 pm
by eesau
How do timer objects work in VB?
Re: New Objects ...
Posted: Mon Feb 07, 2011 2:08 pm
by Kukulkan
Hi,
How do timer objects work in VB?
You create a timer-object (gadget) on your form. Upon this, you define an intervall in the properties of this object. Now you can insert code to the timer-event fired in this object (like you can insert code to every event of any other gadgets). The event gets fired automatically in the given interval and executes the timer-code.
Kukulkan
Re: New Objects ...
Posted: Mon Feb 07, 2011 2:19 pm
by C64
That's what AddWindowTimer() does, except not asyncronously. Is the VB object asyncronous?
Re: New Objects ...
Posted: Mon Feb 07, 2011 3:23 pm
by Kukulkan
Is the VB object asyncronous?
Yes. I use CreateTask() for such functionality. It is, in simple cases, not really more work than placing a timer-object. Additionally, threads are much more flexible and are using hardware-ressources more effectively (multi-core CPU, hyperthreading).
Kukulkan