Page 1 of 1

Ugly Bold Text

Posted: Tue Feb 27, 2007 4:49 pm
by CharlesPratt
Hi everybody -
I hope someone can shed some light on this. I think I'm doing everything right, but I must be missing something. I use Resource Workshop for my resources and save changes in a 16 bit DLL for 16 bit FW and save it as an RC file for FWH versions. I add the 1 24 "windowsXP.Manifest" to the top of the RC file. I compile and build with the Borland make system and everything works fine, except I get the old Bold text on some of the dialogs along with the nicer smaller WinXP type text. All of the text in my TWbrowse is the Bold type. What am I missing?

Charles Pratt

Posted: Tue Feb 27, 2007 5:39 pm
by Antonio Linares
Charles,

Are you creating and setting a font to the browse from your PRG ?

Posted: Tue Feb 27, 2007 8:07 pm
by James Bott
Charles,

And,

Are you creating and setting a font for some of the dialogs?

James

Posted: Tue Feb 27, 2007 9:40 pm
by CharlesPratt
Antonio, James -
No, I'm not creating a font in my prg. However, the RC file generated by RW shows a font 8 in all dialogs that comes automatically from RW. Should these all be deleted by hand in the RC file?

Charles

Posted: Tue Feb 27, 2007 9:48 pm
by Antonio Linares
Charles,

Please upload a screenshot at www.imageshack.us and copy here the url to review it

Posted: Tue Feb 27, 2007 11:35 pm
by James Bott
Charles,

I would suggest creating a simple test file to display one of the dialogs that is showing the problem. Compile this test and link in the RC file to see if the problem persists. If it does then the problem is in the RC file, if not, then the problem is in the code of your application. Let us know what you find.

James

Posted: Wed Feb 28, 2007 2:24 am
by RAMESHBABU
Mr.Charles

Have you used 0x4L in STYLE clause ?. Try as under.
STYLE DS_SYSMODAL | DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
Regards

- Ramesh Babu P

Posted: Thu Mar 01, 2007 6:01 pm
by CharlesPratt
Ramesh -
I tried the 0x4L in the style clause, but no effect.

James, Antonio -
I did a little test with Antonio's testfold sample. I separated the dialog and folder pages into separate .RC files and added them to a nearly empty DLL file (screens.dll) with Resource Workshop. In RW, I expanded the dialog and added a line of text (LTEXT) above the folders and added two buttons below. Then I saved the file as testfold.rc. When I recompiled testfold, the folders were still intact with a nice small font, but all of the text I put in via the RW was the bold ugly type, including on the two buttons I added. I can't pick up anything different from looking at testfold .rc.

Any clues?
Charles

Posted: Thu Mar 01, 2007 6:14 pm
by James Bott
Charles,

> I separated the dialog and folder pages into separate .RC files and added them to a nearly empty DLL file (screens.dll) with Resource Workshop.

You should be using screen32.dll, not the 16bit screens.dll, however why not just compile the RC files into your app? Workshop sometimes damages 32bit DLLs so I have given them up and I edit and compile RC files instead.

James

Posted: Thu Mar 01, 2007 6:19 pm
by James Bott
Charles,

I reread your first message and I see you are trying to create both 16bit and 32bit versions so you are using a 16bit DLL. OK, but I am not clear what you did with the test program. If you want to send me your test prg and RC or DLL files, I will take a look at it.

James

Posted: Thu Mar 01, 2007 9:15 pm
by Antonio Linares
Please upload a screenshot at www.imageshack.us and copy here the url to review it

Posted: Thu Mar 01, 2007 10:05 pm
by CharlesPratt
I have found a way to solve the problem by defining a font for every dialog in the prg. This was never necessary for my 16 bit apps. I was hoping that there was an easier way. However, it really it really makes an elegant look so the work will be worth it.

Thanks to everyone who responded.

Charles