View Full Version : Notepad (Text Editor)
shamasis
28th September 2008, 11:35 PM
Updated development posted at this (http://forum.xda-developers.com/showthread.php?t=441732) thread...
http://www.shamasis.net/wp-content/uploads/2009/03/notepad_1_screenshot.jpg
Notepad Mobile
This is a "text editor" for Windows Mobile. It allows you to open text (.txt) files and other text based files (.xml, .bat, .log, etc.)
Updated v1.1: (28/10/2008)
Added Zoom Functionality
Reduced Executable Size!
Features:
Open/Create/Save text files
Supports cut/copy/paste by right click
Text input area resize as-per SIP (virtual keyboard) space
It is a standalone executable (no installation required)
Extremely light-weight and with minimum memory consumption
http://forum.xda-developers.com/attachment.php?attachmentid=126497&d=1225562448
How to install:
Extract and copy Notepad.exe on your device and run it from there!
See: http://shamasis.net/projects/mobile/notepad/
shamasis
22nd October 2008, 08:41 PM
Hello everybody,
It is really wonderful to see such a group of talented developers here. I am really amazed to see everyone's dedication. So much so that I felt like contributing. But there is a roadblock ahead of me.
I am a proficient developer. My domain is JavaScripting, PHP, ASP, C# .NET. I am very new to the world of Windows Mobile.
In fact, I found that I am wasting too much of time Googling even simplest of things! In fact, I am still stuck at how to work have transparent controls for Windows Mobile .NET Compact Framework!
What I would request is if someone could give me a headstart with links/tips upon simplest things for transition of C# Desktop development to C# Smartphone development (especially for Diamond as I own one!)
If I am reposting anything without searching or if I am repeating, kindly excuse me for this time and point me to proper threads!
Thanking you again!
cmilian
22nd October 2008, 09:24 PM
Install the Windows Mobile 6 SDK and use Visual Studio.
shamasis
22nd October 2008, 09:39 PM
Install the Windows Mobile 6 SDK and use Visual Studio.
Did that! And that is how I made my first app. And just as a note, I do develop C# apps for desktop and as you can see, have developed simple WM apps too!
I just found no good resource as to solve very specific issues like: Control's image background and transparency, etc!
I need to know few things... please help:
1. How do I create transparent controls or have background images of textboxes, labels, etc!
2. If I apply an icon to the application (in solution properties), I get a build error "CVTRES fatal error : cannot read file.", though the same icon file is loaded when I assign it to the main Form's Icon property!!
itoYo
22nd October 2008, 09:53 PM
have you checked out:
www.msdn.microsoft.com
shamasis
22nd October 2008, 09:59 PM
have you checked out:
www.msdn.microsoft.com
MSDN has some solutions (regarding the transparency issues), but did not find anything concrete!
GeckoDev
22nd October 2008, 10:09 PM
MSDN has some solutions (regarding the transparency issues), but did not find anything concrete!
Technically the CF does not support transparent controls, but as with anything, there are some tricks to simulate it. You might try searching Google Groups in the microsoft.public.dotnet.framework.compactframework group for some pointers. As for myself, although I did get some workable controls using those tips, I found it was more trouble than it was worth. "Roll your own" is my motto now. I hardly even use the standard label control anymore.
As for your icon issue, remove the 256x256 version from the ico file. That should do the trick.
shamasis
23rd October 2008, 10:25 PM
... As for your icon issue, remove the 256x256 version from the ico file. That should do the trick.
Yes right!!! It was stupid of me not to have verified the icon support for this platform.
With a lot of searching, I realized packing: 64x64, 43x43, 32x32, 21x21, 16x16 in 256 colours would be the best idea.
I used IconFX... Great tool See: http://icofx.ro/
The update exe is now way smaller. Do have a look (http://forum.xda-developers.com/showpost.php?p=2810448&postcount=2).
BTW: Thanks a ton.
GeckoDev
23rd October 2008, 10:39 PM
I used IconFX... Great tool See: http://icofx.ro/
I was going to suggest that to you as well ... best free icon editor I've found.
With a lot of searching, I realized packing: 64x64, 43x43, 32x32, 21x21, 16x16 in 256 colours would be the best idea.
You probably don't need all of them. From what I've been able to tell, the OS only uses the 16x16, 32x32, and 64x64 versions. I think I read that on MSDN somewhere, but I don't have a reference. Either way, those have worked fine for me. Remember that you need to take steps to reduce your footprint on mobile devices.
shamasis
23rd October 2008, 11:30 PM
... the OS only uses the 16x16, 32x32, and 64x64 versions...
Is it so?? I mean... I read some MSDN blog that said for square devices you need 21x21 and 43x43! If you say that its pointless to include them, I will be more than happy to scrap those non-standard sizes! :D
http://blogs.msdn.com/photos/melsam/images/1791094/original.aspx
From: http://blogs.msdn.com/windowsmobile/archive/2007/03/02/320x320-revisited.aspx
GeckoDev
24th October 2008, 02:57 AM
Heh ... I was wondering where those weird sizes came from. :) OK, so if you're developing for square too, then maybe you do need them. I've only concerned myself with VGA/QVGA so far, so I probably misspoke.
As bloated as ico files are, I'm surprised they decided on two additional sizes for squares. I have an app with all kinds of cool graphics that are only 3-5 kb, but the icon with only a few sizes is 90-100kb, which is about 1/3 of the total exe size ... just for an icon!!! That might be why some apps have different installers for square screens, so the footprint for each stays lower.
OceanSpray
27th October 2008, 12:55 PM
Hi, i was testing ur notepad.exe on my HTC Touch found this problem the screen seen freeze at 1/3 of the file w/o wordwarp or with wordwarp same only little further. But when i scroll up to top no problem.
using file "HH_0409_WeatherCities.xml" size is 225kb
small problem with switching portrait to landscape while notepad running
(i did this before runnin notepad switch portrait to landscape or versa)
HOPING FEATURES
FIND option <--- this 1 most wanter :)
Replace option
picolo5
27th October 2008, 03:14 PM
Hi , if you are still looking for transparent control look at this :
The ability to draw bitmaps transparently though the usage of the ImageAttributes parameter still exists in the .NET Compact Framework, but it's a little bit more work than on the desktop.
ImageAttributes imageAttr = new ImageAttributes();
// Make a transparent key
imageAttr.SetColorKey(Color.White, Color.White);
//Use the key when drawing
gxOff.DrawImage(m_bmp, imgRect, 0, 0, img.Width, img.Height,
GraphicsUnit.Pixel, imageAttr);
source : http://msdn.microsoft.com/en-us/library/aa446518.aspx
shamasis
27th October 2008, 11:52 PM
...small problem with switching portrait to landscape while notepad running
(i did this before runnin notepad switch portrait to landscape or versa)...
I have solved this issue. Now you should have no problem while changing from portrait to landscape and vice versa. Do check out and let me know. Download updated file (http://forum.xda-developers.com/showpost.php?p=2810448&postcount=2)
Regarding the other bug: I have seen this issue on many devices. In my opinion, it is a problem (limitation) of DOTNET Framework. Try upgrading to latest DOTNET CF and do the testing.
Also, if this problem persists, I presume there will be a workaround for this. But the workaround may be at the cost of loading time and memory usage. Should I proceed in that direction?
PS:
I am planning all the existing Notepad features for this application. That Includes Find and Replace and Zoom.
shamasis
1st November 2008, 08:16 PM
...OK, so if you're developing for square too, then maybe you do need them. I've only concerned myself with VGA/QVGA so far, so I probably misspoke.
Hey... I have removed the odd sizes as well! Lets dump Square devices as of now!!:p:p;)
Moderators: Well... ummmmm.... this software seems to be working on most ppc-s without breaking them!!! can/should this be copied/moved to the "softwares" section??
shamasis
3rd November 2008, 09:00 PM
Find updated information at:
http://forum.xda-developers.com/showthread.php?p=2853166#post2853166
I intend to follow-up this thread for a diamond specific notepad that I will make. Provided I can find a way to make good transparent controls!!
[deXter]
15th November 2008, 02:32 PM
Thanks for this nifty app!
There's a bug however : I'm unable to externaly launch a non-known filetype with Notepad. I get : "The specified file cannot be opened. Path or format incorrect" I get the error with or without launching the file (a .ini file, just for the record) in double-quotes. However, I'm able to open the file just file from within notepad.
And do take a look at Notepad2 (Desktop). It's a great Notepad replacement but maintains the speed and style. Would be nice if you could implement some of its features like line numbers and syntax highlighting.
shamasis
15th November 2008, 07:48 PM
;2911976']Thanks for this nifty app!
There's a bug however : I'm unable to externaly launch a non-known filetype with Notepad. I get : "The specified file cannot be opened. Path or format incorrect"...
hello dexter. kindly check out the newer version of this app with many new features at this thread: http://forum.xda-developers.com/showthread.php?p=2853166
peterjwhite
25th January 2009, 03:34 AM
Notepad Mobile
This is a "text editor" for Windows Mobile. It allows you to open text (.txt) files and other text based files (.xml, .bat, .log, etc.)
Hi Shamasis,
I was looking for a Windows Mobile Notepad to edit .reg and .ini files on my PDA without having to copy the files to PC and back again. Your Notepad is a very cool start but has one problem for me: it only saves in ANSI format and not in UNICODE format.
I can use your Notepad to view the files but not edit them unfortunately. The *.ini for many of my applications needs to be in UNICODE and doesn't accept ANSI after opening and saving in Notepad.
Can I make a feature request for Save As... UNICODE? Or perhaps you can automatically resave in the same format the opened file was?
MJNewton
1st March 2009, 03:23 PM
Great tool Shamasis - keep up the good work!
Mathew
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.