Ugly Bold Text

Ugly Bold Text

Postby CharlesPratt » Tue Feb 27, 2007 4:49 pm

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

Postby Antonio Linares » Tue Feb 27, 2007 5:39 pm

Charles,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Tue Feb 27, 2007 8:07 pm

Charles,

And,

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

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby CharlesPratt » Tue Feb 27, 2007 9:40 pm

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

Postby Antonio Linares » Tue Feb 27, 2007 9:48 pm

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

Postby James Bott » Tue Feb 27, 2007 11:35 pm

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

Postby RAMESHBABU » Wed Feb 28, 2007 2:24 am

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

Postby CharlesPratt » Thu Mar 01, 2007 6:01 pm

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

Postby James Bott » Thu Mar 01, 2007 6:14 pm

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: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby James Bott » Thu Mar 01, 2007 6:19 pm

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

Postby Antonio Linares » Thu Mar 01, 2007 9:15 pm

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

Postby CharlesPratt » Thu Mar 01, 2007 10:05 pm

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 84 guests