FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour No icons in the buttons of the Preview
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
No icons in the buttons of the Preview
Posted: Mon Mar 19, 2007 12:41 PM

Hello,

In the preview of any report, generated by the TPrinter class, there are no icons in the buttons, although PREV32.DLL is in the same folder.

It doesn't happen all the time. On my systems with WIN XP Prof, I have no problem. On Windows Vista, the icons are invisible.

But I also have the same problem on some WIN XP systems of my costumers.

Does anyone know how this can be solved ?

Thanks.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
No icons in the buttons of the Preview
Posted: Mon Mar 19, 2007 12:49 PM

Hello Guys,

Sorry, I found the reason for my problem.

I translated the PREV32.DLL to Dutch by using Resource Workshop.

Unfortunately, that isn't possible.

After having put back the original PREV32.DLL, the icons on the buttons reappeared.

But how can I translate PREV32.DLL to Dutch. My costumers don't like English in their software.

Thanks a lot.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
No icons in the buttons of the Preview
Posted: Mon Mar 19, 2007 01:04 PM

Create a new RC or RES project, import prev32.dll, save and then link the RC or RES to your EXE.

EMG

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
No icons in the buttons of the Preview
Posted: Mon Mar 19, 2007 02:04 PM

Enrico,

And I need to adjust the RPREVIEW class since it is directed to PREV32.DLL, don't I ?

Thanks.

I'll try it out.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
No icons in the buttons of the Preview
Posted: Mon Mar 19, 2007 02:19 PM
driessen wrote:Enrico,

And I need to adjust the RPREVIEW class since it is directed to PREV32.DLL, don't I ?


Yes, sorry. By the way, I just tried to change messages from prev32.dll and found it perfectly working.

EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
No icons in the buttons of the Preview
Posted: Mon Mar 19, 2007 03:38 PM

I find that often when I edit a 32bit DLL with Workshop, it is damaged.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
No icons in the buttons of the Preview
Posted: Mon Mar 19, 2007 06:55 PM

Enrico,
James,

I transferred PREV32.DLL to RC-file, compiled it to a RES-file and linked it in my application.

I changed RPREVIEW.PRG (get rid of GetResources(), "PREV32.DLL" ...) and linked it in my application, too.

Now, everything is working fine.

Thanks a lot for your help, guys.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion