Pelles C forum

C language => Beginner questions => Topic started by: toyet on November 29, 2007, 01:25:44 AM

Title: RC File - WS_CAPTION: a sticky dialog attribute?
Post by: toyet on November 29, 2007, 01:25:44 AM
Help! Please.

A dialog with WS_CAPTION disabled saves fine when saved for the first time.  But after re-opening the .RC file and saved more than 1 time, WS_CAPTION is enabled.

How do we disable permanently WS_CAPTION in dialogs.  We need to disable this on dialogs we use inside a Folder.

Thank you very much.

Toyet
Title: Re: RC File - WS_CAPTION: a sticky dialog attribute?
Post by: Pelle on November 29, 2007, 10:08:33 AM
Looks like a bug, but I need to look at it some more...

For now, if you uncheck caption in dialog properties, save the resource script, manually edit the script with a text editor and remove the line that says
Code: [Select]
CAPTION "..." (see example below), it looks like the caption stays away permanently...

Code: [Select]
1001 DIALOGEX DISCARDABLE 6, 18, 210, 142
STYLE WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_SYSMENU|WS_VISIBLE
CAPTION "..."
FONT 8, "MS Sans Serif", 0, 0, 1
BEGIN
...

EDIT: some coffee later ::) - just clear the 'Text' property field too... should probably be done automagically...