Author Topic: Latest CB 1.0-rc for Linux notes  (Read 3056 times)

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2319
    • View Profile
Latest CB 1.0-rc for Linux notes
« on: October 16, 2019, 11:21:48 am »
I am starting this thread as a separate one for the latest Linux releases because the announcement thread becomes too messy.

There is an old issue with the way Mono shows numeric fields, the truncation of long numbers in particular.
Under Windows a numeric field shows as much digits as can be contained in the current field width.
Under Mono truncation is to the first digit although there is enough space for several more. For example a number like 0.7499999999 is displayed as only 0 if it cannot be accommodated in the current field width.
The same applies to the grid when editing points in a polyline manually.
And this gives a very wrong readable information if one does not pay high attention.

See the attached screenshots for one and the same object dimensions in windows and in Linux.

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 510
    • View Profile
Re: Latest CB 1.0-rc for Linux notes
« Reply #1 on: October 17, 2019, 11:14:06 am »
It is a "normal" behaviour on Mono, the truncated display is somewhat a problem.

Across time I have developed the habit of checking the values in the fields, (clicking on the cell) or maybe even reading directly the XML file (as a last resort).

I have noted that if the value is truncated to some decimals it is displayed correctly, so I have done a plugin that (among many other things) truncate thevlaues with an appropriate rounding the values of polylines and pointlists.

The problem seem related to the control that CamBam use to display the values (if I didn't go wrong it is a gridcontrol), but  I have not investigated more on this, maybe with the last Mono update where MicroSoft has taken charge of Mono (they acquired Xamarin to) something is better taylored, (as some rumors says that in the future Windows 10 will a have a "Linux" Kernel).

Even some VB is ported to Mono now and some quirks have been ironed out due to the knowledge of the "internals"  of Net and notably System.Windows.Form.

Regards

Carlo D.

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2319
    • View Profile
Re: Latest CB 1.0-rc for Linux notes
« Reply #2 on: October 17, 2019, 18:20:10 pm »
Quote
Mono update where MicroSoft has taken charge of Mono (they acquired Xamarin to) something is better taylored, (as some rumors says that in the future Windows 10 will a have a "Linux" Kernel).
That's my worst nightmare  :o

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2319
    • View Profile
Re: Latest CB 1.0-rc for Linux notes
« Reply #3 on: October 17, 2019, 21:40:22 pm »
Laptop combination is  Ubuntu 18.04 Mate desktop 64 bit with Mono 5.12 from 2018. The last one that did not affect font size.
On the work PC I upgraded to Mono 6.xx after CB 1.0 rc2 became available and although general font behavior is acceptable with the additional options in the configuration now the buttons do not fisplay.

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 510
    • View Profile
Re: Latest CB 1.0-rc for Linux notes
« Reply #4 on: October 18, 2019, 06:45:40 am »
CamBam.CAD : 0.9.5330.21906
CamBam : 0.9.5330.21907
Build Date : 05/08/2014 13:10:12
Framework Version : 4.0.30319.42000


This is the version on my other computer, running devuan ascii (a version on Debian without systemd) it is related to the 9.0 version of Debian, but with the Mono directly from Xamarin repos.

In this version at least the open file dialog and the icons are working, so maybe downgrading the mono version will suffice, but wich package is the culprit i didn't know.


Regards

Carlo D.
« Last Edit: October 18, 2019, 06:58:07 am by onekk »
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam