Strange dialog problem

User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Strange dialog problem

Post by Jeff Barnes »

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
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post by Frank Demont »

Jeff

Have you checked the dimensions from the control's ?

What if you change the ordering from the controls ?

Frank
Wanderson
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Post by Wanderson »

Hi Jeff, if you work with pelles or other resource editor change auto radiobox and auto checkbox to radiobox and checkbox. Just it.
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Thanks Everyone, the problem is now solved.

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


[img]
http://www.can-soft.net/dl/DLL.JPG
[/img]


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

Post by James Bott »

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
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

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

Post by Antonio Linares »

Jeff,

Could you please test samples\TestFold.prg and check if it works fine for you ? thanks
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 »

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
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Antonio,

TestFold works fine on my system.




Jeff
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

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

Post by James Bott »

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
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

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

Post by James Bott »

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
Rochinha
Posts: 309
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo
Contact:

Post by Rochinha »

Jeff

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

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