i am writing a hecl editor using hecl on my lovely ot800...:D

4 views
Skip to first unread message

方志

unread,
Sep 10, 2010, 3:07:42 AM9/10/10
to he...@googlegroups.com
hihi,
i buy a ot800 at price 570 RMB .and i find hecl . i love tcl . tcl is
a simple language that easy to implecate.

after take a few days get famaly with hecl , i now dev a code editor .

now . i can edit the the editor source code and test it .
press left right to change page , up down to select line .ok to insert
text to current line .
s to save code , b to backup code , d to delete a line , y to copy a
line , p to paste a line , T to test current code .
it is base on canvas .
now i am dev a text editor using canvas replace the textbox .

code1.txt
hecl.jpg

方志

unread,
Sep 10, 2010, 3:13:34 AM9/10/10
to he...@googlegroups.com
it is hard to write code on a phone~~~ i want to connect a keyboard
to the phone but i can't

方志

unread,
Sep 10, 2010, 3:20:30 AM9/10/10
to he...@googlegroups.com
is it possiable to test the code using computer ? write code using
computer and test it on emulator ?

David Welton

unread,
Sep 10, 2010, 3:28:53 AM9/10/10
to he...@googlegroups.com
Sorry for being slow to respond...

I'm impressed! More later....

> is it possiable to test the code using computer ? write code using
> computer and test it on emulator ?

Yes, you can use the emulator included here:

http://www.oracle.com/technetwork/java/javame/downloads/sdk30-jsp-139759.html

Or, you can get Microemulator:

http://www.microemu.org/

Which is quite good, and open source.

--
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/

方志

unread,
Sep 10, 2010, 4:17:09 AM9/10/10
to he...@googlegroups.com
there is a but here

private static void checkOffsetAndLength(int offset,int len,int max) {
if(offset < 0 || offset > len)
throw new ArrayIndexOutOfBoundsException("Invalid offset.");
if(offset+len > max)
throw new ArrayIndexOutOfBoundsException("Invalid length.");

that offset > len is ok. stringwidth $s offset len.

Wolfgang S. Kechel

unread,
Sep 10, 2010, 4:57:22 AM9/10/10
to he...@googlegroups.com
OOPS, correct condition for error is:

offset < 0 || offset >= max

second condition should be ok

--
Wolfgang Kechel mailto:wolfgan...@data2c.com
data2c GmbH http://www.data2c.com
Bierstadter Straße 7 Fax: +49-(0)611-1731-31
D-65189 Wiesbaden Phone: +49-(0)611-1731-611/+49-(0)174-3454260


David Welton

unread,
Sep 10, 2010, 12:05:46 PM9/10/10
to he...@googlegroups.com
> OOPS, correct condition for error is:
>
> offset < 0 || offset >= max
>
> second condition should be ok

Ok, I went ahead and committed that to git. Thanks for catching it,
方志 (I hope that prints ok), and the fix, Wolfgang.

The fixed version should show up as the latest build sometime tomorrow.

方志

unread,
Sep 11, 2010, 11:39:30 AM9/11/10
to he...@googlegroups.com
It print ok.
i think hecl is a tool command language . It is not good at process
large data ... it has delay when insert into string ,and wrap text . i
have to write java code to improve performance . i am new to java and
j2me . :D
Reply all
Reply to author
Forward
0 new messages