Re: Entry Field questions
> Le 21 mars 2017 à 20:13, Dennis, Neil via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > >> 2. What is the best way to prevent users to copy / paste values with crlf >> in it? > > [...] I lean more towards the a cleans method that I can call everywhere. My choice, too. -- Arnaud de Montard ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Entry Field questions
> 2. What is the best way to prevent users to copy / paste values with crlf in > it? You can either put a filter method on the on data changed event to strip them out, or create an entry filter to remove them on input. I find both acceptable, but I lean more towards the a cleans method that I can call everywhere. Neil Privacy Disclaimer: This message contains confidential information and is intended only for the named addressee. If you are not the named addressee you should not disseminate, distribute or copy this email. Please delete this email from your system and notify the sender immediately by replying to this email. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. The Alternative Investments division of UMB Fund Services provides a full range of services to hedge funds, funds of funds and private equity funds. Any tax advice in this communication is not intended to be used, and cannot be used, by a client or any other person or entity for the purpose of (a) avoiding penalties that may be imposed on any taxpayer or (b) promoting, marketing, or recommending to another party any matter addressed herein. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Entry Field questions
Piotr, I don't know if it's the "Easy" way, but I use On Getting/On Losing Focus to change backgrounds, etc during data entry. e.g. Pseudo Code Case of : (Form event=On Getting Focus) $foregroundColor:=00x00FF // Blue $backgroundColor:=00x0000` Yellow OBJECT SET RGB COLORS($object_Ptr->;$foregroundColor;$backgroundColor) : (Form event=On Losing Focus) $foregroundColor:=00x` Black $backgroundColor:=00x00FF` White OBJECT SET RGB COLORS($object_Ptr->;$foregroundColor;$backgroundColor) End case Randy Engle XC2 Software LLC -Original Message- From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Piotr Chabot Stadhouders via 4D_Tech Sent: Tuesday, March 21, 2017 11:26 AM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: Piotr Chabot Stadhouders <p.stadhoud...@timeff.com> Subject: Entry Field questions Hi, I have 2 questions about entry fields : 1. Although I know the best answer on forehand (Use system behavior), is there an (easy) way to customize entry fields (fields and variables). For example rounded borders, yellow background when having focus instead of blue border? 2. What is the best way to prevent users to copy / paste values with crlf in it? Thanks in advance, Piotr ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Entry Field questions
Hi, I have 2 questions about entry fields : 1. Although I know the best answer on forehand (Use system behavior), is there an (easy) way to customize entry fields (fields and variables). For example rounded borders, yellow background when having focus instead of blue border? 2. What is the best way to prevent users to copy / paste values with crlf in it? Thanks in advance, Piotr ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **