Answered by:
Some labels highlight on focus and some don't in form

Question
-
Hey guys I have a form that when I get into the textbox to input data, the label that corresponds to that textbox slightly changes in color to indicate that it is the active field. I added 2 extra fields to my form, but the labels aren't doing the same thing. I have gone through every single property on all the textboxes AND labels AND form and can't find any function that identified the labels. Anyone know anything about this?Friday, August 25, 2017 1:02 PM
Answers
-
It seems to be the presence of a framing rectangle which is causing this. I stripped the form down, removed the form module and left just Box610 and a few of the text boxes with labels that the box contains (I removed the sub frames too). I unbound the form and the controls and removed all embedded macros.
I can see what you describe.
When you remove Box610 there's no highlighting at all.
Unless anyone knows different, I think it's probably an undocumented quirk and guess that the 2 controls that don't highlight were added subsequently to the others or either before or after the frame was added.
I don't think it's real highlighting anyway as it seems to be just a slight darkening of the fore colour. If it's a feature you want then perhaps it would be better to code it yourself with the enter/exit or got/lost focus events of the text boxes.
HTH
Jon Lewis
- Marked as answer by InnVis Friday, September 1, 2017 12:47 PM
Friday, September 1, 2017 12:27 PM
All replies
-
Check in the database Modules for a class module that may have been written to do this.
You can set it to be a default event handler that would not show in the normal form controls properties
Friday, August 25, 2017 4:29 PM -
No modules doing this, checked.Friday, August 25, 2017 6:11 PM
-
Hey guys I have a form that when I get into the textbox to input data, the label that corresponds to that textbox slightly changes in color to indicate that it is the active field. I added 2 extra fields to my form, but the labels aren't doing the same thing. I have gone through every single property on all the textboxes AND labels AND form and can't find any function that identified the labels. Anyone know anything about this?
Hi Jamie,
Did you check the Enter event of the input control?
Imb.
Friday, August 25, 2017 6:30 PM -
Yup, there's nothing. No code.Friday, August 25, 2017 10:07 PM
-
Hello,
Could you reproduce the issue for a new created form? You may share the db here if the issue exists in all forms.
If the issue only exists in one form, please re-create the form to check if the issue persists.
Regards,
Celeste
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Monday, August 28, 2017 3:06 AM -
Hello,
If your issue has been resolved, i suggest you share your solution here or mark helpful post to close this thread. Thanks for your understanding.
Regards,
Celeste
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Thursday, August 31, 2017 2:57 AM -
Haven't figured it out yet. Moved on to a more important bug in the database, but I will come back and update once I figure what's going on.Thursday, August 31, 2017 3:12 AM
-
You could share your database here, we could test whether the issue is related to code or your environment or something else.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Thursday, August 31, 2017 3:22 AM -
Sure, I'd appreciate that.
Thursday, August 31, 2017 11:37 AM -
Hello,
Your form is complicated. How could I reproduce your issue? Which form should I use and which label would be highlighted?
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Friday, September 1, 2017 2:59 AM -
Celeste, I apologize for not explaining it ahead of time! In order to replicate the issue just open up any contact as if you were going to input data. The frmContactEdit will populate, simply tab through the fields there. Every field slightly highlights except "Blackberry" and "Personal E-mail."Friday, September 1, 2017 11:02 AM
-
It seems to be the presence of a framing rectangle which is causing this. I stripped the form down, removed the form module and left just Box610 and a few of the text boxes with labels that the box contains (I removed the sub frames too). I unbound the form and the controls and removed all embedded macros.
I can see what you describe.
When you remove Box610 there's no highlighting at all.
Unless anyone knows different, I think it's probably an undocumented quirk and guess that the 2 controls that don't highlight were added subsequently to the others or either before or after the frame was added.
I don't think it's real highlighting anyway as it seems to be just a slight darkening of the fore colour. If it's a feature you want then perhaps it would be better to code it yourself with the enter/exit or got/lost focus events of the text boxes.
HTH
Jon Lewis
- Marked as answer by InnVis Friday, September 1, 2017 12:47 PM
Friday, September 1, 2017 12:27 PM -
Oh man, I cut and repasted box 610 and it worked! Thank you very much for the fresh set of eyes.Friday, September 1, 2017 12:47 PM