To anyone thats interested,

I've made some fixes and additions to ResEdit.

1. Stoped the jumping of the dialog if you size the main window and the dialog is larger then the work window.

2. I've created a seperate window for the applications equates list.

3. Fixed the problem that if you select the dialog and then select the controls for keyboard move, size functions, it will now work.

4. Added WS_MINIMIZEBOX, WS_MAXIMIZEBOX styles to the dialog styles.

5. Increaced the caption(text) size from 32 bytes to 256.

7. Fixed a buffer overrun problem if doing a single dialog selection from a very large resource file.

8. Fixed KetilO's last bug he found. (03-06-2002)

9. Fixed a bug when moving or sizing a Groupbox from the listbox fields.

10. Keyboard input will now work if the cursor is within the dialog or Work window.

9. Some others that I can't remember.

** New features **
You can now select a single dialog from a resource file.

Select either the whole dialog header line or the dialog name or ID (if no name) on the header line.

Then press the Extract A Selected Dialog button.
You can repeat the above any number of times.

You can now clear the dialog(s) from memory.


Posted on 2002-03-05 00:08:40 by Ewayne
Thanks!! for this cool tool. :)
Posted on 2002-03-05 12:09:40 by marsface
To marsface;

Your welcome, it will get better.

Posted on 2002-03-05 12:20:31 by Ewayne
Hi Ewayne

Tiny bug.

1. Draw dialog
2. Draw button
3. Click on dialog and hold button
4. Move cursor to button and release mouse button

The button dissapears.

Posted on 2002-03-06 08:16:50 by KetilO
Yep..changes the width and height to 22 and 6, doesn't alter the top and left numbers though..but puts the now very small button in the upper left corner of the dialog (can barely see it).

After closing and firing it back up and trying the same thing, it doesn't act the moved the button (and kept the dimensions) but put the button at top left or bottom left of the dialog.
Posted on 2002-03-06 08:48:06 by gscundiff
To KetilO and Gary:

I fixed your bug and a couple others, plus added
some new things.

Go to the post above for the latest.

Thanks for the feedback,

Posted on 2002-03-06 12:40:22 by Ewayne
Hi Ewayne

You are getting close. Yet another small bug.

1. Draw a dialog
2. Draw a button
3. Click on dialog and hold mouse button
4. If you move cursor over one of the sizeing handles there will be drawn a rectangle at random positions, and if you release mouse button on one of the handles the dialog get resized.

Posted on 2002-03-06 13:54:22 by KetilO
I like new idea-feature: shortcuts on group operations
(alt-w etc).
Very creative idea from practical point of view.
Posted on 2002-03-06 17:45:07 by The Svin
I can not move groupbox with keyboard and also can not move
any controls inside a groupbox with keyboard
Posted on 2002-03-06 18:08:57 by The Svin
Keyboard moving operations in group box works OK until any of
controls inside groupbox was selected with red.
After it happend it is doesn't matter if you select or deselect controls - keyboard operations wouldn't back to working.
- Make group box with controls
- Move group boxes or controls inside.
- Select any control inside with red dot
Independently of what you will do after that - keyboard operations on group box and controls inside it stop and will not
return to life.
Posted on 2002-03-06 18:20:47 by The Svin
It would usefull:
1. If I can use tab selecting next control while working in property window.
2. If I can use enter to go to next field in property window.

Another thing:
Why I can not draw group box inside groupbox?
Posted on 2002-03-06 19:01:04 by The Svin
Something funny is going on when one groupbox accedently moved on another.
Especially if after that you try to use keyboard to move one of groupbox.

From practicing for several days I can say - there MUST be feature
to remember one or few last loaded rc files when selecting rc file to load. Too many time is wasted on brousing - choosing rc file in open file dlg.
Posted on 2002-03-06 20:01:36 by The Svin
Hi All,

Another update.

1. Fixed KetilO's last bug.

2. Fixed The Svin's overlapping Groupbox bug.

You can now use the keyboard input for controls
that you select from the properties Combobox
without having to move the cursor over the dialog
or Work window.

You can now reverse the Tab key control selection
by using Shift+Tab.

To The Svin:

