WordPad clone source

Share your advanced PureBasic knowledge/code with the community.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Thank you FangBeast

have those changes already been added to the download or do we still need to add them?

hmmmm...I get a Invalid memory Access at FreeMemory(lpBuffer) in _OwnerdrawComboIconsFonts.pbi
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

SFSxOI wrote:Thank you FangBeast

have those changes already been added to the download or do we still need to add them?

hmmmm...I get a Invalid memory Access at FreeMemory(lpBuffer) in _OwnerdrawComboIconsFonts.pbi
Add them manually for now, will fix the download later. Just crawled out of my crypt like a zombie's feral buttocks and can't do anything yet:):)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

1 Fixed several mistakes.
2 Removed unused and testing routines (till they are done).
3 Uploaded fixed zip project again. Link in first post.


I need some help with figuring out things I don't yet understand.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

SFSxOI wrote:hmmmm...I get a Invalid memory Access at FreeMemory(lpBuffer) in _OwnerdrawComboIconsFonts.pbi
Yes Fluid-Byte fixed that bug so all fangles needs do is incorporate Fluid's latest version of that include in his project. In fact, knowing fangles, he probably already has done exactly that!
Last edited by srod on Wed Jan 28, 2009 7:02 pm, edited 1 time in total.
I may look like a mule, but I'm not a complete ass.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Nope. Haven't had my cup of tea yet!!! Oh, the inhumanity!!!!

*EDIT*
Fixed:):)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Thanks Fangles ;)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Berikco wrote:Thanks Fangles ;)
Thanks to Freak, srod, sparkie and FLuidbyte. I am only assembling this jigsaw puzzle.

Which reminds me, have to upload the latest fixes.

Still way more to do.

#EDIT# Latest uploaded.

1 Added a line from the forum that removes the 32k limit in the gadget.

2 Added (disabled for now) experimental code for tracking the current cursor position, converting it to line coordinates and then getting the font name from the text under the cursor (disabled yet as I don't know what I am doing)

Have a look in "ThirdParty\_OwnerdrawComboIconsFonts.pbi" in the callback there

3 Added FluidByte's updated ownerdrawn combox box/font previewer.

4 Commented as much as I could.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Update

Post by Fangbeast »

Current version uploaded.

Sorted modules into:

"ThirdParty" ;Srod and FluidByte's includes, both modified for NotePiddle
"RTF Handling" ; Freak, Sparkie and srod's RTF stuff
"RTF Wrappers" ; Anything wrapping the RTF routines by everyone else
"Generic" ; Generic routines for everything
"Testing" ; Disabled until I need them

1 Main code modified for Fluid Byte's new CombBox stuff
2 In Fluid Byte's OwnerdrawComboIconsFonts.PBI file, WindowsCallBack section, the following code was added:

When you click on an item of text (Not select it)

a The font selector is set to the current font that the text is set to.
b The current font name is displayed in the statusbar
c The current font size is displayed in the statusbar
d The current font style is displayed in the statusbar (Cumulative)
e The Bold, Italic and underline buttons are toggled on and off accordingly.

I'm done with this project, it does all I need. Someone else can take it over. Link in first post.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Axolotl
Addict
Addict
Posts: 840
Joined: Wed Dec 31, 2008 3:36 pm

Re: Update

Post by Axolotl »

Fangbeast wrote:Current version uploaded.

I'm done with this project, it does all I need. Someone else can take it over. Link in first post.
Could be something wrong with your zip file?
One of my unzippers cannot open it another shows an empty file!
Thanks in advance for your efforts.
Booger
Enthusiast
Enthusiast
Posts: 134
Joined: Tue Sep 04, 2007 2:18 pm

Re: WordPad clone source

Post by Booger »

Would be excellent if someone could upload this package somewhere. Seems useful, I would like to take a look at it.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: WordPad clone source

Post by Mistrel »

I'd like to play with this one too. Does anyone have a copy of the source code?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4790
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: WordPad clone source

Post by Fangbeast »

Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Booger
Enthusiast
Enthusiast
Posts: 134
Joined: Tue Sep 04, 2007 2:18 pm

Re: WordPad clone source

Post by Booger »

Very nice, greatly appreciated Mr. FangBeast.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: WordPad clone source

Post by Mistrel »

Thank you. :)
Axolotl
Addict
Addict
Posts: 840
Joined: Wed Dec 31, 2008 3:36 pm

Re: WordPad clone source

Post by Axolotl »

Thank you.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Post Reply