Page 1 of 1
Disappearing check boxes
Posted: Tue Apr 12, 2016 8:17 am
by omni
Roger,
Just noticed that if you have a checkbox without a 'prompt' and move your focus to another app, or similar, and come back the check box disappears until your mouse goes on top of the checkbox location.
We have many checkboxes where the user description is to the left, so no prompt assigned to the checkbox. I think this is new to my latest express as it does not happen at user sites, but does here now in our office. Just noticed it today.
Fred
Omni
Re: Disappearing check boxes
Posted: Tue Apr 12, 2016 12:35 pm
by rdonnay
Make sure to use the clause NODISAPPEAR if you don't want it to disappear.
However, this clause cannot be used with the clause HIDEMOUSE or it could cause memory fluctuations and may require regular calls to MemoryDeFibrillate() in another thread.
Just kidding of course.
Are you sure that your checkboxes have a parent clause?
Re: Disappearing check boxes
Posted: Tue Apr 12, 2016 1:33 pm
by Auge_Ohr
omni wrote:We have many checkboxes where the user description is to the left,
hm ... this is not the normal Way ...
in my (old) _dcxbutt.prg i can see all those BS_* Constant but i miss BS_LEFTTEXT or BS_RIGHTBUTTON ?
this is what "Control Spy" told me
https://msdn.microsoft.com/en-us/librar ... 85%29.aspx

- Left_Checkbox.jpg (92.25 KiB) Viewed 10083 times
Re: Disappearing check boxes
Posted: Tue Apr 12, 2016 1:52 pm
by omni
Guess I should have copied the code so you would see what I was talking about.
Same menu option:This one does not disappear.
@ 01,35 dccheckbox brokonly prompt "Outside Carriers Only"
This one does disappear when focus is lost (or something?) to our app:
@ 06,48 dcsay "Include Days " saysize 24 SAYRIGHTBOTTOM
@ 06,73 dccheckbox prtdays
We only do this to line up with other gets (not check boxes) on the same 'column'.
(there were 4 like this on this menu option that disappeared until mouse was hovered over it)
Fred
Re: Disappearing check boxes
Posted: Tue Apr 12, 2016 1:53 pm
by rdonnay
Guess I should have copied the code so you would see what I was talking about.
Yes, I would need to see code.
Re: Disappearing check boxes
Posted: Tue Apr 12, 2016 2:39 pm
by omni
That is the code above...fairly simple example. Unless you need something else to view.
Re: Disappearing check boxes
Posted: Tue Apr 12, 2016 4:37 pm
by rdonnay
There could be other objects that are interfering, maybe siblings sharing the same parent.
I need to see more than this.
Better yet, give me something I can compile and run.
Re: Disappearing check boxes
Posted: Fri Apr 15, 2016 7:17 am
by omni
Apparently only occurs in one folder on our server. The one we use to update documentation, but it was just copied over from production folder. Very odd, but not going to try to figure it out. Some dll must be causing the problem