|
i am doing dialog based appliations and in the dialog there are lots of controls(radio buttons, combo boxes and buttons).
i guess the default size of fonts is 10. i need to change that to 12 and make it bold. how do i do that?? is there any way to make the font default to 12?
|
|
|
|
|
|
thanks a lot for the response.. i will certainly try out with the material u provided.. thanks again..
|
|
|
|
|
You must first create your font with CreateFont and then use of SetFont.
|
|
|
|
|
If you do not wish to change font programatically you can change it from dialog properties. There is a option to change the dialog template which inturn will apply to all child controls.
Regards,
Sandip.
|
|
|
|
|
good tip!, one could easily modify the RC files for same. like for dialog Rc entry should be something like this :-
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About TestProject"
FONT 8, "MS Sans Serif"
you could edit this to change the font size to 12 :-
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About TestProject"
FONT 12, "MS Sans Serif"
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
good tip!, one could easily modify the RC files for same. like for dialog Rc entry should be something like this :-
<small>IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About TestProject"
FONT 8, "MS Sans Serif"</small>
you could edit this to change the font size to 12 :-
<small>IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About TestProject"
<b>FONT 12</b>, "MS Sans Serif"</small>
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
hey thanks for the tip.. but will this give me an exception?? and is this a temporary solutions??
|
|
|
|
|
Chandrasekharanp wrote: hey thanks for the tip.. but will this give me an exception?? and is this a temporary solutions??
Naah it is permanent solution and it won't give you any exception
|
|
|
|
|
Hi all,
Please tell me how can use enter key on ListCtrl.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
Yes but it not working.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Why not work and also did you use of WM_KEYDOWN?
|
|
|
|
|
Did you subclassed the ListCtrl
-@SuDhIrKuMaR@-
|
|
|
|
|
ListCtrl used in FormView.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
just a question, Sir. I am short on knowledge, please don't mind . why you require to subclass the ListCtrl to handle return key
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
If you dont like don't it!
|
|
|
|
|
|
guru moorthy.k wrote: i have a application to show the calender , and any new appointments ,notes could be written on a particular day and the appointment and notes should be shown when we click that paricular day .
help me to do this ,
Read point #2 in this post[^].
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: Read point #2 in this post[^].
It's really a gud answer sir.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Great!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
|
Hi all,
I m creating a SDI type application in VC++ 2005.
I m using Splitter to split the view in two parts .
At leftside i m using a TreeCtrl and at rightside i m using a FormView where Listctrl is placed.
Please tell me how can i move from one view to another view of SDI application with the help of keyboar.
according to my application::
"How can move from Treeview to ListView with the help of Keyboard."
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Press F6.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Thanks.
After this,plz tell me how can Enter key works on List ctrl.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|