SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Severe bug

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder
View previous topic :: View next topic  
Author Message
zenon



Joined: 29 Dec 2004
Posts: 24
Location: Belgium

PostPosted: Sun Jan 08, 2006 9:51 am    Post subject: Severe bug Reply with quote

Dear sir,
Since last update I'm experiencing a severe bug which slows down my development. It regards dialogs. To create a tabbed dialog, you need to have a basic dialog, with a tab-control. Then you need several child dialogs. So I need to set the child dialog to WS_CHILD style with WS_POPUP and WS_BORDER to false. Plus you need to set the WS_EX_NOPARENTNOTIFY and WS_EX_CONTROLPARENT flags. This works fine , but the WS_POPUP and WS_BORDER style are reset automatically. I have tried setting these flags through the gui as well as in the plain text editor but the dialogs I have set well yseterday, seem to be broken again today. This bug/problem gives me a serious setback in development.

Hope to have a solution soon.
Pascal.
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sun Jan 08, 2006 2:52 pm    Post subject: Reply with quote

Hello,

Could you please send us or post here the sample RC scripts that reproduces the problem?

P.S. Do you use 2.4.0.7 version?
Back to top
View user's profile Send private message
zenon



Joined: 29 Dec 2004
Posts: 24
Location: Belgium

PostPosted: Sun Jan 08, 2006 10:15 pm    Post subject: Reply with quote

Yes I do use the 2.4.0.7 version.
I'll see if I can pinpoint the problem to narrow down the search. But what I can tell you now is the effect I saw: I opened a resource file, which I used before in previous sessions. I see on the left side the treeview with menu, dialogs etc... I select a dialog by double clicking the dialog. Now I can see the resource preview on the lower left corner and the dialog displayed in the middle. I can clearly see that the EXSTYLE contains the WS_EX flags previously mentioned. I can also see that the WS_POPUP flag and others are set (which is wrong). Now I change this by opening the properties on the right side and disable (put to false) the flags mentioned. The moment I go to file-save to keep the changes, I see the preview of the resource change the style as selected, but the EXSTYLE, gets the value 0. It seems to me that double clicking the dialog to select for editing, does not set this properly in the properties pane, thus faulty updating the resource afterwards. Just a guess, but who knows.

Pascal
Back to top
View user's profile Send private message Visit poster's website
zenon



Joined: 29 Dec 2004
Posts: 24
Location: Belgium

PostPosted: Mon Jan 09, 2006 10:14 pm    Post subject: an example... Reply with quote

