🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.visualbasic
Article #14

Undo command

#14
From: Cameron
Date: Fri, 30 Jun 2000 00:00
14 lines
1881 bytes
Hello.  I am designing a text editor similar to notepad for a school
assignment in vb.  I've designed some undo code which has been simply hashed
together from a rather work around method and i know there must be a MUCH
simpler way.  As it stands I have a ritch text box and I would like the undo
feature to be able to undo characters last typed, undo styles applied to
text, and undo copy and paste actions, currently i have only been able to
undo the last character or word.  Also i would like to be able to undo the
last 5, maybe even 10 actions, and then also redo.  I suspect there'd be a
simple call to windows for the feature but I'm unable to find any
information on the subject.  I'm a very novice programmer and the way my
code works, this would take AGES.  ANY easier or quicker solutions, or
examples would be GREATLY appreicated, along with any sites which may have
further info on the specific topic.  Thankyou VERY MUCH for any help you may
be able to offer me!!!!
Technical Details
Message-ID: <395c8d01@news.iprimus.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 104093,c948755e01cb7dac,start
X-Google-Attributes: gid104093,public
X-Google-Thread: 11427d,c948755e01cb7dac,start
X-Google-Attributes: gid11427d,public
X-Google-Thread: 105c2e,c948755e01cb7dac,start
X-Google-Attributes: gid105c2e,public
From: "Cameron" <camford99@primus.com.au>
Subject: Undo command
Date: 2000/06/30
Message-ID: <395c8d01@news.iprimus.com.au>
X-Deja-AN: 640774825
X-Original-NNTP-Posting-Host: 240.0108.syd.iprimus.net.au
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Organization: Another Optus Customer
X-Original-Trace: 30 Jun 2000 22:05:21 +1000, 240.0108.syd.iprimus.net.au
X-MSMail-Priority: Normal
NNTP-Posting-Date: Fri, 30 Jun 2000 22:05:22 EST
Newsgroups: fj.lang.visualbasic,microsoft.public.usasalesinfo.developer.visualbasic,microsoft.public.vb.winapi