NO

Author Topic: RC File - WS_CAPTION: a sticky dialog attribute?  (Read 3224 times)

toyet

  • Guest
RC File - WS_CAPTION: a sticky dialog attribute?
« 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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: RC File - WS_CAPTION: a sticky dialog attribute?
« Reply #1 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...
« Last Edit: November 29, 2007, 11:50:03 AM by Pelle »
/Pelle