CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 23, 2019, 09:53:11 am


Login with username, password and session length


Pages: 1 [2] 3
  Print  
Author Topic: Display Object(s) Extrema in the Status Bar, "ShowExtrema" Plugin  (Read 2726 times)
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #15 on: May 18, 2019, 23:26:01 pm »

Re

Attached is a picture of both EN and FR ; on both the texts are not complete.

Win7 - 64 ultimate & CB V1 r16

++
David


* Sans titre-1.png (114.21 KB, 1035x467 - viewed 55 times.)
« Last Edit: May 18, 2019, 23:30:02 pm by dh42 » Logged
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7991



View Profile
« Reply #16 on: May 19, 2019, 00:14:07 am »

Eddy,
My guess is that the German translation is longer than the English.  In any case, I'd suspect that either the string length is not adequate for the German, or that the 'display window' is too narrow.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #17 on: May 19, 2019, 00:22:43 am »

Hello Lloyd

The problem is the same for me with EN version ; if you have a look on the picture, the english text ends with "TopLeft(2" ; (this must be "TopLeft(2D): xx.xx , yy.yy ") and all other corners info are missing.

The max overall text length seems to be the same with all languages.

++
David
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 4007



View Profile
« Reply #18 on: May 19, 2019, 10:38:47 am »

This is how it looks for me. (CamBam v1.0 rel.16)

And also to 12 decimal places.

Edit: It also works for me with CamBam 0.9.8

All tested on Windows 10 / 64bit


* extrema.jpg (78.32 KB, 1360x287 - viewed 51 times.)

* extrema12.jpg (131.04 KB, 2229x269 - viewed 51 times.)
« Last Edit: May 19, 2019, 17:45:52 pm by EddyCurrent » Logged

Made in England
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7991



View Profile
« Reply #19 on: May 19, 2019, 13:00:04 pm »

Ok... wow!  Yours works, and nobody else's does!  Is there a setting in CB (that I've never fooled with) that controls the maximum length of a status line message?

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
Bubba
CNC Jedi
*****
Offline Offline

Posts: 2668



View Profile
« Reply #20 on: May 19, 2019, 14:00:49 pm »

All is well here.. Win10 64bit, CB 1.0 Rel16


* Capture.JPG (48.23 KB, 878x418 - viewed 43 times.)
Logged

My 2¢
pixelmaker
CNC Jedi
*****
Offline Offline

Posts: 1701


View Profile WWW
« Reply #21 on: May 19, 2019, 21:13:06 pm »

It is the same
It's the same in english.
The line is cropped after the dot.
Text Size in Windows (7 64bit) is 100%.
CamBam is V1 R16


* Bildschirmfoto 2019-05-19 um 22.11.26.png (14.62 KB, 756x126 - viewed 33 times.)
« Last Edit: May 19, 2019, 21:16:33 pm by pixelmaker » Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #22 on: May 19, 2019, 21:15:40 pm »

Hello

Ralf, what is you OS ?

tested on Win XP and Win 7, CB 0.98 and 1.0, and I get the same result as you on both OS ...

++
David
Logged
Bubba
CNC Jedi
*****
Offline Offline

Posts: 2668



View Profile
« Reply #23 on: May 19, 2019, 22:26:17 pm »

That's curious, the plugin act as it should in Win 10,but behaves differently in other os.. Wink
« Last Edit: May 20, 2019, 13:50:18 pm by Bubba » Logged

My 2¢
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #24 on: May 19, 2019, 22:35:18 pm »

That's curious, the plugin act as it should in Win 10 but behaves differently in other os.. Wink

Yes, I've same kinds of problems with my plugins that sometimes are not working on W10 but works on W7 and XP ... (example, the previous version of NumMove crash on W10 but works on 7 and XP)

++
David
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 4007



View Profile
« Reply #25 on: May 25, 2019, 19:10:57 pm »

David,

Visual Studio project attached, maybe you can have a play and see what the problem is ?

* ShowExtrema_VS_project.zip (11.41 KB - downloaded 17 times.)
Logged

Made in England
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #26 on: May 25, 2019, 19:55:52 pm »

Hello Eddy

Just tried ; unfortunately, I can't open the file (.sln) ; It said it as been done on a newer version of visual studio (I use V 2010)

++
David

edit: ah ah ! it open if i use the .csproj file ...
« Last Edit: May 25, 2019, 19:57:30 pm by dh42 » Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 4007



View Profile
« Reply #27 on: May 25, 2019, 20:38:54 pm »

I'm on VS 2017
Logged

Made in England
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #28 on: May 25, 2019, 20:55:59 pm »

Re

Nothing to do ... even with VB script in CB, the text displayed seems to be limited to 127 chars on W7/XP.

The sb.Panels[0].Text variable contain the full text, even if more that 127 chars are used, but only the first 127 are displayed as you can see on the picture with a 200 chars text.

the VB script used.

Code:
' New CamBam VBScript

sub main
    dim sb as System.Windows.Forms.StatusBar = CamBamUI.MainStatusBar
    
    dim tx as string
    
    for n as long = 0 to 199
        tx = tx & "X"
    next n
        
    sb.Panels(0).Text = tx

    app.log("Text length :" & len(tx))
    app.log("Text length in the bar :" & len(sb.Panels(0).Text))  
    
    app.log(tx)
    
end sub

seems it's a W7/XP limitation ...

++
David


* Sans titre-1.jpg (53.79 KB, 1790x202 - viewed 35 times.)
Logged
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1123


View Profile
« Reply #29 on: May 26, 2019, 01:29:23 am »

Hi David.
It's a .net limitation not the os.
Dave.


* show extreama ver 1 dot net 4.PNG (127.87 KB, 1094x738 - viewed 34 times.)
Logged
Pages: 1 [2] 3
  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.158 seconds with 19 queries.

Copyright © 2018 HexRay Ltd. | Sitemap