Page 1 of 2
Strange dialog problem
Posted: Fri Feb 16, 2007 12:59 am
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
Re: Strange dialog problem
Posted: Fri Feb 16, 2007 8:30 am
by Enrico Maria Giordano
Can you build a reduced and self-contained sample of the problem?
EMG
Posted: Fri Feb 16, 2007 1:24 pm
by Frank Demont
Jeff
Have you checked the dimensions from the control's ?
What if you change the ordering from the controls ?
Frank
Posted: Fri Feb 16, 2007 11:30 pm
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.
Posted: Sat Feb 17, 2007 12:42 pm
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
Posted: Sat Feb 17, 2007 6:17 pm
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
Posted: Sat Feb 17, 2007 6:45 pm
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
Posted: Sat Feb 17, 2007 6:46 pm
by Antonio Linares
Jeff,
Could you please test samples\TestFold.prg and check if it works fine for you ? thanks
Posted: Sat Feb 17, 2007 7:00 pm
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
Posted: Sat Feb 17, 2007 8:28 pm
by Jeff Barnes
Antonio,
TestFold works fine on my system.
Jeff
Posted: Sat Feb 17, 2007 8:56 pm
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
Posted: Sat Feb 17, 2007 9:18 pm
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
Posted: Sun Feb 18, 2007 2:09 am
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.
Jeff
Posted: Sun Feb 18, 2007 2:57 am
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
Posted: Sun Feb 18, 2007 3:46 pm
by Rochinha
Jeff
Don't use WordShop to modify a 32 bits DLLs.
Midify your RC file and use RC2DLL32.bat. allways.