Color and Font Manipulation
-
Hello, Am looking for something that allows me to manipulate displayed text. This is what I am doing 1.To the dialog, I add a Static Text 2.Chage the ID to IDC_xyz 3.Add a member variable for this IDC 4.Display text using this member variable Now what I want to do is manipulate the font and color so that it looks more colorful or bigger!! But I cant seem to find anything. I had a look at CCreditsCtrl but it throws a Run-Time error. Since I am a newbie at this,was hoping someone could help me out.
-
Hello, Am looking for something that allows me to manipulate displayed text. This is what I am doing 1.To the dialog, I add a Static Text 2.Chage the ID to IDC_xyz 3.Add a member variable for this IDC 4.Display text using this member variable Now what I want to do is manipulate the font and color so that it looks more colorful or bigger!! But I cant seem to find anything. I had a look at CCreditsCtrl but it throws a Run-Time error. Since I am a newbie at this,was hoping someone could help me out.
I've used CLabel for years[^] to do this kind of thing in MFC Michael CP Blog [^] Development Blog [^]
-
I've used CLabel for years[^] to do this kind of thing in MFC Michael CP Blog [^] Development Blog [^]
Ok now I know I am going to make a complete fool of myself. I had a look at CLabel .The problem is that the Static Text has to be mentioned before initialisation itself on the Dialog Box. I dont want tht. Basically I am writing an edcational program so I want to display dynamically generated text and it is the same text that I want to modify. Thank you for your help anyway.
-
Ok now I know I am going to make a complete fool of myself. I had a look at CLabel .The problem is that the Static Text has to be mentioned before initialisation itself on the Dialog Box. I dont want tht. Basically I am writing an edcational program so I want to display dynamically generated text and it is the same text that I want to modify. Thank you for your help anyway.
Ok, I figured out how to use CLabel for my program. However I dont quite know how to use the SetLoadCursor(LoadCursor.....). I keep getting c2664(if I remember correctly) which says that it cannot convert parameter 2 fm int to ..... The thing is that I add the hand.cur to the Resource under the Cursor resource and then pass it as the 2nd parameter. . Am i doing something wrong? -- modified at 7:37 Wednesday 25th January, 2006