FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Strange dialog problem
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Strange dialog problem
Posted: Fri Feb 16, 2007 12:59 AM

Hi Everybody,

I have a dialog box with 4 folders ...
In the folders I have some checkboxes and radios.

Here is the strange thing...

When I click on a radio or a checkbox the text for the control will disappear until I click into another field.

Has anyone ever seen this before?

Thanks,
Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Strange dialog problem
Posted: Fri Feb 16, 2007 08:30 AM

Can you build a reduced and self-contained sample of the problem?

EMG

Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Strange dialog problem
Posted: Fri Feb 16, 2007 01:24 PM

Jeff

Have you checked the dimensions from the control's ?

What if you change the ordering from the controls ?

Frank

Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Strange dialog problem
Posted: Fri Feb 16, 2007 11:30 PM

Hi Jeff, if you work with pelles or other resource editor change auto radiobox and auto checkbox to radiobox and checkbox. Just it.

Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Strange dialog problem
Posted: Sat Feb 17, 2007 12:42 PM
Thanks Everyone, the problem is now solved.

It was a problem with the DLL file. I removed the following entry and everything was fine.


http://www.can-soft.net/dl/DLL.JPG
" alt="" loading="lazy">


Jeff
Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Strange dialog problem
Posted: Sat Feb 17, 2007 06:17 PM

Jeff,

That seems to be the entry to support themes. So you are saying it is a problem under themes only? If so, it still needs to be fixed.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Strange dialog problem
Posted: Sat Feb 17, 2007 06:45 PM

Hi James,

Themes? What do you mean by themes?
As far as I know, my DLL should only have 2 types of data in it....
1. Dialogs
2. Stringtables

I don't know how anything else got added to the DLL.

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Strange dialog problem
Posted: Sat Feb 17, 2007 06:46 PM

Jeff,

Could you please test samples\TestFold.prg and check if it works fine for you ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Strange dialog problem
Posted: Sat Feb 17, 2007 07:00 PM

Jeff,

>Themes? What do you mean by themes?
>As far as I know, my DLL should only have 2 types of data in it....
>1. Dialogs
>2. Stringtables

XP themes.

>I don't know how anything else got added to the DLL.

I have never seen themes added to a DLL, only RC and RES files. With a RC file you add this to the file using any editor:

1 24 "theme.man"

And then you create a file called "theme.man" which contains XML code describing themes. The above code pulls in the theme.man file during linking just like an include file.

If you save the RC file as an RES file then it looks like what you described is in your DLL. The theme.man file gets compiled into the RES file. If you are using a resource editor other than Workshop, perhaps it puts this code in automatically so the app will support themes.

So I think it would be useful for all if we can find the problem and fix it.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Strange dialog problem
Posted: Sat Feb 17, 2007 08:28 PM

Antonio,

TestFold works fine on my system.

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Strange dialog problem
Posted: Sat Feb 17, 2007 08:56 PM

James,

Something is strange here ... I know I never went through that series of events (themes that is)

This is what I normally do:

  1. make changes to my DLL file via Workshop.
  2. Save the project (I save as both a DLL and an RC)
  3. If my app gives me the "DLL is not a valid win 32...." error I run the rc2dll32.bat file to convert my .rc to a proper DLL

That's all I do, so this theme thing has me confused.

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Strange dialog problem
Posted: Sat Feb 17, 2007 09:18 PM

Jeff,

I gave up using DLLs with 32bit apps because of the problem editing them with Workshop. Why not just use the RC file instead? Also, if you use RC files, then you don't need to distribute DLLs.

I suppose it doesn't matter how the theme code got in there. You should have it anyway so your apps support themes. Thus we still need to solve the original problem you were having. Can you supply a small self-contained program showing the problem?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Strange dialog problem
Posted: Sun Feb 18, 2007 02:09 AM

James,

Ok, explain this one....

I took a backup of my DLL file (it had the theme stuff in it)

I did a copy/paste of the area where the problem was from my original .prg file into a new .prg file and compiled the new file.

The problem is not there in the new file.

Maybe my computer just needs to sleep for a few days. :wink:

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Strange dialog problem
Posted: Sun Feb 18, 2007 02:57 AM

Jeff,

>The problem is not there in the new file.

>Maybe my computer just needs to sleep for a few days.

You may be right. Often, when I am getting a wierd problem, I reboot just in case there is some strange memory glitch. Often it solves the problem. The increased stablity of XP means that you tend to reboot less often, even after crashes, and sometimes those crashes have strange conseqences.

Glad to hear the problem is gone. And now you know about themes, so some good came of it.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 310
Joined: Sun Jan 08, 2006 10:09 PM
Strange dialog problem
Posted: Sun Feb 18, 2007 03:46 PM

Jeff

Don't use WordShop to modify a 32 bits DLLs.

Midify your RC file and use RC2DLL32.bat. allways.