i'm making a personal application using Xamarin Forms to register words in my own language (spanish) with the traducction in Hiragana, Katakana or Kanji.
Then i have fields (entrys) to write the text in each type but i want to write the text without needing to change my input keyboard when i'm introducing the text.
I have been searching but i only found a way using IMEMode in Windows Forms (not working in Xamaring Forms) and other replacing text directly from a character database.
Are there any library, NuGet Package, xalm attribute or something to change the character mode in entry object in Xamarin Forms to Hiragana/Katakana/Kanji?
Thanks.
Marcos.
Related
When using the windows 10 virtual keyboard, it offert a auto-completion feature like smartphone keyboard. I want to use this feature in a WPF application without having to open the virtual keyboard.
Does an API exist to get those suggestion from a C#/Wpf app?
There is spell check feature in WPF but it is different from auto-completion.
Spell check can only suggest a word if it's completly typed but with a few mistake. It can't suggest word if you only type the begining of a word.
It don't work with several word with missing space or apostrophe. For example, in french "cest" will be corrected to "c'est" and "helloworld" will be corrected to "hello world"
I am updating a Windows Forms application that was written for Office 2003. It would open Word, populate it with text from the database, create buttons appropriate for the user's security roles, and handle button clicks. The old way was with CommandBars. The Word documents created this way were stored as DB Blobs, so they were only ever available via the Forms application. That is the functionality I need, but without CommandBars.
Now, we have the Ribbon, Action Panes, VSTO, and OpenXML. I know my way around C#, but I'm new to all of these technologies.
I imagine a solution where I set up a template with the proper buttons on a nice ribbon, and the buttons raise events. If someone just tried to use the template by itself, there would be no data and the events would do nothing. But my Windows Form could create a new document based on the template, populate it with text from the database, hide inappropriate buttons, and handle button click events. Easy peasy.
I began by adding a Word 2010 Template project and making a ribbon for it. It looks nice in the debugger. But, I can't create a new document with it from a Console app. Word launches, but the ribbon isn't there. There's a note in the documentation that "If a Microsoft Office Word template has managed code extensions, the project assembly is not called if the template is attached as a global template or loaded from the startup directory of Word. In addition, the document does not recognize the format of a template that is part of an Office solution." I believe this means my template is useless. I can't open Word and make a new document with my template or call the template from another project, so, pointless.
All the MS help has failed me, and mostly leads me in circles. I need some direction. For each piece of the scenario I described, what is the most appropriate modern technology? For each technology I need to use, what is the best resource for my situation?
According to Microsoft template the entry point of Windows Phone app is MainPage.xaml. I manage to change it to *.xaml page, but how to get rid of those .xaml pages and write only C#. In windows Forms it was quite easy, but what about Windows Phone ? If I just change the default task to be .cs file, it doesn't run.
Unlike in WinForms there is no concept of an application's main entry point not corresponding to a visual page represented by XAML (in this case, as you pointed out, the default is MainPage.xaml). The idea being that this wouldn't make sense since there always has to be a visual portion to a Phone application. While you could potentially write the same thing purely in code it's not something that is directly supported.
An application has the ability to run in the background via Background Agents (see http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v=vs.105).aspx), but it still needs the visual portion of the application to install the Agent and to be accepted onto the Store.
I developing an application in C# on Windows mobile 6.5 and .NET 3.5 CF. I'm using multiple forms and would like to have a common color scheme that is easily changed by just changing a color definition file or some simple option in VS 2008.
I've looked around and it doesn't seem to be any clear solution. I've tried digging down to where the colors are defined to see it I could add my own that would be a global variable, or even in the designer files, but there is not mention of color, the only way I can change the color is in the properties window.
A simple way to do this is to use Form inheritance. Create a template form (named "TemplateForm.frm" or whatever), color/style is as you wish, then add one (invisible) instance of each type of control (a Button, a Checkbox, a Label etc.) that you're using on all of your other forms.
Then edit your existing forms so that they inherit from TemplateForm (instead of inheriting from Form). Add a method to TemplateForm's Load event that iterates through all the controls on the form (this needs to be recursive, of course) and styles each one (font, colors etc.) to match the corresponding (invisible template) control of that type on the parent form.
An other approach, probably not better, is to modify the system colors in the registry in [HKEY_LOCAL_MACHINE\System\GWE] "SysColor". I've used it, but I'm not a fan as it is sometime hard to get a good set of colors that work, and it changes it everywhere in the system. #MusiGenesis appoach affords you finer control.
see Customizing System Colors
For example, suppose I'm editing following text (\t is for tabs, it's not text)
'\t\t\tSome text...'
and my input keyboard position is right before 'S' (there is no selected text)
and I want to get number of tabs before 'S' (in this case it's 3)
So how to get that number of tabs using Win32 API?
p.s.
Maybe some function to get whole current line (and then parse that text)?
edit:
So I want my program (that is running in background and does not have a GUI) to determine number of tabs from current active line in any text editor that is currently active (that I'm editing in).
For some applications such as the standard Windows Notepad, it may be possible to do this from another application. Notepad itself is little more than big Win32 "Edit" control inside a resizeable window, so all the regular Win32 Edit control messages can be used to get the actual text and the caret position and so on.
However, in the general case of any Windows text editor, there is no requirement for applications to use a Win32 Edit control for their text editing needs (and in fact, to do so would be just reinventing Notepad). There is no standard Win32 API method to find out where the caret is pointing, because the application is free to draw text on the screen in any way it sees fit (and will store that text internally inside the application with no corresponding API for you to call).
Best Java coding practice is to make your code operating system platform independent as far as possible. If you are trying to implement a utility that is intrinsically Windows specific (e.g. heavily dependent on Win32 APIs), it would be better to use C++ or C# rather than Java.