Strange dialog problem

Strange dialog problem

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

Re: Strange dialog problem

Postby Enrico Maria Giordano » Fri Feb 16, 2007 8:30 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Frank Demont » Fri Feb 16, 2007 1:24 pm

Jeff

Have you checked the dimensions from the control's ?

What if you change the ordering from the controls ?

Frank
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Wanderson » 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.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Postby Jeff Barnes » 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.


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


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

Postby James Bott » Sat Feb 17, 2007 6: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Jeff Barnes » Sat Feb 17, 2007 6: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
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » Sat Feb 17, 2007 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Sat Feb 17, 2007 7: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Jeff Barnes » Sat Feb 17, 2007 8:28 pm

Antonio,

TestFold works fine on my system.




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

Postby Jeff Barnes » Sat Feb 17, 2007 8: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
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby James Bott » Sat Feb 17, 2007 9: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Jeff Barnes » Sun Feb 18, 2007 2: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
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby James Bott » Sun Feb 18, 2007 2: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Rochinha » Sun Feb 18, 2007 3:46 pm

Jeff

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

Midify your RC file and use RC2DLL32.bat. allways.
Rochinha
 
Posts: 310
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 40 guests