by Marc Venken » Mon Jul 19, 2021 2:55 pm
I would also prefer a FW solution, but the editor is not ready sofar.
Maybe a other idea... Just thinking ...
RC code looks like this :
omzetdlg DIALOG 6, 19, 797, 426
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Superteksten"
FONT 8, "Arial"
{
DEFPUSHBUTTON "Einde", 900, 11, 402, 36, 14
DEFPUSHBUTTON "Edit", 350, 56, 402, 36, 14
PUSHBUTTON "Clear", 101, 440, 11, 36, 14
COMBOBOX 100, 8, 9, 60, 89, CBS_DROPDOWNLIST | WS_TABSTOP
COMBOBOX 110, 76, 9, 71, 65, CBS_DROPDOWNLIST | WS_TABSTOP
CONTROL "", 300, "TxBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 447, 253, 339, 140
CONTROL "", 320, "TxBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 11, 189, 429, 204
CONTROL "", 200, "TxBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 9, 38, 778, 140
LTEXT "Klant", -1, 626, 187, 24, 12
LTEXT "700", 700, 656, 187, 24, 12
LTEXT "650", 650, 160, 11, 232, 13
}
If I look at this, I see a Xbrowse to fill this kind of data.
The question is can we have xbrowse create a dialog from it ?
We could create a function FW_ResEditor() that call this xbrowse, fill the data a let it create the dialog. It will not be a What you see editor, like Pelles, Workshop, but we changes the values of the data in xbrowse to changes the layout.
so calling the function more than once until all recources are in place.
I know that some already use a basic text editor to finetune the positions etc...,
I would be a full FW fucntion with no need for extra's like C++, People that need more could still use pelles, and change what ever Windows update would need.
So, changing the Xbrowsedata and than rebuild the dialog will make a final dialog to use.
Marc Venken
Using: FWH 23.04 with Harbour