RC File - WS_CAPTION: a sticky dialog attribute?

Started by toyet, November 29, 2007, 01:25:44 AM

Previous topic - Next topic

toyet

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

Pelle

#1
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 CAPTION "..." (see example below), it looks like the caption stays away permanently...


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...
/Pelle