Edit Extended / Edit WorkArea - ABM / ABM2

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

nassausky
Posts: 21
Joined: Wed Nov 18, 2009 4:41 pm

Re: EDIT EXTENDED OPTIONS

Post by nassausky » Mon Aug 30, 2010 5:06 pm

Oh ok .. That makes sense now.. I haven't used arrays so much lately. Thanks for making it clearer.
:)
_________________
Sincerely,

Mike

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Fri Jul 06, 2012 4:52 pm

Can the backgroundcolor and the font (size - bold ...) of an edit extended window be changed?

Richard

User avatar
esgici
Posts: 4519
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 392 times
Been thanked: 112 times
Contact:

Post by esgici » Sat Jul 07, 2012 9:39 am

Hello Richard
t57042 wrote:Can the backgroundcolor and the font (size - bold ...) of an edit extended window be changed?
I haven't sufficient experiment on Edit Extended; so, I haven't a neat answer for your question.

The source code of Edit Extended is here : <hmg_Root\Path>\SOURCE\EDITEX\h_edit_ex.prg

You can read, inspect and change (if necessary) it.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Sat Jul 07, 2012 2:14 pm

Thanks for the information.
Do I only have to change that sourcefile, the rest is automatically adapted?

Richard

User avatar
esgici
Posts: 4519
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 392 times
Been thanked: 112 times
Contact:

Post by esgici » Sat Jul 07, 2012 2:46 pm

Hi Richard
t57042 wrote:Do I only have to change that sourcefile, the rest is automatically adapted?
Sadly no :(

After change(s), you have re-build library.

For more info, you can look at here for re-building issues.

My suggestion is : begin with source code of Edit Extended, you can build your own; only consideration is give a different name to it.

And, if the result will be satisfactory for you, please share it with us.

Happy HMG'ing :D

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Sat Jul 07, 2012 4:01 pm

Isn't it possible too change the font (and other parameters) from within the application program, without touching the library?

Richard

User avatar
esgici
Posts: 4519
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 392 times
Been thanked: 112 times
Contact:

Post by esgici » Sat Jul 07, 2012 4:15 pm

Hi Richard
t57042 wrote:Isn't it possible too change the font (and other parameters) from within the application program, without touching the library?
If library module doesn't have (support) such parameters; no :(

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
esgici
Posts: 4519
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 392 times
Been thanked: 112 times
Contact:

Post by esgici » Sun Jul 08, 2012 1:19 am

Hi Richard
esgici wrote:My suggestion is : begin with source code of Edit Extended, you can build your own; only consideration is give a different name to it.
This is my humble work for you; I hope will give you an idea :idea:

Happy HMG'ing :D

Regards

--

Esgici
EditRExt.zip
Edit Re-Extended source files
(37.79 KiB) Downloaded 274 times
EditRExt.PNG
Edit Re-Extended Screen shoot
EditRExt.PNG (98.91 KiB) Viewed 2913 times
Viva INTERNATIONAL HMG :D

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Sun Jul 08, 2012 6:31 pm

Hello,
thank you very much , works nicely, but ...

I am working with hmg version 3.0.28 (window issues) and here i get an error:

Code: Select all

building...
hbmk2: Processing configuration: C:\hmg.3.0.28\harbour\bin\hbmk.cfg
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
EdRExDemo.o:EdRExDemo.c:(.data+0x2a8): undefined reference to `HB_FUN_RABM2'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe EdRExDemo.o hbmk_8cikqe.o C:/hmg.3.0.28//resources/minigui.o    -mwindow
s -Wl,--start-group -lminigui -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph
-lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql
-lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -lhbmemio -lhbsqlit3 -lsqlite3 -lhbf
image -lhbpgsql -lpq -lhbtip -lhbct -lhbmisc -lhbnetio -lxhb -lhbextern -lhbdebu
g -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgt
gui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -l
hbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 -
ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -lo
leaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib  -W
l,--end-group -oEdRExDemo.exe -LC:/hmg.3.0.28/harbour/lib -LC:/hmg.3.0.28//lib
hbmk2: Processing configuration: C:\hmg.3.0.28\harbour\bin\hbmk.cfg
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
EdRExDemo.o:EdRExDemo.c:(.data+0x2a8): undefined reference to `HB_FUN_RABM2'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe EdRExDemo.o hbmk_8cikqe.o C:/hmg.3.0.28//resources/minigui.o    -mwindow
s -Wl,--start-group -lminigui -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph
-lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql
-lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -lhbmemio -lhbsqlit3 -lsqlite3 -lhbf
image -lhbpgsql -lpq -lhbtip -lhbct -lhbmisc -lhbnetio -lxhb -lhbextern -lhbdebu
g -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgt
gui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -l
hbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 -
ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -lo
leaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib  -W
l,--end-group -oEdRExDemo.exe -LC:/hmg.3.0.28/harbour/lib -LC:/hmg.3.0.28//lib
furthermore I want to try recordlocking when double clicking to open the editwindow and I tried to use the source with this added at the end:

Code: Select all

function main
use klanten new
abm()
return
this compiles but when running I get:

Code: Select all

EDIT, workarea name missing
sorry for the trouble
thanks
Richard

User avatar
esgici
Posts: 4519
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 392 times
Been thanked: 112 times
Contact:

Post by esgici » Sun Jul 08, 2012 7:29 pm

Hello Richard
t57042 wrote:... i get an error:
I don't know what type of build process you are using ( I prefer always HMG-IDE ) :arrow:

If I understood right, something missing either your configuration or your build way (script).

- Open content of EditRExt.zip file to a separate folder.
- Open EdRExDemo.hbp file by HMG-IDE and press RUN button
OR
- Use a built script ( a batch file ) like this :

Code: Select all

   call C:\hmg.3.0.28\build.bat EdRExDemo
Regarding second issue :

EditRExt didn't change anything in HMG. So, you can't use it same as using EDIT EXTENDED. For using it you need

- Add EditRExt.ch file to every project folder
- Add this line to top of MAIN module file of your project :

Code: Select all

#include "EditRExt.ch"
- And for calling Edit RExtended, use

Code: Select all

EDIT REXTENDED ...
command; no any other command or function. Such as :

Code: Select all

function main
use klanten new
EDIT REXTENDED // no abm() or any other 
return
I hope this info will help you; please inform me about result.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

Post Reply