FWH Resources Editor - Speed test

Postby Antonio Linares » Tue Dec 04, 2007 2:32 pm

More screenshots:

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Tue Dec 04, 2007 3:35 pm

More supported controls (with included RCs to test):
http://www.hotshare.net/file/20446-85697987e6.html

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurilio Viana » Tue Dec 04, 2007 7:33 pm

Antonio,
I did any tests as follow

QUESTION 1:
I use the old Workshop and times ago I have problems to insert a new dialog because I had a lot of dialogs. Then I "split" my rc in 2 or more files, like:
BaseBmp.rc
BaseRes.rc
Gr_Dlg.rc

I edit each one and I create a main RC file that have a content like:

Code: Select all  Expand view  RUN
1 24 "manifest.xml"

#include "..\LIB\RC\BaseBmp.rc"
#include "..\LIB\RC\BaseRes.rc"
#include ".\RC\Gr_Bmp.rc"
#include ".\RC\Gr_Dlg.rc"


In my compilation bat I use this main RC to generate the complete RES file and link it with my EXE. To edit the resources (with old and good Workshop) I edit each one (BaseBmp.rc, Gr_Dlg.rc, etc).
Do you plan make your Resource Editor know the '#include' ?

QUESTION 2:
I use 0x4L style in my dialogs and your RE don't know it and an error occur. A sample:

Code: Select all  Expand view  RUN
EMP DIALOG 124, 113, 292, 165
STYLE 0x4L | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION " Regras da Empresa"
FONT 6, "MS Sans Serif"
{
PUSHBUTTON "&Salvar", 9001, 168, 145, 58, 16
CONTROL "", 200, "txbrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 5, 7, 282, 134
PUSHBUTTON "&Cancelar", 2, 229, 145, 58, 16
}


Best regards,
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Postby Antonio Linares » Wed Dec 05, 2007 12:16 am

Maurilio,

There should be no problem to manage include files. Actually we just have a very early prototype, but we could easily add that feature.

To add new styles is as easy as (notice your reported 0x4L):
Code: Select all  Expand view  RUN
static aDlgStyles := { { "WS_POPUP",    WS_POPUP },;
                        { "WS_DLGFRAME", WS_DLGFRAME },;
                        { "WS_SYSMENU",  WS_SYSMENU },;
                        { "WS_CHILD",    WS_CHILD },;
                        { "0x4L",        4 },;
                        { "DS_MODALFRAME", DS_MODALFRAME } }
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ShumingWang » Wed Dec 05, 2007 2:35 am

Antonio,
Your RE.exe ,Get ,combobox in a dialog could supoort Chinese words input in XP themes MODE!
Could add this feature to tget of FWH ?
Thanks !
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Wed Dec 05, 2007 8:56 am

Shuming,

Thanks for the info.

We appreciate if you keep testing next RE.EXE builds to see if we keep such compatibility with Chinese language, thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Wed Dec 05, 2007 11:28 pm

A new build that properly parses and uses the font info:

http://www.hotshare.net/file/20814-8340265994.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Wed Dec 05, 2007 11:49 pm

A new build with TWBrowse, CHECKBOX and dialog styles support:

http://www.hotshare.net/file/20821-47527219d6.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Don't get it ...

Postby TimStone » Wed Dec 05, 2007 11:57 pm

I must be missing something. I downloaded and ran the latest build, open the RC, but all I see is the text editor ... no dialog like on your screen shots ...

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby ShumingWang » Thu Dec 06, 2007 12:33 am

Tim,
Double click the left treeview items .
Regards!
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Thu Dec 06, 2007 10:22 am

A new build supporting COMBOBOX control:
http://www.hotshare.net/file/20899-175768582c.html

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurilio Viana » Thu Dec 06, 2007 11:11 am

Antonio,

I have problem with accented Latin/Brazilian characters. The accented char is wrong displayed in preview (dialogs).

