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
Related
I have a CEdit control on a dialog. I want to write a text in, and to make the edit box resizable, so the text will be stretched or compressed accordingly.
How can I do it?
Is there a control other than CEdit which enables this option?
MFC does not provide an automated way of handling resizing... there are several additions which can help you. See also:
http://www.codeproject.com/Articles/568/CResizableDialog
http://www.codeproject.com/Articles/262517/Using-WTLs-Built-in-Dialog-Resizing-Class-for-MFC
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.
Does anyone know whether it is possible to make a menu in ncurses show different items with different colours? As far as I found out, it is only possible to change its foreground and background colours. If not possible, is there any other 3rdparty menu implementation that allows it?
The menu library does not provide a way to set the colors of individual menu items.
I'm afraid you will need to implement your own menu or modify the menu library that comes with ncurses.
The S-lang library provides good color options; you can see how it is used in the mutt email client.
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
Someone knows some way of putting only 16 colors in the CColorDialog of Visual Studio c++ when it is opened?
I don't think that's possible with the standard MFC CColorDialog.
But if you really only need 16 colors, wouldn't it make more sense to use something more simple like a combo box to pick a color, in stead of a full dialog?
Here's a Code Project article with an example implementation of a Color Picker Combo Box: