How can I change keyboard style to Numeric in Winrt? - keyboard

I was using InputScope in Windows Phone for open numeric Keyboard and I need its equaivalent in WinRT, Windows8.
How can I do it?
Thanks.

InputScope is still available in WinRT-XAML on the TextBox control, in the same way it is on Windows Phone development.
Add a TextBox to a page and you'll find the property under Common grouping.

Related

Selfmade Keyboard show and hide Rad Studio Delphi 10.2 Tokyo

I built a cross platform application to run it on Android. I use a TEdit to get the numbers and a Label to show the result of the calculation.
(This function is already running).
Is there any way to show a calculator keyboard whenever I click into to an TEdit object?
It shouldnt just pop-up like a second form I built in.
Set the TEdit.KeyboardType property to either TVirtualKeyboardType.NumbersAndPunctuation or TVirtualKeyboardType.NumberPad as needed. When the user gives focus to the TEdit, it will display the OS's standard virtual keyboard in the appropriate layout.

How to save text direction default in web sites?

I wonder if there a way to save text direction default- right to left (RTL) or vise versa (left to right-LTR) in different web pages. So when i open specific web site the text direction will be automatically LTR or RTL. I use google chrome so i tried to search in the properties and didn't find any option to save text direction default. I red change text direction of textbox automatically and How can I automatically set text direction based on input text language? and other questions and search in my windows xp Language preference but didn't find what i'm looking for.
Thanks in advance for any help.
UPDATE:
I'm using a program called "Lang Over 5" that changed text orientation using "F10" button. But i can't save default text orientation in web sites with it.
It likely cannot be done for different webpages/sites unless someone has created an add-on module that I'm unaware of. Here are two options that you can do, however:
1) Use two different browsers, set each to the proper language settings that you want.
2) If you are set on using Chrome for both, you may be able to run multiple instances as is shown here: http://blog.buddywork.com/post/15839021578/how-to-run-multiple-instances-of-chrome

how to display tamil font in vc++

I want to display tamil font in mfc dialog . How to achieve it?
Not completely clear what you want to do, but CWnd has a SetFont() method that you can use. You can use that to set the font of the various controls on the dialog. You will probably need to call it for each control on your dialog.
There's some good info here: http://technet.microsoft.com/en-us/library/cc753194.aspx

How to make a custom keyboard?

What are the rules I need to follow, when creating a custom keyboard for a UITextView?
Is it OK to use a subclass of UIView?
Do I need to implement a specific protocol?
Should it contain a variable with a specific type and name?
Anything else?
At this point I have already made my own keyboard with the buttons; and it shows up when the UITextView object becomes the FirstResponder as expected. But I cannot use it and I would like to know if there is a "proper way" or if I just have to find my own way to make things work.
Thanks in advance.
Set inputView property of UITextView with your custom keyboard & refer to this link:
UITextView inputView

How to add color picker in mfc?

i want be able to select any color i want, just like the attached pic.
yes i want to learn this c++ or mfc . I find it more powerfull . Could u explain to me exactly how to add it to my project. I also want the color iteslf and it code appers in picture box and textbox.
Thanks
Use CColorDialog class in mfc is used to pick the color from mfc
// Get the selected color from the CColorDialog.
CColorDialog dlg;
if (dlg.DoModal() == IDOK)
{
COLORREF color = dlg.GetColor();
}
This sample will popup dialog to select the color and after selecting the color and click ok button then color variable will contain the selected color.
Use this color in your application.
EDIT
You can customize your combo box or list box to add the color pick tool.
Refer this link : CodeProjectSample
CMFCColorDialog is what you seem to be looking for. To make it act like a drop-down, you'll need to position it below the down-arrow button (e.g., using MoveWindow).
Since you don't seem to have the MFC Feature Pack, check the Ultimate Toolbox at http://www.codeproject.com/KB/MFC/UltimateToolbox.aspx. Its Graphical User Interface classes have a Color Picker.
For Visual Studio versions prior 2008, you can use BCGSoft's color pikcer (http://www.bcgsoft.com). MFC color dialog is based on this one.
I had a similar problem with CMFCColorButton. I added the graphic resource with the ToolBox on my dialog design, but I could't assign a control variable because it did not recognize CMFCColorButton.
The answer was to include afxcolorbutton.h in the header of stdafx.h. Maybe you can fix it in the same way.
I hope this helps

Resources