Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13134 > unrolled thread
| Started by | Mathias <mathias.hakansson.1969@gmail.com> |
|---|---|
| First post | 2020-11-10 07:28 -0800 |
| Last post | 2020-11-25 08:50 +0100 |
| Articles | 8 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
TextBox with picture clause Mathias <mathias.hakansson.1969@gmail.com> - 2020-11-10 07:28 -0800
Re: TextBox with picture clause Johan Nel <johan.nel@xsinet.co.za> - 2020-11-10 17:54 +0200
Re: TextBox with picture clause Mathias <mathias.hakansson.1969@gmail.com> - 2020-11-10 23:17 -0800
Re: TextBox with picture clause Johan Nel <johan.nel@xsinet.co.za> - 2020-11-11 12:15 +0200
Re: TextBox with picture clause Mathias <mathias.hakansson.1969@gmail.com> - 2020-11-11 02:54 -0800
Re: TextBox with picture clause dlzc <dlzc1@cox.net> - 2020-11-11 06:05 -0800
Re: TextBox with picture clause Mathias <mathias.hakansson.1969@gmail.com> - 2020-11-24 23:19 -0800
Re: TextBox with picture clause "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-25 08:50 +0100
| From | Mathias <mathias.hakansson.1969@gmail.com> |
|---|---|
| Date | 2020-11-10 07:28 -0800 |
| Subject | TextBox with picture clause |
| Message-ID | <3bf32f0c-c8e1-47d4-9c66-c86a7d9963fcn@googlegroups.com> |
Hi all, long time, no see. Has anyone done this in .net yet? I need to handle editing imperial numbers with fractions with some kind of picture support (for the apostrophes and fractions) in a .net application. Has anyone tried anything like this before? /Mathias Håkansson, Sweden
[toc] | [next] | [standalone]
| From | Johan Nel <johan.nel@xsinet.co.za> |
|---|---|
| Date | 2020-11-10 17:54 +0200 |
| Message-ID | <roed43$h6i$1@dont-email.me> |
| In reply to | #13134 |
You might want to look at this: https://stackoverflow.com/questions/6157865/c-sharp-function-to-convert-text-input-of-feet-inches-meters-centimeters-millime On 2020/11/10 17:28, Mathias wrote: > Hi all, > long time, no see. > > Has anyone done this in .net yet? > I need to handle editing imperial numbers with fractions with some kind of picture support (for the apostrophes and fractions) in a .net application. Has anyone tried anything like this before? > > /Mathias Håkansson, Sweden -- *Johan Nel* FOX member : Friend(s) of XSharp X# Website : https://xsharp.info Boshof, South Africa
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson.1969@gmail.com> |
|---|---|
| Date | 2020-11-10 23:17 -0800 |
| Message-ID | <4690eca1-66ea-45cf-bc7f-c85d1298c016n@googlegroups.com> |
| In reply to | #13135 |
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. It's surreal that there is no third party control to buy that does this (at least I have not found any). It should have been done ages ago... The software is for the computer in harvesters, feller-bunchers, forwarders and skidders in the logging industry. For some reason they love their imperial format... /Mathias tisdag 10 november 2020 kl. 16:54:45 UTC+1 skrev Johan Nel: > You might want to look at this: > > https://stackoverflow.com/questions/6157865/c-sharp-function-to-convert-text-input-of-feet-inches-meters-centimeters-millime > On 2020/11/10 17:28, Mathias wrote: > > Hi all, > > long time, no see. > > > > Has anyone done this in .net yet? > > I need to handle editing imperial numbers with fractions with some kind of picture support (for the apostrophes and fractions) in a .net application. Has anyone tried anything like this before? > > > > /Mathias Håkansson, Sweden > -- > *Johan Nel* > FOX member : Friend(s) of XSharp > X# Website : https://xsharp.info > Boshof, South Africa
[toc] | [prev] | [next] | [standalone]
| From | Johan Nel <johan.nel@xsinet.co.za> |
|---|---|
| Date | 2020-11-11 12:15 +0200 |
| Message-ID | <rogdjm$sr4$1@dont-email.me> |
| In reply to | #13136 |
Hi Matthias, Yes I realise there are no "imperial" controls available. Luckily in South Africa we use metric... The way to go about would be to create a user control with separate "input" controls and have the apostrophes displayed as Text on the user control. Maybe take this to the X# forums, I have done some user controls with X# so should not be too difficult to do. PS: Love your terms, harvester, feller-buncher, etc. Did you know I am a forestry graduate by profession actually... :-) Programming was a hobby that became work... On 2020/11/11 09:17, 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. It's surreal that there is no third party control to buy that does this (at least I have not found any).. It should have been done ages ago... > > The software is for the computer in harvesters, feller-bunchers, forwarders and skidders in the logging industry. For some reason they love their imperial format... > > /Mathias > > tisdag 10 november 2020 kl. 16:54:45 UTC+1 skrev Johan Nel: >> You might want to look at this: >> >> https://stackoverflow.com/questions/6157865/c-sharp-function-to-convert-text-input-of-feet-inches-meters-centimeters-millime >> On 2020/11/10 17:28, Mathias wrote: >>> Hi all, >>> long time, no see. >>> >>> Has anyone done this in .net yet? >>> I need to handle editing imperial numbers with fractions with some kind of picture support (for the apostrophes and fractions) in a .net application. Has anyone tried anything like this before? >>> >>> /Mathias Håkansson, Sweden >> -- >> *Johan Nel* >> FOX member : Friend(s) of XSharp >> X# Website : https://xsharp.info >> Boshof, South Africa -- *Johan Nel* FOX member : Friend(s) of XSharp X# Website : https://xsharp.info George, South Africa
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson.1969@gmail.com> |
|---|---|
| Date | 2020-11-11 02:54 -0800 |
| Message-ID | <4aa32b14-4bee-4f05-825d-02dd8cd4d12bn@googlegroups.com> |
| In reply to | #13137 |
> PS: Love your terms, harvester, feller-buncher, etc. Did you know I am > a forestry graduate by profession actually... :-) Programming was a > hobby that became work... It's quite interesting that different kind of machines are used in the logging industry in different parts of the world. In the nordic countries and some other countries like russia, germany and france we use harvesters and forwarders, but in most other countries, like USA, Canada and Australia they use feller-bunchers and skidders. When I changed jobs a year ago I switched industry from construction to forestry. Interesting to learn new things. /Mathias onsdag 11 november 2020 kl. 11:15:24 UTC+1 skrev Johan Nel: > Hi Matthias, > > Yes I realise there are no "imperial" controls available. Luckily in > South Africa we use metric... > > The way to go about would be to create a user control with separate > "input" controls and have the apostrophes displayed as Text on the user > control. > > Maybe take this to the X# forums, I have done some user controls with X# > so should not be too difficult to do. > > PS: Love your terms, harvester, feller-buncher, etc. Did you know I am > a forestry graduate by profession actually... :-) Programming was a > hobby that became work... > On 2020/11/11 09:17, 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. It's surreal that there is no third party control to buy that does this (at least I have not found any).. It should have been done ages ago... > > > > The software is for the computer in harvesters, feller-bunchers, forwarders and skidders in the logging industry. For some reason they love their imperial format... > > > > /Mathias > > > > tisdag 10 november 2020 kl. 16:54:45 UTC+1 skrev Johan Nel: > >> You might want to look at this: > >> > >> https://stackoverflow.com/questions/6157865/c-sharp-function-to-convert-text-input-of-feet-inches-meters-centimeters-millime > >> On 2020/11/10 17:28, Mathias wrote: > >>> Hi all, > >>> long time, no see. > >>> > >>> Has anyone done this in .net yet? > >>> I need to handle editing imperial numbers with fractions with some kind of picture support (for the apostrophes and fractions) in a .net application. Has anyone tried anything like this before? > >>> > >>> /Mathias Håkansson, Sweden > >> -- > >> *Johan Nel* > >> FOX member : Friend(s) of XSharp > >> X# Website : https://xsharp.info > >> Boshof, South Africa > -- > *Johan Nel* > FOX member : Friend(s) of XSharp > X# Website : https://xsharp.info > George, South Africa
[toc] | [prev] | [next] | [standalone]
| From | dlzc <dlzc1@cox.net> |
|---|---|
| Date | 2020-11-11 06:05 -0800 |
| Message-ID | <2f547f76-a415-4cd0-94b4-c32253261b1ao@googlegroups.com> |
| In reply to | #13136 |
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
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson.1969@gmail.com> |
|---|---|
| Date | 2020-11-24 23:19 -0800 |
| Message-ID | <6a41d35e-b28c-4bf7-9d04-2a595f2f3b5fn@googlegroups.com> |
| In reply to | #13139 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2020-11-25 08:50 +0100 |
| Message-ID | <i26gmbF5083U1@mid.individual.net> |
| In reply to | #13155 |
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 --
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web