Page 5 of 6

PostPosted: Mon Dec 10, 2007 12:17 pm
by Maurilio Viana
Antonio,

A suggestion: when the RE project reach design phase will be very if if you display guide lines to align the controls in dialog.
New versions of VB, Delphi, etc do it. When you move a control or object the IDE display align guidelines and tooltip of coordinates.
Below we have examples from Turbo Delphi 2006:
Image

Regards
Maurilio

PostPosted: Mon Dec 10, 2007 12:54 pm
by Silvio
Antonio,

Do you have corrct Designer forms project to create Visual Forms and save it on rc ?

PostPosted: Mon Dec 10, 2007 1:14 pm
by Antonio Linares
Maurilio,

Yes, its very usefull.

Mac OSX "Interface Builder" uses those guide-lines since several years ago

PostPosted: Mon Dec 10, 2007 1:15 pm
by Antonio Linares
Silvio,

We are actually just building and testing an early prototype

PostPosted: Mon Dec 10, 2007 2:51 pm
by CharlesPratt
Antonio -
Here is a very simple rc file that shows the problem. The original file has more LTEXTand EDITTEXT as well as a checkbox, but this simplified version shows the problem when I open it with a doubleclick in the re.exe. The string will appear normally if the commas are removed.

testname.rc

TESTNAME DIALOG LOADONCAL MOVEABLE DISCARDABLE 6, 15, 253, 169
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "Edit Company Phone Numbers"
FONT 8, "MS Sans Serif"
{
LTEXT "Change Company Name, Address, And Phone Numbers", -1, 8, 10, 232, 10
PUSHBUTTON "OK", 10, 12, 144, 50, 14
PUSHBUTTON "Cancel", 2, 101, 144, 50, 14
PUSHBUTTON "Help", 998, 190, 144, 50, 14
}

PostPosted: Mon Dec 10, 2007 3:37 pm
by Antonio Linares

PostPosted: Mon Dec 10, 2007 6:10 pm
by CharlesPratt
Antonio -
That fixed it! Many thanks. This project is moving along very nicely. Will you be adding TFOLDER support soon?

Best regards,
Charles

PostPosted: Mon Dec 10, 2007 8:10 pm
by Antonio Linares
Charles,

You can already use "SysTabControl32" for folders

PostPosted: Mon Dec 10, 2007 8:43 pm
by CharlesPratt
Antonio -

I do use SysTabControl32 but I get a message that TCS_MULTILINE style is not found. Can you add that to the style list?

Regards,
Charles

PostPosted: Mon Dec 10, 2007 8:48 pm
by Antonio Linares
Charles,

Even if the style TCS_MULTILINE is not implemented yet, the SysTabControl32 control should be shown

PostPosted: Mon Dec 10, 2007 10:02 pm
by CharlesPratt
Antonio -

OK, I can be patient.

I have another question, though. My folder pages are all individual dialogs and do not have SYS_MENU on them, nor a button with ID 1 or 2. As a result I can't close these dialogs in RE.EXE so I hit Ctrl. Alt, Del and close the editor. I suppose at some point you will need some sort of button outside the dialog to close them?

Regards,

Charles

PostPosted: Mon Dec 10, 2007 10:38 pm
by Antonio Linares
Charles,

You can press Esc to close them.

Anyhow, the idea is to use a reasizable border with a close button on it too

PostPosted: Tue Dec 11, 2007 3:24 am
by CharlesPratt
Antonio -

Thanks. If the esc works, that's all I should need.

Regards,
Charles

PostPosted: Tue Dec 11, 2007 8:58 am
by Otto
Hello Antonio,
Could you please test with this rc-file.
This does not work here.
Regards,
Otto

ABREISE DIALOG 18, 18, 142, 70
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Abreiseliste"
BEGIN
CONTROL "", 101, "EDIT", ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 72, 15, 54, 12
LTEXT "Abreisetag", 102, 16, 17, 50, 10
DEFPUSHBUTTON " Speichern", 1, 75, 44, 55, 20
PUSHBUTTON " Abbruch", 2, 11, 44, 55, 20
END


ANKUNFT DIALOG 18, 18, 142, 92
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Ankunftsliste"
BEGIN
LTEXT "Ankunftstag", 102, 22, 15, 65, 10
CONTROL "", 101, "EDIT", ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 70, 15, 54, 12
DEFPUSHBUTTON " Speichern", 1, 75, 57, 55, 20
PUSHBUTTON " Abbruch", 2, 11, 57, 55, 20
END


ARTEIN DIALOG 18, 18, 162, 110
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Artikel - Nr."
BEGIN
EDITTEXT 101, 73, 23, 57, 12
CONTROL "", 103, "EDIT", ES_LEFT | ES_NOHIDESEL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 75, 49, 20, 12
CONTROL "", 106, "EDIT", ES_LEFT | ES_NOHIDESEL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 75, 62, 55, 12
PUSHBUTTON "...", 109, 134, 25, 9, 9
LTEXT "Eingabe Artikel-Nr.", 102, 5, 25, 65, 10
LTEXT "Menge", 104, 5, 51, 25, 8
LTEXT "Preis", 107, 5, 64, 25, 8
EDITTEXT 105, 5, 36, 125, 12
DEFPUSHBUTTON " Speichern", 1, 85, 86, 55, 20
PUSHBUTTON " Abbruch", 2, 21, 86, 55, 20
END

PostPosted: Tue Dec 11, 2007 11:41 am
by Silvio
Antonio,
This is very interesting...
How I can contribute for it ?
Can i help YOU ?