CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 10, 2019, 08:27:29 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Latest CB 1.0-rc for Linux notes  (Read 1076 times)
Dragonfly
CNC Jedi
*****
Offline Offline

Posts: 2224



View Profile
« on: October 16, 2019, 12:21:48 pm »

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.


* FieldTruncation-Win.png (27.66 KB, 320x343 - viewed 76 times.)

* FieldTruncation-Lin.png (29.33 KB, 299x416 - viewed 68 times.)
Logged
onekk
Wookie
****
Offline Offline

Posts: 497


View Profile
« Reply #1 on: October 17, 2019, 12:14:06 pm »

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.

Logged

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
Dragonfly
CNC Jedi
*****
Offline Offline

Posts: 2224



View Profile
« Reply #2 on: October 17, 2019, 19: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  Shocked
Logged
Dragonfly
CNC Jedi
*****
Offline Offline

Posts: 2224



View Profile
« Reply #3 on: October 17, 2019, 22: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.
Logged
onekk
Wookie
****
Offline Offline

Posts: 497


View Profile
« Reply #4 on: October 18, 2019, 07: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, 07:58:07 am by onekk » Logged

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.082 seconds with 19 queries.

Copyright © 2018 HexRay Ltd. | Sitemap