I think a third of the code in ResEdit is for
the Groupbox control:( .

To move or size a Groupbox with the keyboard,
make sure the move the Groupbox checbox is turned on.

You can not to a mult. select on a Groupbox, that
will come later.

If you have the Groupbox selected, you will not
be able make mult. selections on the controls
within the Groupbox, you need make sure the move
the Groupbox checkbox is turned OFF, and then
deselect the Groupbox, then you can make the mult.

You can not draw a Groupbox within a Groupbox,
because of the complexity of the code involved.

You can however draw a second Groupbox and move
that over another Groupbox, if one of the Groupbox's
becomes hidden you can use the properties Combobox
to bring it to the top.

I'm working on using the enter key to go to the
next field in the properties list and I will put
in a MRU file list.

Thanks for all of the feedback.

Posted on 2002-03-07 13:27:23 by Ewayne
Well... I've gotten in situation :)
It's not your fault of course - I delibaratly put myself in risk - a wish
to try your ResEdit in real work was too big :)

1. Despite of new feature allowing to extract only selected dlg
ResEdit in my project always extract all of them - I guess position
of #define statements has something to do with it.
2. I created dlg in ResEdit - it looked fine in design time and
was compiled fine too.
But when I reload it - it was complite mess and all this about group
controls work.

Let me know if it can be fixed in short time (it's OK if not - I'll switch to
another editor for the project, but I need to know(cause we never surrender :)
if I absolutly have to do it, if there is chance to fix it soon - I'll stick with ResEditor.)

Despite of the problems and my life with ResEditor in near future -
I with all my heart wish you good luck, keep you faith, don't surrender.
Posted on 2002-03-07 14:10:03 by The Svin
I 'm glad to inform you that I found a way out of my last problem -
In rc file if put grpbox control statement before controls which
supposed to be in the grpbox control all work fine.

In final app (ResEdit),I think, you need somehow come over
this problem (it's not allowed in pro apps to make user remember
of such special details - app needs to control it and validate :)
but for the time I'm able to continue my project with ResEdit.
And I prommise you a lot of feedback :)
Posted on 2002-03-07 14:41:22 by The Svin
To The Svin:

You don't need to have the Groupbox before it's
controls in the dialog, they can be all mixed up.

I took the sample file you sent and grouped all
of the defines together and was able to extract a
single or both dialogs, moved some of your edit
fields a little, built the dialog and compiled it.

I'm sending the output with a test program.


Posted on 2002-03-07 15:35:30 by Ewayne
The first dialog had no problems.
The second dialog did.
In your test - there is the same problem - edits from right groupbox disapeard from it and shifted to left groupbox covering
edits in left groupbox.
The problems remains.
Posted on 2002-03-07 19:26:31 by The Svin
About extracting selected dlg - reread my previous post -
I assumed that problem was in #define statement:
Try to put part of defenitions after block of any dlg description - and you'll see the problem.
In you testrc you put definitions at the begining of rc file - but in my original rc they in two blocks - each block of constant preceded dlg
description block to wich those contstants where related to.
So I put it the same way in your test rc and result was the same -
instead of one selected dlg two was extracted.
Posted on 2002-03-07 19:37:57 by The Svin
To The Svin:

Sorry about the delay, I came down with a little
bit of the flu.

My test dialog had 4 Groupbox's, but they were
position in such a way that it didn't matter what
order the controls were in and it extracted ok.

But the dialog that you sent me was a little

I've changed the program so it doesn't matter what
order any of the controls are in and it will extract ok.

I also changed the program so the defines do not
have to be grouped together in the resource file
to extract a single dialog.

I sent your original rsrc.rc in the so
you can see that it will extract ok.

Read the Readme file.

Posted on 2002-03-08 19:55:27 by Ewayne
You are working in good speed.
Things became better.

Some new things:

a.) Yet again about size of main window and dlg - if dialog is bigger it is out of main
window pane.
I mean when ResEdit started and has its initial size that has main window pane less then
extructed dlg window, dlg window is out of main pane and when you even maximize it(main window)
shift remains as if dlg window sticks to some coordinates of main window though the coordinates
make dlg window out of main window pane. It settles after some resizing manipulations, but is annoying
to do it each time.
To recreate the problem:
1. Open ResEd and maximize it.
2. Create a biggest possible dlg window
3. Create rc file.
4. Close ResEditor
5. Open ResEditor again but don't maximize it this time.
6. Load created rc and extract dlg you created (step two)
7. Stwitch dlg tab and select the dialog.
You'll see dlg window going out of main window in somewhat upper right direction
8. Now maximize main window
You'll see dlg window yet over title bar f the main as if it is stack to some coordinates.


b.) Space operations works sometimes funny and unpredictable way,
I cann't explain more, please, try to play with it a little bit setting little space gaps (1 or 0) between
groups of controls.
Posted on 2002-03-08 23:09:27 by The Svin