Strange dialog problem
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Strange dialog problem
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
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
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Strange dialog problem
Can you build a reduced and self-contained sample of the problem?
EMG
EMG
-
- Posts: 142
- Joined: Sun Oct 09, 2005 10:59 am
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
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
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
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
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
>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
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
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
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
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
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
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
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
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.
Jeff
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.
Jeff
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
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
>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