LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Menu ring control "reset" due to a timer control

I'm using a menu ring control (the kind that provides the user a drop down
list) in an application that also had a background process driven by a timer.
That background process needs to do some screen painting, so calls ProcessDrawEvents().
When that happens, the ring control "resets" to its non-expanded size.
This is *very* frustrating.

I've just realized that I may be able to stop this by disabling the timer
process temporarily with SuspendTimerCallbacks() when the ring control gets
an EVENT_LEFT_CLICK, then turning the timers on again when I get an EVENT_COMMIT.
Anyone have any better ideas?

Thanks.
0 Kudos
Message 1 of 4
(3,261 Views)
Hi,

It is quite strange that you are getting this behavior. I have created a simple code where I resize the ring control, and also call 'ProcessDrawEvents()'. However I do not notice any 'resetting' of size. My example is attached with this email.

If what you are doing is quite different, and this example does not answer your issue, then you can contact our Support group through www.ni.com/ask, and send your code as an attachment.

Regards,
Srini
National Instruments
www.ni.com/ask
Download All
0 Kudos
Message 2 of 4
(3,261 Views)
Srini wrote: (a nice reply that I won't recopy here)

Srini --

Hmm... I'm puzzled. I've now written various variations on my original program,
modeled after yours, and none of them have the problem my original program
did. (Even if the controls being updated are not on the same panel as the
ring control, which was my next guess...) Thanks for your help. It's not
worth your time to look further for the problem.

Kevin
0 Kudos
Message 3 of 4
(3,261 Views)
I have had a similar problem with a menu ring control using LabWindowsCVI
V5.5 with a timer I believe running in the background. I think this was
a bug in V5.5 because when I upgraded to V5.5.1 run time engine (available
on www.ni.com) the problem went away.

"Kevin Holsinger" wrote:
>>I'm using a menu ring control (the kind that provides the user a drop down>list)
in an application that also had a background process driven by a timer.>That
background process needs to do some screen painting, so calls ProcessDrawEvents().>
When that happens, the ring control "resets" to its non-expanded size.>This
is *very* frustrating.>>I've just realized that I may be able to stop this
by disabling the timer>process temporarily with SuspendTimerCallbacks()
when
the ring control gets>an EVENT_LEFT_CLICK, then turning the timers on again
when I get an EVENT_COMMIT.>Anyone have any better ideas?>>Thanks.
0 Kudos
Message 4 of 4
(3,261 Views)