Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Open Source Projects
Home Register FAQ Members List 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
  #11 (permalink)  
Old 11-26-2007, 04:30 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by alfcen View Post
4. NotifyIcon does not work for me with PPC 2003, but perhaps for your device.
Γεια σου (Yasou) or Hello Robert,

Please read and add latest version of NotifyIcon.DLL(NotifyIcon Libary post #14)

I also suggest you to remove ni.New1 form mnuMinimize_Click and add it somewhere in the Sub App_Start to conserve memory. And you can do the same with ni.Add. If someone click on upper right X your editor will be invisible but with no icon. And finally remove ni.Remove as it will run by your app while exiting.



BTW1. Very nice editor. Congratulations to you and Specci48 (or Specci48K)

BTW2. It is a good idea to add in the Version Data section the names of the needed images.
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 11-26-2007 at 04:44 PM.
Reply With Quote
  #12 (permalink)  
Old 11-26-2007, 08:21 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 611
Default

Hi all,

small upgrade on version 1.03:

1. new - ASCII support
2. new - setting "Always prompt on exit"
3. bugfix - reset form name on "New"

cheers
specci48


@alfcen
small question: What editor are you using? Because the tabbing of the source looked awful after you edited it ...
Attached Files
File Type: sbp henshu.sbp (23.4 KB, 16 views)
Reply With Quote
  #13 (permalink)  
Old 11-27-2007, 01:04 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Yasou Dimitris,

oshirase domo arigato gozaimasu (thanks very much for the information).

With the latest NotifyIcon version I encountered this error on the desktop:

"System string object cannot be casted by System.Windows.Forms.Control"

which is strange because its the device lib.

Anyway, I spare you the original Japanese message


You are right, ni.New1 and ni.Add really belong into App_Start.
Device memory is crucial.
Reply With Quote
  #14 (permalink)  
Old 11-27-2007, 01:20 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo specci48,

Thanks a lot, looks like we are getting somewhere
Today, I made the following modifications:

1. Open File checks whether file is UTF-8 or ASCII and sets a utf flag.
2. Encoding (UTF-8 or ASCII) added to Form.Text upon Open and Save As.
3. ErrorLabel added to Open and Save subs to close file handle in case of error.
4. Character and word count added to the Edit menu.
5. SaveDialog Filter reduced to "*.txt" only (any others throw an error on the device, probably due to file association settings).
6. Notifyicon disabled for the time being until I get the error out of the way.

Would you mind if I removed the "Use ASCII coding by default" check box?
I feel this affects user-friendliness by overloading the editor with options.
Besides, you have kindly added Save As UTF-8 and ASCII, which, in my believe, is sufficient care of encoding.

I will submit the new source (Ver 1.04) shortly after some more testing. Please be so kind as to stand by until then. As you said it, "the one who finds a bug is entitled to keep it"

The version history is a nice gesture of yours.

I am using the IDE under Japanese o/s, but I believe the mess is due to the fact that I set my Tab Size to 1, now to 2.

Cheers
Robert
Reply With Quote
  #15 (permalink)  
Old 11-28-2007, 06:38 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi speeci48,

Here we go with Ver 1.04, latest modifications are:

1. Open File checks whether file is UTF-8 or ASCII and sets utf flag.
2. Encoding (UTF-8 or ASCII) added to Form.Text upon Open and Save As.
3. ErrorLabel added to Open and Save subs to close file handle in case of error.
4. Character and word count added to the Edit menu.
5. Auto-format added to the Edit menu (removes superfluous spaces and CRs).
6. SaveDialog Filter reduced to "*.txt" only (any other cause error on device).

henshu_d.zip contains the merged dlls for the desktop. Now trying the same thing for the device.
Attached Files
File Type: sbp henshu.sbp (26.0 KB, 42 views)
File Type: txt module-henshu.txt (3.1 KB, 47 views)
File Type: zip henshu_d.zip (8.2 KB, 48 views)

Last edited by alfcen : 11-28-2007 at 06:46 AM. Reason: Failed to attach henshu_d.dll
Reply With Quote
  #16 (permalink)  
Old 11-28-2007, 07:45 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by alfcen View Post
...With the latest NotifyIcon version I encountered this error on the desktop:

"System string object cannot be casted by System.Windows.Forms.Control"

which is strange because its the device lib.
Hi Rob,

Works fine with NotifyIcon. Attached is the new NotifyIcon.dll and Henshu.sbp with 2 more lines of code in your App_Start (I also added the icon Henshu.ico in your sbp file and NotifyIcon.dll as a device component).

Cheers
Attached Files
File Type: zip henshu.zip (9.7 KB, 68 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #17 (permalink)  
Old 11-28-2007, 08:10 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Dimitris,

Thanks a lot for all the trouble you are taking for me.

Since ni.New1 is protected by If cPPC Then... the errors is gone
Also, no problems on the device, however, minimizing the screen does not show the programm icon in the device tray.

I assume that I need a WM5/6 device to fully enjoy the fruits your work.
Never mind, if it works for you it will work for others, too, and that's all I want.

Is your Japanese any better since my last posts? A good Greek red wine will help remember
Reply With Quote
  #18 (permalink)  
Old 07-02-2008, 07:11 PM
Filippo's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 216
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Robert,

small upgrade from me on version 1.05:

1. control "txtEdit" with Horizontal and Vertikal Scrollbar
2. Panels with Border and movable
3. Automatic orientation (Landscape) on device


Ciao,
Filippo
Attached Files
File Type: zip henshu.zip (19.4 KB, 31 views)
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Touch Diamond, 4GB
______________________
Reply With Quote
  #19 (permalink)  
Old 07-03-2008, 12:58 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Filippo,

Fantastic new touches!

I have shifted this thread to the German forum:

Text Editor Henshu mit fgControls

Ciao
Robert
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
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 & Help Needed 2 11-15-2007 06:50 AM
CSV editor dzt Code Samples & Tips 0 09-26-2007 08:51 AM
Text Editor example Erel Code Samples & Tips 0 09-10-2007 02:10 PM


All times are GMT. The time now is 02:57 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0