Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: TextBox with picture clause Date: Wed, 25 Nov 2020 08:50:35 +0100 Lines: 49 Message-ID: References: <3bf32f0c-c8e1-47d4-9c66-c86a7d9963fcn@googlegroups.com> <4690eca1-66ea-45cf-bc7f-c85d1298c016n@googlegroups.com> <2f547f76-a415-4cd0-94b4-c32253261b1ao@googlegroups.com> <6a41d35e-b28c-4bf7-9d04-2a595f2f3b5fn@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net DsB3s+EAN5Qzu7p+Uqoq5gUx2IQB1MDDCB5S573xlDPEEPJfM= Cancel-Lock: sha1:6HYkbVTeszSH6s6YdELspVnJlvg= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13157 Hi Mathias, having MathiasSLE for WPF would be a great thing! Wolfgang Mathias wrote: > Hi, > Thank you for all you suggestions. I have now made a UserControl in > C# that can switch between imperial and metric. The metric edit is in > fact an MathiasSLE! It's now being tested by my testers and if they > say go I will start using it in the product. I will probably have to > refactor it to have a separate MathiasSLE as well to be used in other > circumstances. Converting from VO to C# is not trivial. VO's string > functions are function based while C# are object based. Arrays > positions starts on 0 and the contact with GUI is totally different > (I use in WPF). > > /Mathias > > onsdag 11 november 2020 kl. 15:05:55 UTC+1 skrev dlzc: > > On Wednesday, November 11, 2020 at 12:17:35 AM UTC-7, Mathias > > wrote: > > > HI Johan, > > > > > > I've got conversion routines that converts a measurement > > > in the metric system to an imperial string and the other > > > way around. That part is the easy part. The problem is > > > handling the input in an elegant way. I would like the > > > apostrophies to be fixed and the fraction (like 1/8, > > > 1/16, 1/4) to only allow the fractions used in imperial > > > measurements. > > A couple of options: > > - a sliding scale that looks like a ruler with acceptable fractions > > shown - in Imperial sized parts, a number between 0 and 32 > > represents the number of "1/16ths" of an inch. Might use the > > template "####in##/16ths" or similar (sorry I do Clipper only). > > P.I.T.A. for whoever has to convert 7/8 or some other fraction into > > 16ths... but likely something they are used to. > > > > Good luck sir. > > > > David A. Smith --