VBAndCs / sVB-Small-Visual-Basic

Small Visual Basic (sVB) is an educational programming language, created by Eng. Mohammad Hamdy as an evolved version of Microsoft Small Basic (SB). It is meant to be easier and more powerful at the same time, to introduce programming basics to kids and beginners of any age, provided that they can use the English keyboard on the Windows OS.
Other
222 stars 16 forks source link

Gradient forecolor of text in a textbox may cause an exception while inputting with some kinds of input methods. #40

Closed dynamicboy closed 1 month ago

dynamicboy commented 6 months ago

Version: 2.8.7.5 Details: Step 1: Drag a textbox from the toolbox to the form Step 2: Set the Forecolor to a gradient color Step 3: Run the application Step 4: Input some text. It's ok with any straightforward English input method and some Chinese input methods which compose words in the candidates box first, then send it to the textbox. However, with input methods that send English letters to the textbox first and then replace them with composed words in the candidates box ( I use Microsoft Wubi Input Method), an exception will occur.

In 2.8.7.5, the form will freeze and exit.

In 2.8.7.3, it may throw an exception like the one below: "Can't convert System.Windows.Media.LinearGradientBrush object to type System.Windows.Media.SolidColorBrush".

VBAndCs commented 6 months ago

Hi @dynamicboy, I can't understand this, because I've never used such input methods and I have no knowledge about Chinese languages. If some Chinese VB.NET programmer can look at this in the source code and propose a fix, I will use it, otherwise, I can't do anything right now. Thanks.


From: dynamicboy @.> Sent: Saturday, December 30, 2023 8:06 AM To: VBAndCs/sVB-Small-Visual-Basic @.> Cc: Subscribed @.***> Subject: [VBAndCs/sVB-Small-Visual-Basic] Gradient forecolor of text in a textbox may cause an exception while inputting with some kinds of input methods. (Issue #40)

Version: 2.8.7.5 Details: Step 1: Drag a textbox from the toolbox to the form Step 2: Set the Forecolor to a gradient color Step 3: Run the application Step 4: Input some text. It's ok with any straightforward English input method and some Chinese input methods which compose words in the candidates box first, then send it to the textbox. However, with input methods that send English letters to the textbox first and then replace them with composed words in the candidates box ( I use Microsoft Wubi Input Method), an exception will occur.

In 2.8.7.5, the form will freeze and exit.

In 2.8.7.3, it may throw an exception like the one below: "Can't convert System.Windows.Media.LinearGradientBrush object to type System.Windows.Media.SolidColorBrush".

— Reply to this email directly, view it on GitHubhttps://github.com/VBAndCs/sVB-Small-Visual-Basic/issues/40, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQ5MVXPOXLCHNADLQEHLOLYL7DSHAVCNFSM6AAAAABBHLN2USVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DANRXGQYDGNY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

VBAndCs commented 1 month ago

Is this issue solved in current version? If not, please reopen it until someone can help solving it. Thanks.


From: dynamicboy @.> Sent: Sunday, June 16, 2024 9:08 AM To: VBAndCs/sVB-Small-Visual-Basic @.> Cc: Mohammad Hamdy Ghanem @.>; Comment @.> Subject: Re: [VBAndCs/sVB-Small-Visual-Basic] Gradient forecolor of text in a textbox may cause an exception while inputting with some kinds of input methods. (Issue #40)

Closed #40https://github.com/VBAndCs/sVB-Small-Visual-Basic/issues/40 as completed.

— Reply to this email directly, view it on GitHubhttps://github.com/VBAndCs/sVB-Small-Visual-Basic/issues/40#event-13174690450, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQ5MVWAO2YZSPHEDPGPLX3ZHVIYVAVCNFSM6AAAAABBHLN2USVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGE3TINRZGA2DKMA. You are receiving this because you commented.Message ID: @.***>