Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations > Open Source Projects
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.

Text Editor, Henshu

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-25-2007, 07:26 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default Text Editor, Henshu

Hi gang,

This Open Source project is based on Erel's text editor
http://www.basic4ppc.com/forum/showt...ht=Text+Editor
with added functionality and much room for improvement.
Henshu is Japanese for Editing.

Comment:
1. The Font and Style buttons expect a tap-and-hold (right mouse click on the desk top) to unfold a context menu.
2. The Undo function is for one event only.
3. Convert function requires selection of a number from the text.
4. NotifyIcon does not work for me with PPC 2003, but perhaps for your device.
5. Pressing (x) will place the editor to the background, Menu 'Exit' will close it.

Use or abuse.

Cheers

Robert
Attached Files
File Type: zip henshu.zip (97.7 KB, 330 views)
Reply With Quote
  #2 (permalink)  
Old 11-25-2007, 09:33 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hello alfcen,

nice improvement of Erel's text editor.
I like the idea calling this an open source project. What do you think is the best way to achieve this? Should everyone code for himself or would you like to act like a "project manager", combining all new features into a stable project?


specci48

... by the way, here is the first bug report:
In the context menu the entries cut and copy are mixed up
Reply With Quote
  #3 (permalink)  
Old 11-25-2007, 09:49 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo specci48
Don't have the time to function as a project manager, just wanted to provide a platform on which others can build. A text editor is ideal for those new to Basic4ppc and in need for practicle code examples. Just a small return for what I learned in this forum.
Thanks a lot for the bug report, another reason for opening a project
Reply With Quote
  #4 (permalink)  
Old 11-25-2007, 01:02 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi gang,

Inspired by specci48's bug report, I have made a few corrections and supplements to the source. Undo still requires attention, since it remembers just a single change in the Textbox.

1. Context menu corrected, "Select All" added
2. Undo menu disabled if no change occurred
3. Loaded file name displayed as Form.Text
4. Save changes confirmation upon Exit
5. Hot keys in the Edit menu corrected (Undo and Cut)
6. Code for conversions optimized

Best luck
Attached Files
File Type: sbp henshu.sbp (14.9 KB, 69 views)
Reply With Quote
  #5 (permalink)  
Old 11-25-2007, 02:07 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

OK, let's start optimizing the application...

I added reading %SystemRoot% from the registry on the desktop, so the connection to calculator and notepad works on the dektop for those people, who didn't install windows to c:\windows by default.

specci48
Attached Files
File Type: sbp henshu.sbp (15.0 KB, 31 views)
Reply With Quote
  #6 (permalink)  
Old 11-25-2007, 02:50 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Very nice !
For demonstration purposes, I have added the same thing for the PPC.
Attached Files
File Type: sbp henshu.sbp (15.1 KB, 38 views)
File Type: txt module-henshu.txt (3.0 KB, 45 views)
Reply With Quote
  #7 (permalink)  
Old 11-25-2007, 04:17 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

"Find" feature added as a find bar!

specci48
Attached Files
File Type: sbp henshu.sbp (17.4 KB, 33 views)
Reply With Quote
  #8 (permalink)  
Old 11-25-2007, 04:21 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

It really looks great.
I recommend you to add a comment at the beginning with:
- Version + date.
- Required libraries (desktop and device).
- Required code files.
Reply With Quote
  #9 (permalink)  
Old 11-26-2007, 06:24 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Lovely addition !
I have shifted the Find panel to the top to allow SIP input and further did some layout trimming. The Find box will now show text selected prior to opening Find. The Find menu item is disabled rather than unchecked while the Find panel is visible. In the find algorithm I have merely changed WaitCursor positions.

Erel, thanks for your good piece of advice. I have added the data.
Attached Files
File Type: sbp henshu.sbp (19.0 KB, 40 views)
File Type: txt module-henshu.txt (3.0 KB, 35 views)
Reply With Quote
  #10 (permalink)  
Old 11-26-2007, 01:12 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi folks,

I have rolled out Henshu Ver 1.02:

1. text replace function
2. more conversions and insertions
3. registry query of default desktop browser
4. code optimizations
5. data now inserts at selected text position
6. design and layout adjustments
7. source code embraced in regions

I am targeting the editor at the Pocket PC. There is no need for another desktop editor.

There seems no end to software development. I don't know whether this is good or bad

Cheers
Robert
Attached Files
File Type: zip henshu.zip (39.4 KB, 158 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text an einen bereits bestehenden Text "anhängen" JOTHA German Forum 7 09-12-2008 01:08 PM
Text Editor Henshu mit fgControls alfcen German Forum 2 07-03-2008 11:37 AM
Label/Text Control text centering TWELVE Basic4ppc Wishlist 1 06-04-2008 03:20 PM
Text editor for INI files Softselect Questions (Windows Mobile) 2 11-15-2007 06:50 AM
Text Editor example Erel Code Samples & Tips 0 09-10-2007 02:10 PM


All times are GMT. The time now is 12:51 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0