Code Snippet

Please share your functions/code-snips

Re: Code Snippet

Postby Slowdown » Mon Jun 22, 2009 7:51 pm

@ Kenneth and all
Can't beat you Kenneth but here is my snippet editor :lol:
As i wrote before i place everything in one big file for now that's no problem
but i recon that i'll run into some problems in the future :(
I think that i write a 'find' function to be sure.
Attachments
Simple Editor.zip
very simple editor
(1.93 KiB) Downloaded 168 times
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: Code Snippet

Postby kenneth » Mon Jun 22, 2009 11:19 pm

Hi All and Slowdown,
Good job......I think what is really needed is a Find/Replace Dialog that could be used with any text program that you might write . I have spent the last week trying to get find and replace to work with the RichEditBox.....no luck yet!
Kenneth
kenneth
 
Posts: 26
Joined: Thu May 21, 2009 12:05 am
Location: Eagle River, Wisconsin USA

Re: Code Snippet

Postby Slowdown » Tue Jun 23, 2009 7:00 pm

@Kenneth,

I will join you to try writing an find and replace.
Can't promiss anything but i'll try ;)
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: Code Snippet

Postby kenneth » Thu Jun 25, 2009 4:25 pm

Hi All and slowdown,
Here is my messed-up code for a Find/Replace Dialog. If you might help, please do.......Ken
Attachments
findreplace.kbasic_project.zip
Find/Replace Dialog TEST
(11.38 KiB) Downloaded 166 times
kenneth
 
Posts: 26
Joined: Thu May 21, 2009 12:05 am
Location: Eagle River, Wisconsin USA

Re: Code Snippet

Postby Slowdown » Thu Jun 25, 2009 6:37 pm

Kenneth,
remove the > " < in the Instr function by ED and FT and it start working.
Not the way you wanted but it works :)
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: Code Snippet

Postby Slowdown » Sat Jun 27, 2009 8:56 am

@Kenneth and all

Made a start with FindText.
Kenneth i have used a bit of youre code and placed a new FindText.
It's just a start.
@Bernd
Is there a way to set the cursor in a RichTextBox Bernd ?
Attachments
FindText.kbasic.zip
Find text in a richtextbox (just a start)
(2.13 KiB) Downloaded 168 times
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: Code Snippet

Postby berndnoetscher » Sun Jun 28, 2009 6:03 pm

I am sorry, placing the cursor is not possible yet (reading is implemented). But Qt supports it, so I will add it to the next versions. Please be patient.
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am

Re: Code Snippet

Postby Slowdown » Tue Jun 30, 2009 7:23 pm

@Bernd, thanks
@Kenneth, made some changes
Let me know.
Attachments
FindText.kbasic.zip
Find text (just a test version)
(2.76 KiB) Downloaded 179 times
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: Code Snippet

Postby berndnoetscher » Wed Jul 01, 2009 4:52 am

The newest Windows version comes with the new SetTextCursorPosition for RichTextBox.
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am

Re: Code Snippet

Postby Slowdown » Wed Jul 01, 2009 7:14 pm

pssssssstt Bernd and the Mac version
(i know i'm patient) 8-)

Thanx Bernd it works (Mac version)
Last edited by Slowdown on Sun Jul 12, 2009 7:54 am, edited 1 time in total.
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

PreviousNext

Return to User-Functions

cron