Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline overlord  
#1 Posted : 08 February 2014 02:44:32(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
When I press on right arrow key to navigate through smath, I am getting RİGHT word written, and it is so annoying.
For example, if I wrote sin(x) and press right arrow key in the middle of it, it is shown as siRİGHTn(x).
I am trying to convince all my friends to use smath instead of mathcad, but when they see this, there is no words for me to say anymore.
I am using a Turkish Keyboard, even changing the input language from Windows Control Panel is not a solution.

So please, maybe I am asking to much but could you please change at next release, code below;

Code:
        Protected Overrides Function ProcessDialogKey(ByVal keys1 As Keys) As Boolean
            If (((keys1 = Keys.Left) OrElse (keys1 = Keys.Right)) OrElse (((keys1 = Keys.Up) OrElse (keys1 = Keys.Down)) OrElse (keys1 = Keys.Delete))) Then
                Me..Insert(keys1.ToString.ToUpper)
            ElseIf (keys1 = (Keys.Control Or Keys.Left)) Then
                Me..Insert("CLEFT")
            ElseIf (keys1 = (Keys.Control Or Keys.Right)) Then
                Me..Insert("CRIGHT")
            ElseIf ((keys1 = (Keys.Shift Or Keys.Left)) OrElse (keys1 = (Keys.Control Or (Keys.Shift Or Keys.Left)))) Then
                Me..Insert("SLEFT")
            ElseIf ((keys1 = (Keys.Shift Or Keys.Right)) OrElse (keys1 = (Keys.Control Or (Keys.Shift Or Keys.Right)))) Then
                Me..Insert("SRIGHT")
            ElseIf (keys1 = (Keys.Shift Or Keys.Tab)) Then
                Me..Insert("BTAB")
            ElseIf (keys1 = Keys.Tab) Then
                Me..Insert("TAB")
            End If
            Return False
        End Function

'--with this:

        Protected Overrides Function ProcessDialogKey(ByVal keys1 As Keys) As Boolean
            If ((keys1 = Keys.Left) OrElse (((keys1 = Keys.Up) OrElse (keys1 = Keys.Down)) OrElse (keys1 = Keys.Delete))) Then
                Me..Insert(keys1.ToString.ToUpper)
            ElseIf (keys1 = (Keys.Right)) Then
                Me..Insert("RIGHT")                              'changed code
            ElseIf (keys1 = (Keys.Control Or Keys.Left)) Then
                Me..Insert("CLEFT")
            ElseIf (keys1 = (Keys.Control Or Keys.Left)) Then
                Me..Insert("CLEFT")
            ElseIf (keys1 = (Keys.Control Or Keys.Right)) Then
                Me..Insert("CRIGHT")
            ElseIf ((keys1 = (Keys.Shift Or Keys.Left)) OrElse (keys1 = (Keys.Control Or (Keys.Shift Or Keys.Left)))) Then
                Me..Insert("SLEFT")
            ElseIf ((keys1 = (Keys.Shift Or Keys.Right)) OrElse (keys1 = (Keys.Control Or (Keys.Shift Or Keys.Right)))) Then
                Me..Insert("SRIGHT")
            ElseIf (keys1 = (Keys.Shift Or Keys.Tab)) Then
                Me..Insert("BTAB")
            ElseIf (keys1 = Keys.Tab) Then
                Me..Insert("TAB")
            End If
            Return False
        End Function 

