LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Callback Functions

How do I call a callback function from a regular function?


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 5
(3,851 Views)
Is it a callback for a user gui control? If so, then you might use the
automatic code generation to create a nearly-empty callback and then cut
'n paste the body of your regular function as needed.


B


mibik@my-deja.com wrote:
>
> How do I call a callback function from a regular function?
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

--
ande at san dot rr dot com
0 Kudos
Message 2 of 5
(3,851 Views)
Thanks. I just starting doing that. Is there a way to programatically
cause and EVENT?


In article
,
bogus_address@nospam.org wrote:
> Is it a callback for a user gui control? If so, then you might use
the
> automatic code generation to create a nearly-empty callback and then
cut
> 'n paste the body of your regular function as needed.
>
> B
>
> mibik@my-deja.com wrote:
> >
> > How do I call a callback function from a regular function?
> >
> > Sent via Deja.com http://www.deja.com/
> > Share what you know. Learn what you don't.
>
> --
> ande at san dot rr dot com
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 4 of 5
(3,851 Views)
There is differents ways :
1) use CallCtrlCallback() : this function call directly the function
attached to a control
without giving time to the systeme to process the events....it's not really
a event.
2) Use PostDeferedCall() to call a function just after the return of the
current callback. This
function call a function in which you can call CallCtrlCallback()
3) use the windows events and catch them with a specific callback.

a écrit dans le message : 7o714u$k4c$1@nnrp1.deja.com...
> Thanks. I just starting doing that. Is there a way to programatically
> cause and EVENT?
>
>
> In article
> ,
> bogus_address@nospam.org wrote:
> > Is it a callback for a user
gui control? If so, then you might use
> the
> > automatic code generation to create a nearly-empty callback and then
> cut
> > 'n paste the body of your regular function as needed.
> >
> > B
> >
> > mibik@my-deja.com wrote:
> > >
> > > How do I call a callback function from a regular function?
> > >
> > > Sent via Deja.com http://www.deja.com/
> > > Share what you know. Learn what you don't.
> >
> > --
> > ande at san dot rr dot com
> >
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.



[Attachment Pierre DURIEZ.vcf, see below]
0 Kudos
Message 5 of 5
(3,851 Views)
In article <7nprrj$o82$1@nnrp1.deja.com>,
mibik@my-deja.com wrote:
> How do I call a callback function from a regular function?
>
Just call the function with it's name without CVICALLBACK.
Give care about the parameter oif the function IF you need them inside
the function. Often it is sufficient to replace the 'event' by
EVENT_xxxxxxx constant you have used inside your function code, replace
the values you have not used by 0 or 1

Good Luck
Urs


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 3 of 5
(3,851 Views)