200 DIALOGEX 1, 1, 413, 270, 0
EXSTYLE WS_EX_CONTROLPARENT |WS_EX_NOPARENTNOTIFY
STYLE DS_SETFONT |WS_POPUP |WS_VISIBLE |WS_SYSMENU |WS_BORDER |0x40000000
FONT 8, "MS Sans Serif", 400, 0, 1
LANGUAGE LANG_NEUTRAL, 0
BEGIN
CONTROL "Relatie",202,"BUTTON",BS_GROUPBOX |WS_CHILD |WS_VISIBLE ,7,49,154,155,0x0,0
CONTROL "Fijn goud saldo",201,"BUTTON",BS_GROUPBOX |WS_CHILD |WS_VISIBLE ,15,153,136,44,0x0,0
CONTROL "Inhoud",200,"BUTTON",BS_GROUPBOX |WS_CHILD |WS_VISIBLE ,169,49,239,156,0x0,0
CONTROL "",203,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,51,6,61,12,0x0,0
CONTROL "",204,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,51,20,61,12,0x0,0
CONTROL "",208,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,51,34,61,12,0x0,0
CONTROL "",205,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,37,66,53,12,0x0,0
CONTROL "",230,"COMBOBOX",CBS_DROPDOWN |CBS_SORT |WS_CHILD |WS_VSCROLL |WS_TABSTOP |WS_VISIBLE ,233,134,74,84,0x0,0
CONTROL "",234,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,233,150,74,12,0x0,0
CONTROL "",238,"COMBOBOX",CBS_DROPDOWN |WS_CHILD |WS_VSCROLL |WS_TABSTOP |WS_VISIBLE ,309,6,100,40,0x0,0
CONTROL "",244,"COMBOBOX",CBS_DROPDOWN |WS_CHILD |WS_VSCROLL |WS_TABSTOP |WS_VISIBLE ,309,23,100,40,0x0,0
CONTROL "",207,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,312,213,71,12,0x0,0
CONTROL "",206,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,312,227,71,12,0x0,0
CONTROL "",241,"EDIT",ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,312,251,71,14,0x0,0
CONTROL "",209,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,25,167,52,12,0x0,0
CONTROL "",210,"EDIT",ES_AUTOHSCROLL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,25,181,52,12,0x0,0
CONTROL "",228,"EDIT",ES_MULTILINE |ES_LEFT |WS_CHILD |WS_BORDER |WS_VSCROLL |WS_TABSTOP |WS_VISIBLE ,61,209,194,58,0x0,0
CONTROL "PakNr:",211,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,6,7,25,12,0x0,0
CONTROL "Datum:",212,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,6,21,25,12,0x0,0
CONTROL "Voorschot:",213,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,268,227,35,12,0x0,0
CONTROL "[EEE]",214,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,386,229,22,12,0x0,0
CONTROL "Kostprijs:",215,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,268,213,34,12,0x0,0
CONTROL "[EEE]",216,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,386,213,24,12,0x0,0
CONTROL "ID:",217,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,15,66,14,8,0x0,0
CONTROL "Zoeken...",218,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,103,62,50,14,0x0,0
CONTROL "",219,"STATIC",SS_SUNKEN |SS_LEFT |WS_CHILD |WS_BORDER |WS_GROUP |WS_VISIBLE ,15,103,138,47,0x0,0
CONTROL "...",220,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,117,20,12,12,0x0,0
CONTROL "Leverdatum:",222,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,6,35,42,12,0x0,0
CONTROL "...",223,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,117,35,12,12,0x0,0
CONTROL "gr. Fijn goud",224,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,81,168,48,12,0x0,0
CONTROL "gr. 18kt goud",225,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,81,181,43,12,0x0,0
CONTROL "Aanmaken...",226,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,103,80,50,14,0x0,0
CONTROL "Opmerkingen:",227,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,9,212,49,12,0x0,0
CONTROL "",229,"SysListView32",LVS_REPORT |LVS_SHAREIMAGELISTS |LVS_EDITLABELS |LVS_ALIGNTOP |WS_CHILD |WS_BORDER |WS_VISIBLE ,181,68,219,56,0x0,0
CONTROL "Toevoegen",231,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,322,130,79,14,0x0,0
CONTROL "Verwijderen",232,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,322,148,79,14,0x0,0
CONTROL "Samenstelling",233,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,322,166,79,14,0x0,0
CONTROL "Type:",235,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,203,135,25,8,0x0,0
CONTROL "Omschrijving:",236,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,183,151,44,8,0x0,0
CONTROL "Opgemaakt door:",237,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,245,9,57,8,0x0,0
CONTROL "Picture0",239,"STATIC",SS_BLACKRECT |WS_CHILD |WS_VISIBLE ,265,243,140,2,0x0,0
CONTROL "Saldo:",240,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,268,253,25,8,0x0,0
CONTROL "[EEE]",242,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,386,255,22,12,0x0,0
CONTROL "Globale status:",243,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,245,25,48,8,0x0,0
CONTROL "Type:",245,"STATIC",SS_LEFT |WS_CHILD |WS_GROUP |WS_VISIBLE ,15,83,17,8,0x0,0
CONTROL "",246,"COMBOBOX",CBS_DROPDOWN |WS_CHILD |WS_VSCROLL |WS_TABSTOP |WS_VISIBLE ,37,81,53,36,0x0,0
CONTROL "Geleverd door klant...",247,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,322,184,79,14,0x0,0
END


For some reason, he seems to reset dialogs like this one from WS_CHILD to WS_POPUP, making them appear outside the tabbed dialog. Am I doing something wrong here ?
Back to top
View user's profile Send private message Visit poster's website
zenon



Joined: 29 Dec 2004
Posts: 24
Location: Belgium

PostPosted: Mon Jan 09, 2006 10:27 pm    Post subject: some more information Reply with quote

OK, I've done the following. I edited the rc file with ultraedit, saved it and loaded it into resource builder. I looked to the edited dialog and the WS_CHILD was changed into WS_POPUP, so the problem lies in reading the rc-file. This practically means I have to edit - in one big session - all dialogs, just to be sure the screens will display right in my app. So for the moment, resource builder is useless to me. And I dare not go back to a previous version.

Hope you can fix this really fast.

Pascal.
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Jan 11, 2006 12:18 pm    Post subject: Reply with quote

At http://www.sicomponents.com/soft/resbuild2408.zip is placed preview of 2.4.0.8 files with this fix. Could you please confrim that it works for you? Thank you.

P.S. Just unzip the files to run.
Back to top
View user's profile Send private message
zenon



Joined: 29 Dec 2004
Posts: 24
Location: Belgium

PostPosted: Wed Jan 11, 2006 6:07 pm    Post subject: WS_CHILD Reply with quote

Yes, this seems to fix the problem. As soon as I open an rc-file, the preview shows it as should, saving the resource does not alter these flags.

Thanks,
Pascal.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group