Edited by moderator 09 February 2014 17:37:56(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Andrey Ivashov  
#2 Posted : 08 February 2014 10:46:41(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Hello.

Thank you for the report!

I'm unable to reproduce appearing word "RIGHT" when working with regions. Just tried it with no luck.
Unfortunately code changes suggested by you has no sense, because keys1.ToString.ToUpper for Keys.Right will also return "RIGHT", so by this update I will not change anything.

What version of SMath Studio do you use? Did you try to completely remove SMath Studio (with all the folders from %APPDATA% and Program Files) and install the latest RC build?

Best regards, Andrey Ivashov.

Edited by user 08 February 2014 10:55:56(UTC)  | Reason: Not specified

thanks 1 user thanked Andrey Ivashov for this useful post.
on 08/02/2014(UTC)
Offline omorr  
#3 Posted : 08 February 2014 11:23:38(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

I remember it happened before. Here is one post I could find by searching the Forum RIGHT word. I can not find anything else.

Regards,
Radovan

P.S.
I see Andrey that you could find the time to continue working on SMath. Hope that everything is well and that you could get some more sleep in the recent months Kiss Wink kind
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 08/02/2014(UTC)
Offline overlord  
#4 Posted : 08 February 2014 11:24:19(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
Thanks for your quick reply Andrey.

I am using 0.96 (Build 5151) right now. I don't want to consume your precious time, but every time a new Smath released (even beta or RC), I always uninstall and delete everything releated Smath from C:\Program Files and APPDATA. I install everything again. Portable or original version does not matter to produce this error.
I am using Windows7 Ultimate (and professional at work) with TURKISH language and keyboard. We Turkish and Azerbaijani people are using the Capital I with dot. We have "ı" and "i" at same keyboard. Right now all my keyboards have this key. This is why you can not reproduce this error. To write RİGHT with pressing right arrow key, you have to have Turkish Windows and keyboard.
Sorry for inconvenience.

Regards

Edited by user 08 February 2014 11:25:57(UTC)  | Reason: Not specified

Offline omorr  
#5 Posted : 08 February 2014 11:28:17(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello
Originally Posted by: overlord Go to Quoted Post

I am using Windows7 Ultimate (and professional at work) with TURKISH language and keyboard. We Turkish and Azerbaijani people are using the Capital I with dot. We have "ı" and "i" at same keyboard. Right now all my keyboards have this key. This is why you can not reproduce this error. To write RİGHT with pressing right arrow key, you have to have Turkish Windows and keyboard.

By the way, I've noticed that the user reported this before is also from Istanbul. Might be the same reason and some kind of localization problem.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 08/02/2014(UTC)
Offline overlord  
#6 Posted : 08 February 2014 22:21:14(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
I don't want to be a stubborn idiot, this will be my last post on this topic.
This is an infamous localization bug, which can easily be solved as it seems. If Andrey does not want to change anything, I do totally understand it.

http://mattryall.net/blog/2009/...amous-turkish-locale-bug

Regards
thanks 1 user thanked overlord for this useful post.
on 08/02/2014(UTC)
Offline Andrey Ivashov  
#7 Posted : 09 February 2014 00:32:47(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
overlord, please don't stop! Good

Please don't think you bother me - I'm the one who are the most interested to have SMath Studio without bugs. It's a pleasure for me that people like you takes their own time to find and describe different complexities they experienced while working with SMath Studio.

Thank you for your help! I will deeply check this issue!

Radovan, as always I'm very glad to see familier faces here Good Hope you're doing well! Yes, I found some time to release new SMath Studio version... there are plenty improvements done in code. Not sure I will be able to do updates every week, but while I have some free hours I must keep project running!

Best regards, Andrey Ivashov.
thanks 2 users thanked Andrey Ivashov for this useful post.
on 09/02/2014(UTC),  on 09/02/2014(UTC)
Offline Andrey Ivashov  
#8 Posted : 09 February 2014 00:55:33(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
overlord,

I think I fixed the issue. Url you give in your previous post was very helpfull! Thank you!

Please try to download SMathStudio_Desktop.exe and replace initial SMathStudio_Desktop.exe file from SMath Studio installation directory. The code change is: from keyData.ToString().ToUpper() to keyData.ToString().ToUpper(CultureInfo.InvariantCulture).

Hope this will help. Please inform me here about results!

Thanks in advance!

Best regards, Andrey Ivashv.
thanks 3 users thanked Andrey Ivashov for this useful post.
on 09/02/2014(UTC),  on 09/02/2014(UTC),  on 09/02/2014(UTC)
Offline overlord  
#9 Posted : 09 February 2014 02:33:32(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
I actually thank you Thank you
Totally works Clap
thanks 2 users thanked overlord for this useful post.
on 09/02/2014(UTC),  on 09/02/2014(UTC)
Offline Andrey Ivashov  
#10 Posted : 09 February 2014 17:37:28(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Great! Thank you for help!

Best regards, Andrey Ivashov.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 10/02/2014(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.