Ugly Bold Text

Post Reply
CharlesPratt
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Ugly Bold Text

Post 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
Charles Pratt
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Charles,

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

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Charles,

And,

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

James
CharlesPratt
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Post 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
Charles Pratt
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Charles,

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

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post 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
CharlesPratt
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Post 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
Charles Pratt
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
CharlesPratt
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Post 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
Charles Pratt
Post Reply