[img=http://img150.imageshack.us/img150/678/accentgj2.th.png]

Dialog RC Code:
Code: Select all  Expand view  RUN
SITUACAO DIALOG 117, 135, 296, 159
STYLE 0x4L | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX
CAPTION " Situações de Clientes"
FONT 6, "MS Sans Serif"
{
GROUPBOX "", 30, 5, 4, 273, 126, BS_GROUPBOX
EDITTEXT 101, 15, 23, 29, 12, ES_CENTER | ES_AUTOHSCROLL | ES_WANTRETURN | WS_BORDER | WS_TABSTOP
EDITTEXT 102, 51, 23, 217, 12, ES_AUTOHSCROLL | ES_WANTRETURN | WS_BORDER | WS_TABSTOP
EDITTEXT 103, 15, 52, 252, 51, ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_BORDER | WS_VSCROLL | WS_TABSTOP
CHECKBOX " &Bloquear novos lançamentos", 104, 16, 109, 167, 12, BS_AUTOCHECKBOX | WS_TABSTOP
PUSHBUTTON "&Salvar", 9001, 210, 109, 58, 15
LTEXT "Código", -1, 15, 13, 30, 8
LTEXT "Descrição", -102, 51, 13, 67, 8
LTEXT "Mensagem para o usuário", -1, 15, 42, 109, 8
CONTROL "TBtnBmp", 9002, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 43, 134, 22, 20
CONTROL "TBtnBmp", 9003, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 67, 134, 22, 20
CONTROL "TBtnBmp", 9004, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 98, 134, 22, 20
CONTROL "TBtnBmp", 9005, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 122, 134, 22, 20
CONTROL "TBtnBmp", 9006, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 153, 134, 22, 20
CONTROL "TBtnBmp", 9007, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 177, 134, 22, 20
CONTROL "TBtnBmp", 9008, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 201, 134, 22, 20
CONTROL "TBtnBmp", 9009, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 225, 134, 22, 20
CONTROL "TBtnBmp", 9090, "TBtnBmp", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 256, 134, 22, 20
CONTROL "TBtnBmp", 7000, "TBtnBmp", WS_CHILD | WS_VISIBLE, 279, 8, 16, 15
}


If we double click in treeview item "icon", "bitmap", "dialog", etc an error occur.

When I open alask.rc (dialog) the message is displayed:
Dialog style not found: WS_VISIBLE
In combos.rc:
Dialog style not found: 4

Dialogs style that show this message:
WS_THICKFRAME
WS_OVERLAPPED

EditText with style NOT WS_TABSTOP

Regards,
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Postby Antonio Linares » Thu Dec 06, 2007 12:12 pm

Maurilio,

> I have problem with accented Latin/Brazilian characters. The accented char is wrong displayed in preview (dialogs).

When we build the resource in memory we use Windows MultiByteToWideChar() to generate an unicode string. The source code is in source\winapi\ctrl2chr. We may need to find the right parameters for accented chars.

We have fixed the other bugs that you have reported, except the NOT ...
http://www.hotshare.net/file/20940-1482213c36.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Rick Lipkin » Thu Dec 06, 2007 1:26 pm

Antonio

Get a 'style not found WS_TABSTOP' .. here is the .rc

Rick Lipkin


DLG_CALENDAR DIALOG 9, 7, 444, 283
STYLE DS_MODALFRAME | WS_CHILD
FONT 8, "MS Sans Serif"
{
DEFPUSHBUTTON "&Quit", 1, 399, 212, 30, 21
EDITTEXT 1001, 56, 40, 82, 12, ES_LEFT | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP
CONTROL "Sun", 1005, "EDIT", ES_CENTER | ES_READONLY | NOT WS_TABSTOP | WS_DISABLED | WS_BORDER, 10, 62, 25, 14
CONTROL "Mon", 1004, "EDIT", ES_CENTER | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 40, 62, 25, 14
CONTROL "Tue", 1003, "EDIT", ES_CENTER | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 69, 62, 25, 14
CONTROL "Wed", 2155, "EDIT", ES_CENTER | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 100, 62, 25, 14
CONTROL "Thu", 1006, "EDIT", ES_CENTER | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 130, 62, 25, 14
CONTROL "Fri", 1007, "EDIT", ES_CENTER | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 160, 62, 25, 14
CONTROL "Sat", 1008, "EDIT", ES_CENTER | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 190, 62, 25, 14
PUSHBUTTON "31", 1009, 10, 82, 25, 21
PUSHBUTTON "2", 1010, 40, 82, 25, 21
PUSHBUTTON "3", 1011, 69, 82, 25, 21
PUSHBUTTON "4", 1012, 100, 82, 25, 21
PUSHBUTTON "5", 1013, 130, 82, 25, 21
PUSHBUTTON "6", 1014, 160, 82, 25, 21
PUSHBUTTON "7", 1015, 190, 82, 25, 21
PUSHBUTTON "31", 1016, 10, 108, 25, 21
PUSHBUTTON "2", 1017, 40, 108, 25, 21
PUSHBUTTON "3", 1018, 69, 108, 25, 21
PUSHBUTTON "4", 1019, 100, 108, 25, 21
PUSHBUTTON "5", 1020, 130, 108, 25, 21
PUSHBUTTON "6", 1021, 160, 108, 25, 21
PUSHBUTTON "7", 1022, 190, 108, 25, 21
PUSHBUTTON "31", 1023, 10, 134, 25, 21
PUSHBUTTON "2", 1024, 40, 134, 25, 21
PUSHBUTTON "3", 1025, 69, 134, 25, 21
PUSHBUTTON "4", 1026, 100, 134, 25, 21
PUSHBUTTON "5", 1027, 130, 134, 25, 21
PUSHBUTTON "6", 1028, 160, 134, 25, 21
PUSHBUTTON "7", 1029, 190, 134, 25, 21
PUSHBUTTON "31", 1030, 10, 160, 25, 21
PUSHBUTTON "2", 1031, 40, 160, 25, 21
PUSHBUTTON "3", 1032, 69, 160, 25, 21
PUSHBUTTON "4", 1033, 100, 160, 25, 21
PUSHBUTTON "5", 1034, 130, 160, 25, 21
PUSHBUTTON "6", 1035, 160, 160, 25, 21
PUSHBUTTON "7", 1036, 190, 160, 25, 21
PUSHBUTTON "31", 1037, 10, 186, 25, 21
PUSHBUTTON "2", 1038, 40, 186, 25, 21
PUSHBUTTON "3", 1039, 69, 186, 25, 21
PUSHBUTTON "4", 1040, 100, 186, 25, 21
PUSHBUTTON "5", 1041, 130, 186, 25, 21
PUSHBUTTON "6", 1042, 160, 186, 25, 21
PUSHBUTTON "7", 1043, 190, 186, 25, 21
PUSHBUTTON "31", 1044, 10, 212, 25, 21
PUSHBUTTON "2", 1045, 40, 212, 25, 21
PUSHBUTTON "3", 1046, 69, 212, 25, 21
PUSHBUTTON "4", 1047, 100, 212, 25, 21
PUSHBUTTON "5", 1048, 130, 212, 25, 21
PUSHBUTTON "6", 1049, 160, 212, 25, 21
PUSHBUTTON "7", 1050, 190, 212, 25, 21
PUSHBUTTON "-Y", 1054, 417, 12, 14, 9
PUSHBUTTON "-M", 1053, 397, 12, 14, 9
PUSHBUTTON "+M", 1051, 397, 24, 14, 9
PUSHBUTTON "+Y", 1052, 417, 24, 14, 9
PUSHBUTTON "&Delete", 1061, 399, 134, 30, 21
PUSHBUTTON "&Locate", 1062, 399, 82, 30, 21
PUSHBUTTON "&Print", 1057, 399, 185, 30, 21
PUSHBUTTON "&ErrChk", 1059, 399, 160, 30, 21
PUSHBUTTON "&Smry", 1060, 399, 108, 30, 21
EDITTEXT 1002, 56, 10, 82, 12, ES_LEFT | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP
EDITTEXT 1055, 141, 10, 75, 12, ES_LEFT | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP
EDITTEXT 1056, 56, 25, 82, 12, ES_LEFT | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP
EDITTEXT 1058, 141, 40, 75, 12, ES_LEFT | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP
CONTROL "Name", 1063, "EDIT", ES_LEFT | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 10, 10, 43, 12
CONTROL "Status", 1064, "EDIT", ES_LEFT | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 10, 25, 43, 12
CONTROL "SS Number", 1065, "EDIT", ES_LEFT | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER, 141, 25, 75, 12
CONTROL "Mnth - Yr", 1066, "EDIT", ES_READONLY | NOT WS_TABSTOP | WS_DISABLED | WS_BORDER, 10, 40, 43, 12
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 37, 62, 1, 175
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 67, 62, 1, 175
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 96, 62, 1, 175
CONTROL "", -1, "static", SS_WHITERECT | WS_CHILD | WS_VISIBLE, 127, 62, 1, 175
CONTROL "", -1, "static", SS_WHITERECT | WS_CHILD | WS_VISIBLE, 157, 62, 1, 175
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 187, 62, 1, 175
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 217, 6, 1, 231
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 8, 6, 1, 231
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 9, 236, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 9, 59, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 9, 78, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 8, 6, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 10, 105, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 9, 131, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 8, 157, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 8, 183, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 8, 209, 208, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 434, 7, 1, 231
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 391, 7, 1, 230
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 392, 106, 41, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 392, 131, 41, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 392, 183, 41, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 392, 209, 41, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 218, 236, 216, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 217, 6, 217, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 392, 157, 42, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 391, 79, 42, 1
CONTROL "", -1, "static", SS_WHITEFRAME | WS_CHILD | WS_VISIBLE, 391, 39, 43, 1
}
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Style not found

Postby TimStone » Thu Dec 06, 2007 3:54 pm

My .rc file was originally created in Resource, then it received some modification in Pelles, but now I mostly do alignments, etc. by hand.

When trying to look at it with the test rc.exe, it returns the following error when trying to open the dialogs:

Style not found: WS_VISIBLE
Style not found 0x00a00000

Is there a list of styles somewhere where I can see these explained. It may well be that I don't need some of the styles that are put into these dialogs and cleaning them up would be nice. I use the xHarbour.com xBuild and native compiler ( Microsoft compatible ). I've also noticed many of the samples posted don't have the same format for controls. All of my control lines start with the word CONTROL, ie:

CONTROL "&Reoccuring", 1064, "Button", WS_TABSTOP, 538, 148, 93, 12
CONTROL "", 1065, "Edit", WS_BORDER|WS_TABSTOP, 296, 24, 60, 10

Is there an article somewhere on how RC files need to be written for xHarbour ( Microsoft compatible ). Perhaps an MSDN reference ?

Thanks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 45 guests