Page 3 of 4

Re: WordPad clone source

Posted: Sun Oct 25, 2009 12:54 pm
by Fangbeast
1. Fixed statusbar image for PB4.4x. On PB4.3, the text would appear with the icon but that was a miracle that it worked. PB4.4x fixed this error and now you need a separate statusbar field for the image if you are going to have text as well as they cannot appear int he same field together..

2. Fixed missing icons in the menu.

3. Added "Search" and "help Wanted" menu options.

4. Added the shortcut keys to the menu titles.

5. Changed the wording and spelling of all my "Search" routines to "Look" to make it easier to debug. the "Alt + F" conflicts with the standard hotkeys to bring up the menu, Control + S is used for SuperScript and I didn't want to change that.

6. Set default search direction in search window.

7. Statusbar message uses the correct plurality. E.g. 0 = "Lines", 1 = "Line", Greater than 1 = "Lines". Better English.

8. Put code in for later when I have setup a duplicate PopupImagemenu option.

9. Changed the icon used for the statusbar for the 'Lines' option.

10. Changed the appearance of the statusbar to all Flat mode.

I'll upload this when I've had help figuring out why the find function doesn't work. API and I don't see eye to eye most days.

Re: WordPad clone source

Posted: Thu Nov 13, 2014 12:02 pm
by Fangbeast
Has anyone seen FluidByte lately? He has PM disabled so I can't send him a message and I need help in updating his "OwnerDrawComboIconsFonts" code to work with PB 5.24 at least so I can update NotePiddle and other projects.

Re: WordPad clone source

Posted: Fri Nov 21, 2014 9:21 am
by Bisonte
The links seems to be broken, is there a way to get the source ?

Re: WordPad clone source

Posted: Fri Nov 21, 2014 10:14 am
by Fangbeast
Bisonte wrote:The links seems to be broken, is there a way to get the source ?
Hi Bisonte, sorry I didn't see this post earlier. Leave me a PM to remind me and I'll bring the code up to date with PB 5.23 and add the searching code that was missing. Thanks to InfraTec and RASHAD, I can now do that.

Just need to make sure it all works.

Re: WordPad clone source

Posted: Fri Nov 21, 2014 1:07 pm
by Fangbeast
Okay, finally added the working search routine thanks to RASHAD and InfraTec and have tweaked it to work up, down and work case sensitive or not.

Search never did work years ago when I first wrote this and the source is messy and unformatted (Well, not formatted the way I like it) but now it works.

Updated to run under PB 5.23 by InfraTec originally because some memory things and compiler stuff had changed.

Bisonte, let me know where I should email you the source. I haven't got anywhere to put it at the moment.

Re: WordPad clone source

Posted: Sat Nov 22, 2014 1:45 pm
by Fangbeast
Been improving NotePiddle because I want to add the core functionality into my serial number manager.

Not done:

1. Cannot get right click menus to work over eeditorgadget so I removed them.
2. Cannot get checkboxes, optionsboxes to be transparent. Went through working code of mine where it worked and too tired to spot the differences.
3. PB statusbar replaced with stringgadget. Easier to colour and control.

What works. (RASHAD and InfraTec). I'm, just the assembly monkey

1. Load and save RTF files.
2. Graphical font selecter, size and other styles you can apply includes colours.
3. Search inside editorgadget. Control + F
a. First RETURN acts as a 'find first' and then gets disabled.
b. Press NEXT button or F3 for subsequent searches.
c. Can select case sensitive search.
d. Can select search direction.
4. Hide to system tray.
5. Fades in and out nicely under Windows 10. This worked under 7 as well.

If you look through the code, there are shortcuts for all buttons. The code was reworked, routines renamed to make sense, dead code removed, functions that had PB equivalents now use those.

Nothing special but it works great. Project is 35k archived if you want it.

Re: WordPad clone source

Posted: Sat Nov 22, 2014 1:55 pm
by RASHAD
OK Fangles
With all what you mentioned I am willing to download it
But how ? Can you sir provide a workable link ? :mrgreen:
Beside you are very fast (Windows 10 hah) :P

Re: WordPad clone source

Posted: Sat Nov 22, 2014 5:03 pm
by davido
@Fangbeast
I would be interested in trying your masterpiece, too.

Re: WordPad clone source

Posted: Sat Nov 22, 2014 7:43 pm
by Gadget
Me too :)

Re: WordPad clone source

Posted: Sat Nov 22, 2014 9:03 pm
by Fangbeast
Okay you strange lot, you can now get to laugh at how funny my code is.

http://members.westnet.com.au/bangfeast ... ePiddle.7z

Compuer is crashing twice a day so I am coding in between crashes and still got finished. And strangely enough, CAPS lock doesn't show up on any keyboard I use, even though it works.!

Re: WordPad clone source

Posted: Sat Nov 22, 2014 9:31 pm
by davido
@Fangbeast , Thank you. I'll probably smile when I enjoy reading your code. :D

Computer crashing twice a day is no laughing matter. Is this due to Windows 10? Hope you get it fixed, soon.

Re: WordPad clone source

Posted: Sat Nov 22, 2014 9:52 pm
by heartbone
Fangbeast wrote:Okay you strange lot, you can now get to laugh at how funny my code is.
I think that your WordPad utility would be more appreciated in Linux than in Windows®.
I for one certainly would.

Re: WordPad clone source

Posted: Sat Nov 22, 2014 10:38 pm
by Fangbeast
Thank you. I'll probably smile when I enjoy reading your code. :D
Naaah, you'll probably fall out of your seat laughing. What the heck, the way I code is the way I cope. But I shouldn't have spent so much time last night finishing it with chocolate in my hand, I'm a diabetic!!

(EVIL GRIN).

Phew, paid for it with huge cramps in bed. Hmm, can't think of what else it needs, it's simple enough for me. Now I can finish my wife's serial number manager.
Computer crashing twice a day is no laughing matter. is this due to Windows 10? Hope you get it fixed, soon.
Don't know. Happened under Windos 8/8.1 as well, never under 7. Read in some forums that the error that causes it is common for some. All code is triple backed up just in case.

Re: WordPad clone source

Posted: Sat Nov 22, 2014 11:38 pm
by Fangbeast
heartbone wrote:
Fangbeast wrote:Okay you strange lot, you can now get to laugh at how funny my code is.
I think that your WordPad utility would be more appreciated in Linux than in Windows®.
I for one certainly would.
Unfortunately, since I can't code my way out of a paper bag, this uses some huge API from FluidByte, Sparkie and Srod and I haven't got a hope in hell of converting this to Linux (Which I've never coded on).

You are going to have to find someone int he forum with brains to do that and it isn't me (I have sheep's brains but they are no good on Linux)

Re: WordPad clone source

Posted: Sun Nov 23, 2014 3:10 am
by heartbone
Fangbeast wrote:
heartbone wrote:
Fangbeast wrote:Okay you strange lot, you can now get to laugh at how funny my code is.
I think that your WordPad utility would be more appreciated in Linux than in Windows®.
I for one certainly would.
Unfortunately, since I can't code my way out of a paper bag, this uses some huge API from FluidByte, Sparkie and Srod and I haven't got a hope in hell of converting this to Linux (Which I've never coded on).

You are going to have to find someone int he forum with brains to do that and it isn't me (I have sheep's brains but they are no good on Linux)
That's a shame, because I like the instant gratification of WordPad on Windows®, and the gedit text editor (Ubuntu notepad) doesn't support multiple fonts.
Your program could fill that void. ;)