Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Spinner Controls Sometimes Disappear, but Reappear when Mouse Over Collapse All
Subject Author Date
Bill Olson Jan 31, 2012 - 3:34 AM

I have a control bar which is similar to the MDI_DynamicInnerOuterBars example (I started with this sample to add the bars) with an inner bar derived from CExtResizableDialog on the panel.  I have a number of controls on the panel including some edit boxes with spinner controls attached.  Some of the edit boxes and related spinners are always on, others are turned on by various conditions in the program.  I turn the controls on and off with calls to ShowWindow() and EnableWindow(). 

The spinners that are always on have no problems, but the spinners that can be turned on and off sometimes are not visible when they should be enabled and visible, but they appear when I mouse over them.  When the spinners are doing this behavior, the related edit box, and other controls enabled at the same time are visible without any issues.

The only difference in the different spinner controls is some are always enabled and always visible, and some are made visible and invisible in the program and show up invisible sometimes.   I have tried just making the controls invisible with ShowWindow(), but I get the same behavior.

All controls are declared with the Prof UIS functions.

I can send some screen shots if you want.  I haven’t tried reproducing this in a stripped down program yet.  I was hoping you knew what was going on.

Bill Olson Jun 7, 2012 - 8:30 PM

For the sake of someone else who may run into this in the future, I fixed this problem.

The control was inside a Group Box pretty much for aesthetics.  In the .RC file, the Group Box was listed first followed by the edit box and finally the spin control.  For some reason when these controls are made invisible and then made visible, if the Group Box comes first in the .RC file, the spinner will be invisible until moused over when it is made visible.

I moved the Group Box below the Edit and Spinner in the .RC file and it now enables fine.


Bill Olson Mar 8, 2012 - 2:43 AM

I didn’t get notified when you answered this.  Thanks for responding.

The spinner and editor are both disabled and made invisible at the same time.  I never have just an edit box with no spinner.  Would the order with which they were made invisible or visible have something to do with it?


Technical Support Mar 3, 2012 - 6:16 AM

We support only persistently linked spin windows and edit controls. If you need to disable "spinning" for some editor, please hide both editor and spin windows and show another second editor at the same location.

Bill Olson Feb 21, 2012 - 3:40 AM

It’s been three weeks.  No answer?