forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Richedit.dsu (ctl)

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units
View previous topic :: View next topic  
Author Message
cnodnarb
Valued Contributor
Valued Contributor


Joined: 11 Sep 2002
Posts: 641
Location: Evansville, IN

PostPosted: Sun Apr 24, 2011 2:20 pm    Post subject: Richedit.dsu (ctl) Reply with quote

Compliant with:
Request For Comment (RFC): VDS Built Custom Controls for VDS
http://www.vdsworld.com/forum/viewtopic.php?t=5154

Too large to post the dsu code (due to hex resources). Attaching.

updated 4/29/2011

Special credit to Mark James - FAMFAMFAM for an awesome 16x16 glyph collection

http://www.famfamfam.com/lab/icons/silk/

Special credit to WidgetCoder for resize handling concept http://www.vdsworld.com/forum/viewtopic.php?t=3815 - DynPos

Special credit to Skit3000 for http://www.vdsworld.com/forum/viewtopic.php?t=2085 - DSU Resource Maker

Special credit to Codescript for menu examples. Original post @ http://www.vdsworld.com/forum/viewtopic.php?t=1735

Special credit to Tommy Sools for VDSWND.DLL introducing me to the concept.

Special credit to anyone I've forgotten. We've been helping each other so many years it's hard to list everybody.

NOTE: If HTML is saved as .doc or .rtf it will open perfectly in Word all the way up to 2010. If saved as .docx Word will return an error.



richeditpa.zip
 Description:

Download
 Filename:  richeditpa.zip
 Filesize:  22.64 KB
 Downloaded:  2009 Time(s)



Last edited by cnodnarb on Sun May 01, 2011 7:49 pm; edited 4 times in total
Back to top
View user's profile Send private message AIM Address
cnodnarb
Valued Contributor
Valued Contributor


Joined: 11 Sep 2002
Posts: 641
Location: Evansville, IN

PostPosted: Sun May 01, 2011 6:12 pm    Post subject: Reply with quote

Project updated.
Back to top
View user's profile Send private message AIM Address
cnodnarb
Valued Contributor
Valued Contributor


Joined: 11 Sep 2002
Posts: 641
Location: Evansville, IN

PostPosted: Sun May 01, 2011 6:16 pm    Post subject: Reply with quote

Not multiple instance capable.

Code catch or recode required.

EDIT - Fixed

Change line 76 in richeditpa.dsc to

Code:
  run %0 resizer %%rich @winexists(#parent) @sum(@diff(@winpos(#parent,h),@dlgpos(,h)),85) @diff(@winpos(#parent,w),@dlgpos(,w))


Edit 2 - Not fixed.

Due to INI variable store that impacts all windows. Recode required.

Edit 3 - resolved. Eliminated inifile dependency.
Back to top
View user's profile Send private message AIM Address
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1711
Location: Space and Time

PostPosted: Sun May 01, 2011 7:58 pm    Post subject: Reply with quote

great job! this is cool. i think i can find a use for this.
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cnodnarb
Valued Contributor
Valued Contributor


Joined: 11 Sep 2002
Posts: 641
Location: Evansville, IN

PostPosted: Wed May 25, 2011 6:06 pm    Post subject: Reply with quote

I'm developing WebWrite Lite (5.0) branching from the above open source Wink

The version above has a few bugs, which you'll have to quash on your own if you use the control.
Back to top
View user's profile Send private message AIM Address
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 395
Location: ITALY

PostPosted: Wed Jun 08, 2011 10:29 am    Post subject: Reply with quote

Hi cnodnarb Very Happy
really great job

it's possible to use this dsu into a vds6 script?



Thank you
Back to top
View user's profile Send private message Send e-mail
cnodnarb
Valued Contributor
Valued Contributor


Joined: 11 Sep 2002
Posts: 641
Location: Evansville, IN

PostPosted: Thu Jun 09, 2011 4:35 pm    Post subject: Reply with quote

It should be compatible. I'm not a VDS6 user.
Back to top
View user's profile Send private message AIM Address
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1711
Location: Space and Time

PostPosted: Sun Oct 21, 2012 7:06 pm    Post subject: Reply with quote

I just got to trying this more (it's been a while i know), but when I try to save a file I get an error 23 @ 186. Any ideas? Have you worked on this any more?

What I would like to do is be able to create a hidden edit control, paste the contents and save it to an HTML file (RTF file also if that can be done). Do you know of a way that I can do that using this?

_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1711
Location: Space and Time

PostPosted: Sun Oct 21, 2012 9:10 pm    Post subject: Reply with quote

Never mind, I think I got it.

Well, saving as a HTML file, not RTF.

_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1711
Location: Space and Time

PostPosted: Mon Jul 07, 2014 7:22 pm    Post subject: Reply with quote

Brandon - Help! (please if you can) I am trying to make an app using the javascript and make an editor, but when I use it to make the content NOT editable I am unable to save the text (browser savefile, or @dlgtext()). Then the app locks up. Any ideas? http://forum.vdsworld.com/viewtopic.php?p=37844#37844
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group