This is going to be hard to describe but I'll try my best.
Comparing two Visual C++ RC files. Sometimes RC files get slightly reformatted by different versions of Visual C++, plus the X-Y co-ordinates/sizes will be different. The objective is to compare the X-Y co-ordinates/sizes when they might be "wrapped" across lines delimited by commas or | bar.
Variation #1
Variation #2
Would be useful to have a tidy/reformat one side (left or right) to be aligned with the other side. This would be based on commas or | bar.
Is this possible to do?
Here's an example
LEFT SIDE:
RIGHT SIDE:
Let's say we want to match the layout of the right-side... then the left-side would need to move/shift IDC_PARENTCHECK up one line... and also the two numbers 232,153, only (but notice the numbers do not match left-right sides)
-------------
Manually doing this.
Each component can span/wrap over several lines, and each has variable amounts of commas and/or | bars.
For each component, compare the number of tokens in the parameter list for line 1. Shift tokens about between line 1 & 2 so that it matches the other side. Goto next line and repeat....
Comparing two Visual C++ RC files. Sometimes RC files get slightly reformatted by different versions of Visual C++, plus the X-Y co-ordinates/sizes will be different. The objective is to compare the X-Y co-ordinates/sizes when they might be "wrapped" across lines delimited by commas or | bar.
Code:
IDD_EXAMPLE DIALOG 100, 100, 100, 100 BEGIN PUSHBUTTON "Example",IDC_EXAMPLE,10,10,10,10 END
Code:
IDD_EXAMPLE DIALOG 100, 100, 100, 100 BEGIN PUSHBUTTON "Example",IDC_EXAMPLE,20,30, 40,50 END
Code:
IDD_EXAMPLE DIALOG 100, 100, 100, 100 BEGIN PUSHBUTTON "Example", IDC_EXAMPLE,60,70,80, 90 END
Is this possible to do?
Here's an example
LEFT SIDE:
CONTROL "something",
IDC_PARENTCHECK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
232,153,226,10
IDC_PARENTCHECK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
232,153,226,10
RIGHT SIDE:
CONTROL "something",IDC_PARENTCHECK,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,666,999,
226,10
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,666,999,
226,10
-------------
Manually doing this.
Each component can span/wrap over several lines, and each has variable amounts of commas and/or | bars.
Code:
BEGIN COMPONENT1 <parameter list delimited by commas & bars> COMPONENT2 <parameter list delimited by commas & bars> COMPONENT3 <parameter list delimited by commas & bars> END
Comment