Cancel
Showing results for 
Search instead for 
Did you mean: 

Update Component Highlight while a Winform is Active

Pioneer
Pioneer

Is it possible to update a components hilight status while a winform is active? I tried the obvious Component.Highlight() with no change.

3 REPLIES

Re: Update Component Highlight while a Winform is Active

Siemens Phenom Siemens Phenom
Siemens Phenom

 

I have seen intermittent cases where I could not get Highlight() to perform quite as expected. 

 

Somtimes you can fix this if you add Component.RedisplayObject() after you call Highlight().

 

If that doesn't work, you can try the UF wrapper:

 

ufs.Disp.SetHighlight(yourObject.Tag, 1)

 

And then you might also need

 

ufs.Disp.RegenerateDisplay()

 

Please let us know if one of these works in your case.  I should mention that the cases described above were not specifically tested with a winform displayed.

 

Thanks!

 

Re: Update Component Highlight while a Winform is Active

Pioneer
Pioneer

I tried both methods and neither worked. The ufs.RegenerateDisplay() does make the screen flash but the components are still not taking the highlight.

Re: Update Component Highlight while a Winform is Active

Siemens Phenom Siemens Phenom
Siemens Phenom

 

In that case, please log an IR with GTAC so we can investigate thoroughly.

 

Also, do you see the same behavior with any assembly?  If we don't need your parts to reproduce the issue it speeds everything up a bit.  Thanks!