Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Linus? Whose that? -- clueless newbie on #Linux


computers / alt.windows7.general / Re: Open a random textfile asif its RTF ?

SubjectAuthor
* Open a random textfile asif its RTF ?R.Wieser
+* Open a random textfile asif its RTF ?Ed Cryer
|`* Open a random textfile asif its RTF ?R.Wieser
| `- Open a random textfile asif its RTF ?Ed Cryer
+* Open a random textfile asif its RTF ?Paul
|`- Open a random textfile asif its RTF ?R.Wieser
+- Open a random textfile asif its RTF ?J. P. Gilliver
+* Open a random textfile asif its RTF ?JJ
|`- Open a random textfile asif its RTF ?R.Wieser
+* Open a random textfile asif its RTF ?Newyana2
|`* Open a random textfile asif its RTF ?R.Wieser
| `* Open a random textfile asif its RTF ?Char Jackson
|  `* Open a random textfile asif its RTF ?R.Wieser
|   `* Open a random textfile asif its RTF ?Newyana2
|    `* Open a random textfile asif its RTF ?R.Wieser
|     +* Open a random textfile asif its RTF ?Newyana2
|     |+- Open a random textfile asif its RTF ?R.Wieser
|     |`* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | +* riched20 - save and load cursor position (Newyana2)Newyana2
|     | |`* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | | `* riched20 - save and load cursor position (Newyana2)Newyana2
|     | |  `* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |   `* riched20 - save and load cursor position (Newyana2)Newyana2
|     | |    `* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |     `* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |      `* riched20 - save and load cursor position (Newyana2)Newyana2
|     | |       `* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |        `* riched20 - save and load cursor position (Newyana2)Newyana2
|     | |         `* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |          `* riched20 - save and load cursor position (Newyana2)Newyana2
|     | |           `* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |            +* riched20 - save and load cursor position (Newyana2)Apd
|     | |            |`* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |            | `* riched20 - save and load cursor position (Newyana2)Apd
|     | |            |  `* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |            |   `* riched20 - save and load cursor position (Newyana2)Apd
|     | |            |    `* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |            |     +* riched20 - save and load cursor position (Newyana2)Newyana2
|     | |            |     |`* riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |            |     | `- riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |            |     `- riched20 - save and load cursor position (Newyana2)R.Wieser
|     | |            `* riched20 - save and load cursor position (Newyana2)Newyana2
|     | |             `- riched20 - save and load cursor position (Newyana2)R.Wieser
|     | `* riched20 - save and load cursor position (Newyana2)Char Jackson
|     |  +- riched20 - save and load cursor position (Newyana2)R.Wieser
|     |  `- riched20 - save and load cursor position (Newyana2)Newyana2
|     +* Open a random textfile asif its RTF ?Ken Blake
|     |`* Open a random textfile asif its RTF ?R.Wieser
|     | `* Open a random textfile asif its RTF ?Ken Blake
|     |  `- Open a random textfile asif its RTF ?R.Wieser
|     `* Open a random textfile asif its RTF ?Jack Lemmon
|      `* Open a random textfile asif its RTF ?Newyana2
|       `* Open a random textfile asif its RTF ?R.Wieser
|        `* Open a random textfile asif its RTF ?Frank Slootweg
|         +* Open a random textfile asif its RTF ?Ed Cryer
|         |+* Open a random textfile asif its RTF ?R.Wieser
|         ||`* Open a random textfile asif its RTF ?Frank Slootweg
|         || `- Open a random textfile asif its RTF ?J. P. Gilliver
|         |`- Open a random textfile asif its RTF ?Frank Slootweg
|         `* Open a random textfile asif its RTF ?R.Wieser
|          `* Open a random textfile asif its RTF ?Frank Slootweg
|           `- Open a random textfile asif its RTF ?R.Wieser
`* Open a random textfile asif its RTF ?Ken Blake
 `* Open a random textfile asif its RTF ?J. P. Gilliver
  `- Open a random textfile asif its RTF ?R.Wieser

Pages:123
Re: Open a random textfile asif its RTF ?

<hha18i1ke9qgi1fr96kipr7pe4cot66ppj@4ax.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6186&group=alt.windows7.general#6186

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Ken@invalid.news.com (Ken Blake)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: Wed, 07 Jun 2023 09:06:50 -0700
Lines: 46
Message-ID: <hha18i1ke9qgi1fr96kipr7pe4cot66ppj@4ax.com>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <90ku7itnau10cbgrsvjb8mcu89774vkv4d@4ax.com> <u5pbco$12o60$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Trace: individual.net +RcPOS3UWbw6lIcSjXF6tA7vLv9ct9zqZ8b0NLPVy6ecwgMlWv
Cancel-Lock: sha1:Xh8pBXY2j3qGbVyPNIKUDaomIRE=
X-Newsreader: Forte Agent 6.00/32.1186
 by: Ken Blake - Wed, 7 Jun 2023 16:06 UTC

On Tue, 6 Jun 2023 20:04:23 +0200, "R.Wieser" <address@is.invalid>
wrote:

>Ken,
>
>> "Old" is certainly not the same as "bad."
>
>I know that, you know that. But some people only want/need/demand to have
>the latest-and-advertised-greatest bling-bling, and will regard everything
>else - even if its what they used yesterday - as inferior. yup, a status
>thing.

Very true.

>> The older it gets the more likely it is that you're going to want
>> or need some new hardware or software that isn't compatible with it.
>
>True. And when that happens its early enough to switch to something else.

Yes, but...

....if you let several versions go by and then switch to the latest
version, it will probably be a big change and difficult to learn how
to use the new one. Changes are easier to adapt to when they are
gradual.

>> If you haven't yet run into such a problem, fine. But one of
>> these days...
>
>I already have gone to one such change six years ago, when my W98 'puters
>motherboard died and W98 drivers for a new motherboard (and associated
>hardware) was ofcourse nowhere to be had. Result : I'm now running XP.
>
>Yes, you read that right. Up until about late 2017 I ran W98.
>
>Regards,
>Rudy Wieser
>

Re: Open a random textfile asif its RTF ?

<u5qe8l$16gr7$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6188&group=alt.windows7.general#6188

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: Wed, 7 Jun 2023 19:20:06 +0200
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <u5qe8l$16gr7$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <90ku7itnau10cbgrsvjb8mcu89774vkv4d@4ax.com> <u5pbco$12o60$1@dont-email.me> <hha18i1ke9qgi1fr96kipr7pe4cot66ppj@4ax.com>
Injection-Date: Wed, 7 Jun 2023 17:20:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e849dad96fbacf498017b92c52b93537";
logging-data="1262439"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gtaqnPesUavJjL/0l+VgrYvxdSOQ+l5uq5mSXP4oDcg=="
Cancel-Lock: sha1:6PLRiZEqsugayYYdBCWXmJKO6HQ=
X-MSMail-Priority: Normal
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Wed, 7 Jun 2023 17:20 UTC

Ken,

> ...if you let several versions go by and then switch to the latest
> version, it will probably be a big change and difficult to learn
> how to use the new one. Changes are easier to adapt to when they
> are gradual.

How is changing from W98 to XP to W7 to vista to W8 to W10 to W11 anything
near to gradual ?

But if you are talking about the continuous stream of updates to the
user-facing part of the OS (which causes it to be in a permanent state of
flux), than no thank you. Yuck and all that.

And thats besides the problem that MS took away the users choice in it (even
going as far as ramming W10 and now W11 down they users collective throaths)
and that it continously mucks around with the users preferences. I would
*definitily* not like that.

Also, I would not like it one bit of such a "gradual change" would suddenly
cause some other programs I installed to stop working.

No, I think I prefer a stable, dependable system that I replace once every
two decades over one which continuously demands my attention because
/something/ changed. :-)

But thanks for reminding me, I should really put a 'puter with Win7 on it
next to me, so I can get aquainted with it at my leisure. Something I'm
already doing with Linux (Raspberry Pi) ...

Regards,
Rudy Wieser

Re: Open a random textfile asif its RTF ?

<u5qopd.o4k.1@ID-201911.user.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6189&group=alt.windows7.general#6189

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: this@ddress.is.invalid (Frank Slootweg)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: 7 Jun 2023 18:20:06 GMT
Organization: NOYB
Lines: 6
Message-ID: <u5qopd.o4k.1@ID-201911.user.individual.net>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team> <u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me>
X-Trace: individual.net iIZlIbEpceIvXhr9dHf8cQBYpuo8c3aTZZ/mVU2UounYKnfiTA
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:GENXRsbsq20plbaZ0iEeeO53pOM=
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (CYGWIN_NT-10.0-WOW/2.8.0(0.309/5/3) (i686)) Hamster/2.0.2.2
 by: Frank Slootweg - Wed, 7 Jun 2023 18:20 UTC

R.Wieser <address@is.invalid> wrote:
[...]

> Well, as an Assembly programmer I can't really deny that, can I ? :-)

Assembly is for wimps! Real Programmers (TM) cat to a.out!

Re: Open a random textfile asif its RTF ?

<u5ql44$17789$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6190&group=alt.windows7.general#6190

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ed@somewhere.in.the.uk (Ed Cryer)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: Wed, 7 Jun 2023 20:16:34 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <u5ql44$17789$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team>
<u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com>
<u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team>
<u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team>
<u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me>
<u5qopd.o4k.1@ID-201911.user.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Jun 2023 19:17:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="21f66855ea41b2f30cffba8444b4e5ce";
logging-data="1285385"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ltjNMYnO0uRO25VXQiJI8"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.2
Cancel-Lock: sha1:UDQHEHSSsglf7H14XiQY+CDDflY=
In-Reply-To: <u5qopd.o4k.1@ID-201911.user.individual.net>
Content-Language: en-GB
 by: Ed Cryer - Wed, 7 Jun 2023 19:16 UTC

Frank Slootweg wrote:
> R.Wieser <address@is.invalid> wrote:
> [...]
>
>> Well, as an Assembly programmer I can't really deny that, can I ? :-)
>
> Assembly is for wimps! Real Programmers (TM) cat to a.out!

Have you ever used Assembler on an old first generation mainframe? A
piece of hardware with thermionic valves?
Or on a ZX Spectrum to alter some game?
Well, I have. And it's hardly for wimps! It takes a degree of skill that
today's high-level languages can't even dream of.
Just try and wriggle some disassembler between the screen parameters and
the game prog on a Spectrum, and then rale at assembler programmers.
Or peruse an old ICL mainframe core dump in binary, octal and
hexadecimal; trying to find the error.

Your "real programmers" are the wimps. They don't work within the
constraints that we worked within in the "white-hot heat of the
technological revolution". They're pampered children of the revolution.

Ed

Re: Open a random textfile asif its RTF ?

<u5qmgk$17d7t$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6191&group=alt.windows7.general#6191

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: Wed, 7 Jun 2023 21:31:33 +0200
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <u5qmgk$17d7t$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team> <u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me> <u5qopd.o4k.1@ID-201911.user.individual.net>
Injection-Date: Wed, 7 Jun 2023 19:41:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e849dad96fbacf498017b92c52b93537";
logging-data="1291517"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/wl0un9qaGfU1XZVX7Wr3GhrhqW6z897fDwnPdBe90w=="
Cancel-Lock: sha1:wHdobc/8mgh+XGo8FWrBIzV6vW8=
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Wed, 7 Jun 2023 19:31 UTC

Frank,

> Assembly is for wimps! Real Programmers (TM) cat to a.out!

Obligatory XKCD reference : https://xkcd.com/378/

Regards,
Rudy Wieser

Re: Open a random textfile asif its RTF ?

<u5qmgk$17d7t$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6192&group=alt.windows7.general#6192

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: Wed, 7 Jun 2023 21:40:51 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <u5qmgk$17d7t$2@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team> <u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me> <u5qopd.o4k.1@ID-201911.user.individual.net> <u5ql44$17789$1@dont-email.me>
Injection-Date: Wed, 7 Jun 2023 19:41:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e849dad96fbacf498017b92c52b93537";
logging-data="1291517"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TgSLdFsglLTCgVEesBEV6CpZt5/7ViLIjrBXLKyiLzQ=="
Cancel-Lock: sha1:bAQ1fDaGBip/oXH99Myd22CH7w8=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Wed, 7 Jun 2023 19:40 UTC

Ed,

>> Assembly is for wimps! Real Programmers (TM) cat to a.out!
>
> Have you ever used Assembler on an old first generation mainframe? A piece
> of hardware with thermionic valves?

He wasn't trying to tell me that high-level programs are better, he was,
jokingly, one-upping me and suggesting that I have it /way/ too easy.

Have you ever tried to enter 4K of code on a ZX Spectrum, hoping you did
everything right the first time (or you could start all over again) ? Thats
the problem you will encounter using "cat to a.out!" (or its DOS equivalent,
COPY CON). As such writing Assembly using an editor and converting it to
an executable using an assembler is a breeze. :-)

Regards,
Rudy Wieser

Re: Open a random textfile asif its RTF ?

<u5qu87.dpg.1@ID-201911.user.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6193&group=alt.windows7.general#6193

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: this@ddress.is.invalid (Frank Slootweg)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: 7 Jun 2023 19:53:21 GMT
Organization: NOYB
Lines: 53
Message-ID: <u5qu87.dpg.1@ID-201911.user.individual.net>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team> <u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me> <u5qopd.o4k.1@ID-201911.user.individual.net> <u5ql44$17789$1@dont-email.me>
X-Trace: individual.net kRUtaz436jvVyKfP5nTHPgyAzaH+LAUjiwX2iA6Dz2UUeulBna
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:TyZobwS0hieVXDIh42vcxXkOGCU=
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (CYGWIN_NT-10.0-WOW/2.8.0(0.309/5/3) (i686)) Hamster/2.0.2.2
 by: Frank Slootweg - Wed, 7 Jun 2023 19:53 UTC

Ed Cryer <ed@somewhere.in.the.uk> wrote:
> Frank Slootweg wrote:
> > R.Wieser <address@is.invalid> wrote:
> > [...]
> >
> >> Well, as an Assembly programmer I can't really deny that, can I ? :-)
> >
> > Assembly is for wimps! Real Programmers (TM) cat to a.out!
>
> Have you ever used Assembler on an old first generation mainframe? A
> piece of hardware with thermionic valves?

I've worked on the first 16-bit 'mini' computers with 4-32K (words).
I've modified the 64-word BBL (Basic Binary Loader), so that it could
not only handle boot from papertape and disc (c, not k), but could also
do dual-boot (BCS and DOS-M) from disc.

I've modified and written device drivers and written very, very
low-level memory-mapping routines in Assembler.

> Or on a ZX Spectrum to alter some game?

I've disassembled MSX games (Z-80) and modified them to allow them to
be stored on and loaded from diskette, instead of from (audio) cassette
tape.

> Well, I have. And it's hardly for wimps! It takes a degree of skill that
> today's high-level languages can't even dream of.
> Just try and wriggle some disassembler between the screen parameters and
> the game prog on a Spectrum, and then rale at assembler programmers.
> Or peruse an old ICL mainframe core dump in binary, octal and
> hexadecimal; trying to find the error.

So yes, I *do* know what it takes. That was the whole point of the
joke.

> Your "real programmers" are the wimps. They don't work within the
> constraints that we worked within in the "white-hot heat of the
> technological revolution". They're pampered children of the revolution.

I take it you didn't get the "cat to a.out" bit. 'My' programmers
directly type the opcodes into the executable file [1]. We had a guy who
could read ASCII paper tapes with his eyes.

But I do understand *your* point, I already encountered your kind of
programmers in the 70s. One of them was lucky we were on a plane,
otherwise I would have kicked him out! :-)

[1] Yes that can be done: The (comp.binaries.ibm.pc) 'CBIP Starter's Kit'
was distributed as a Usenet posting, where part of the text of the
posting could be cut out, saved in a file, renamed as a .com and
executed to uudecode the rest of the posting. (I still have a copy of
such a posting.)

Re: Open a random textfile asif its RTF ?

<u5qum9.dpg.1@ID-201911.user.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6194&group=alt.windows7.general#6194

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: this@ddress.is.invalid (Frank Slootweg)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: 7 Jun 2023 20:00:51 GMT
Organization: NOYB
Lines: 11
Message-ID: <u5qum9.dpg.1@ID-201911.user.individual.net>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team> <u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me> <u5qopd.o4k.1@ID-201911.user.individual.net> <u5ql44$17789$1@dont-email.me> <u5qmgk$17d7t$2@dont-email.me>
X-Trace: individual.net kUhQ28MZmE1knGdUePA9OgRL2ZK1Ot0PwOcVAvohxECQTyp4NW
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:5HCyqQ+5fPwYuqgH/FxMs2z4CUo=
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (CYGWIN_NT-10.0-WOW/2.8.0(0.309/5/3) (i686)) Hamster/2.0.2.2
 by: Frank Slootweg - Wed, 7 Jun 2023 20:00 UTC

R.Wieser <address@is.invalid> wrote:
[...]
> Have you ever tried to enter 4K of code on a ZX Spectrum, hoping you did
> everything right the first time (or you could start all over again) ? Thats
> the problem you will encounter using "cat to a.out!" (or its DOS equivalent,
> COPY CON). As such writing Assembly using an editor and converting it to
> an executable using an assembler is a breeze. :-)

Thanks. The 'COPY CON' one refused to be loaded into my foreground
memory, so I used the Unix equivalent. Yes, a BIG faux pas in a Windows
group!

Re: Open a random textfile asif its RTF ?

<u5quu4.dpg.1@ID-201911.user.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6195&group=alt.windows7.general#6195

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: this@ddress.is.invalid (Frank Slootweg)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: 7 Jun 2023 20:05:01 GMT
Organization: NOYB
Lines: 8
Message-ID: <u5quu4.dpg.1@ID-201911.user.individual.net>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team> <u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me> <u5qopd.o4k.1@ID-201911.user.individual.net> <u5qmgk$17d7t$1@dont-email.me>
X-Trace: individual.net RIWaSFhpVN8XU5QrLVV2KAtBdFU9ze4w0kd9JS8xKLo0XbRNw8
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:Px++icNzolvfoinv07lB9XgK1RY=
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (CYGWIN_NT-10.0-WOW/2.8.0(0.309/5/3) (i686)) Hamster/2.0.2.2
 by: Frank Slootweg - Wed, 7 Jun 2023 20:05 UTC

R.Wieser <address@is.invalid> wrote:
> Frank,
>
> > Assembly is for wimps! Real Programmers (TM) cat to a.out!
>
> Obligatory XKCD reference : https://xkcd.com/378/

Nice one! I had never seen the butterfiles one.

Re: Open a random textfile asif its RTF ?

<Ikskh5f6oPgkFwY5@255soft.uk>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6196&group=alt.windows7.general#6196

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: G6JPG@255soft.uk (J. P. Gilliver)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: Wed, 7 Jun 2023 22:44:26 +0100
Organization: 255 software
Lines: 26
Message-ID: <Ikskh5f6oPgkFwY5@255soft.uk>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team>
<u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com>
<u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team>
<u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team>
<u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me>
<u5qopd.o4k.1@ID-201911.user.individual.net> <u5ql44$17789$1@dont-email.me>
<u5qmgk$17d7t$2@dont-email.me> <u5qum9.dpg.1@ID-201911.user.individual.net>
MIME-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
Injection-Info: dont-email.me; posting-host="092c1ff5b69ef5bd8b3e356867250953";
logging-data="1318207"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18w86MWx9aC8ozFlRpbmzqw"
User-Agent: Turnpike/6.07-M (<rr4iwLBF8$KIZBJVneG+QddGzc>)
Cancel-Lock: sha1:KLmgm/Oif28+AKvIx9Byr5eepYs=
X-Antivirus-Status: Clean
X-Antivirus: AVG (VPS 230607-0, 2023-6-7), Outbound message
 by: J. P. Gilliver - Wed, 7 Jun 2023 21:44 UTC

In message <u5qum9.dpg.1@ID-201911.user.individual.net> at Wed, 7 Jun
2023 20:00:51, Frank Slootweg <this@ddress.is.invalid> writes
>R.Wieser <address@is.invalid> wrote:
>[...]
>> Have you ever tried to enter 4K of code on a ZX Spectrum, hoping you did
>> everything right the first time (or you could start all over again) ? Thats
>> the problem you will encounter using "cat to a.out!" (or its DOS equivalent,
>> COPY CON). As such writing Assembly using an editor and converting it to
>> an executable using an assembler is a breeze. :-)
>
> Thanks. The 'COPY CON' one refused to be loaded into my foreground
>memory, so I used the Unix equivalent. Yes, a BIG faux pas in a Windows
>group!

I _have_ occasionally used COPY CON: to create a small batch file. Yes,
nothing like what you are thinking of, but an actual practical example.

(The first computer - by Mr. Parr's definition, which was that its
instruction set included a conditional jump - that I used, you _did_
program one bit at a time. [A 7-bit serial-processor machine that ran in
_ones_ complement; called BRENDA.])
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

"Address the chair!" "There isn't a chair, there's only a rock!" "Well, call
it a chair!" "Why not call it a rock?" (First series, fit the sixth.)

Re: Open a random textfile asif its RTF ?

<u5rsl7$1el4v$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6200&group=alt.windows7.general#6200

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general
Subject: Re: Open a random textfile asif its RTF ?
Date: Thu, 8 Jun 2023 08:31:48 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <u5rsl7$1el4v$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5nqum$2a8ol$1@paganini.bofh.team> <u5o52t$2bb66$1@paganini.bofh.team> <u5pbco$12o60$2@dont-email.me> <u5qopd.o4k.1@ID-201911.user.individual.net> <u5qmgk$17d7t$1@dont-email.me> <u5quu4.dpg.1@ID-201911.user.individual.net>
Injection-Date: Thu, 8 Jun 2023 06:32:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d6739fe12653cb9f160bb3214da73536";
logging-data="1528991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eC3LGQNKL3xhTw2/3Hxr3Jl5GI7+OjoEGYeszBac9Og=="
Cancel-Lock: sha1:5Eu/RPp1KEt8QsYYPsp5hmGk/H8=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Thu, 8 Jun 2023 06:31 UTC

Frank,

> Nice one! I had never seen the butterfiles one.

No doubt drawn from the chaos principle (a butterfly flapping its wings in
America could cause a storm in Europe).

I like the "magnetised needle" best myself, its almost believable.

Regards,
Rudy Wieser

riched20 - save and load cursor position (Newyana2)

<u6987a$3hfvr$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6258&group=alt.windows7.general#6258

  copy link   Newsgroups: alt.windows7.general
Followup: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general
Subject: riched20 - save and load cursor position (Newyana2)
Followup-To: comp.os.ms-windows.programmer.win32
Date: Tue, 13 Jun 2023 10:08:57 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u6987a$3hfvr$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team>
Injection-Date: Tue, 13 Jun 2023 08:09:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bde6be6a0df98fa26a4c9068ab3bb3c7";
logging-data="3719163"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189mAGGsFDyVWu9dWOXGpIKetjwK0AJ8Fd2Ny9lyNW/mQ=="
Cancel-Lock: sha1:qZElmSDz3lbQs4FzZLJ4OFR/FmY=
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Tue, 13 Jun 2023 08:08 UTC

Newyana2,

As you have mentioned to have done quite a bit with the RichEdit control,
maybe you can help me understand a problem I had a while ago.

I loaded an RTF file (containing multiple font sizes) into a RichEd20
control, Than Itried to save the cursor position using EM_GETSCROLLPOS and
later restore the position using EM_SETSCROLLPOS.

The problem ? Even when I executed those two commands directly after the
other* the cursor jumped up a number of lines.

*automatically executed or delayed by putting it under a button I had to
press first made no difference.

If you ever ran into it and fixed it, how did you do that ?

Regards,
Rudy Wieser

P.s.
I posted the question here as you frequent this newsgroup. But I've set
the follow-up to "comp.os.ms-windows.programmer.win32". If thats not a
newsgroup your newsgroup provider carries than please remove the
redirection.

Re: riched20 - save and load cursor position (Newyana2)

<u69prm$175cq$1@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6264&group=alt.windows7.general#6264

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: Newyana2@invalid.nospam (Newyana2)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Tue, 13 Jun 2023 09:10:17 -0400
Organization: To protect and to server
Lines: 76
Message-ID: <u69prm$175cq$1@paganini.bofh.team>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me>
Injection-Date: Tue, 13 Jun 2023 13:10:14 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1283482"; posting-host="YqKngTRkOayeCX1S/e7lbw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:b7VeMfcpjL0OPj/f9FWDVN9t/ITERPyQRsXqMI1GRTM=
X-Notice: Filtered by postfilter v. 0.9.3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: Newyana2 - Tue, 13 Jun 2023 13:10 UTC

"R.Wieser" <address@is.invalid> wrote

| As you have mentioned to have done quite a bit with the RichEdit control,
| maybe you can help me understand a problem I had a while ago.
| | I loaded an RTF file (containing multiple font sizes) into a RichEd20
| control, Than Itried to save the cursor position using EM_GETSCROLLPOS and
| later restore the position using EM_SETSCROLLPOS.
| | The problem ? Even when I executed those two commands directly after the
| other* the cursor jumped up a number of lines.
|

I sandwich operations between LockWindowUpdate
on the parent window. I also sometimes add EnableWindow
on the RichEdit itself. The former blocks painting. The
latter blocks input from mouse and keyboard.

DoEvents
LockWindowUpdate ParentWindow.hWnd
EnableWindow hRE.hWnd, False

' [Here I might do something like read out the
RE content and run the string through a tokenizing
routine to update formatting, colors, or whatever,
then put back the new RTF text.]

EnableWindow hRE.hWnd, True
LockWindowUpdate 0

At some point MS decided LockWindowUpdate should not be
used and recommended a WM_SETREDRAW message instead.
If I remember correctly, LWU wraps that message along with
other operations. I never understood the hubbub. Raymond
Chen goes on about how all hell will break loose if you start
running LWU on multiple windows because there's no window
handle for unlocking. But I don't see a problem with that. I'm
not doing it with multiple windows and I only do it for a fraction
of a second. It may be possible for another program to make
the same call during that fraction of a second while someone is
using my editor, but that's farfetched. At any rate, you can try
WM_SETREDRAW. Both block painting but keep track of changes
for painting after unlock. EnableWindow, by contrast, is used to
block input to the window entirely while a locking operation is
going on.

I find that if I can do all operations in less than 1/4 second
then the window display is smooth and the content just updates
in appearance. I don't if that covers the problem you're having.
I Guess I typically record SelStart before any operation and
then return it to that position. EM_GETSEL and EM_SETSEL.

I don't get how you're doing any of this with script, but I'll
leave you to it. :) However, getting, setting SelStart requires
a long pointer to a CHARRANGE STRUCT. The STRUCT is two
longs, which specify the starting point and ending point of
a specified set of characters. You dson't have to care about that
if you just return the CHARRANGE from GET to the SET operation,
but you will need to handle a CHARRANGE.

| P.s.
| I posted the question here as you frequent this newsgroup. But I've set
| the follow-up to "comp.os.ms-windows.programmer.win32". If thats not a
| newsgroup your newsgroup provider carries than please remove the
| redirection.
|

I'll find out, I guess. I'm setting it for both, since
it's possible someone here would be curious. I used
to visit maybe 6-7 programming groups, including
Win32 API. I didn't know there were any still left.
The only one I still go to is vb.general.discussion,
which still gets regular traffic.

Re: riched20 - save and load cursor position (Newyana2)

<8oqg8il79gcgs014681algrrrlamn1f98e@4ax.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6266&group=alt.windows7.general#6266

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
From: none@none.invalid (Char Jackson)
Newsgroups: alt.windows7.general
Subject: Re: riched20 - save and load cursor position (Newyana2)
Message-ID: <8oqg8il79gcgs014681algrrrlamn1f98e@4ax.com>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me>
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 22
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Tue, 13 Jun 2023 13:17:55 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Tue, 13 Jun 2023 08:17:55 -0500
X-Received-Bytes: 1772
 by: Char Jackson - Tue, 13 Jun 2023 13:17 UTC

[f/u removed, as I don't read the other group]

On Tue, 13 Jun 2023 10:08:57 +0200, "R.Wieser" <address@is.invalid>
wrote:

>Newyana2,
>
>As you have mentioned to have done quite a bit with the RichEdit control,
>maybe you can help me understand a problem I had a while ago.
>
>I loaded an RTF file (containing multiple font sizes) into a RichEd20
>control, Than Itried to save the cursor position using EM_GETSCROLLPOS and
>later restore the position using EM_SETSCROLLPOS.
>
>The problem ? Even when I executed those two commands directly after the
>other* the cursor jumped up a number of lines.
<snip>

After you call EM_GETSCROLLPOS, can you print its value to the console
for inspection? Perhaps it needs to have a static offset applied before
you use it in EM_SETSCROLLPOS, although I don't know why.

Re: riched20 - save and load cursor position (Newyana2)

<u6a2v5$3kuq1$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6267&group=alt.windows7.general#6267

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Tue, 13 Jun 2023 17:24:16 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u6a2v5$3kuq1$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <8oqg8il79gcgs014681algrrrlamn1f98e@4ax.com>
Injection-Date: Tue, 13 Jun 2023 15:45:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bde6be6a0df98fa26a4c9068ab3bb3c7";
logging-data="3832641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iUdjnxufP/jDUWMnDRbBnkVkgOtc8rBw0VNr/EfSRiA=="
Cancel-Lock: sha1:BOnQIX9iTlv2L6IvYU91iBC1RPQ=
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Tue, 13 Jun 2023 15:24 UTC

Char,

> After you call EM_GETSCROLLPOS, can you print its value to the
> console for inspection?

I have. And I did it again after having applied EM_SETSCROLLPOS. The
results differed.

> Perhaps it needs to have a static offset applied before
> you use it in EM_SETSCROLLPOS, although I don't know why.

The MSDN webpages to either EM_GETSCROLLPOS or EM_SETSCROLLPOS do not make
any mentioning of it :

https://learn.microsoft.com/en-us/windows/win32/controls/em-getscrollpos

https://learn.microsoft.com/en-us/windows/win32/controls/em-setscrollpos

And by the way: the reason why I mentioned "(containing multiple font
sizes)" is that if you load an RTF file that does /not/ set the font size
(leaves it default) everything works. IOW, no offset.

Regards,
Rudy Wieser

Re: riched20 - save and load cursor position (Newyana2)

<u6a2v6$3kuq1$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6268&group=alt.windows7.general#6268

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Tue, 13 Jun 2023 17:45:00 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <u6a2v6$3kuq1$2@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team>
Injection-Date: Tue, 13 Jun 2023 15:45:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bde6be6a0df98fa26a4c9068ab3bb3c7";
logging-data="3832641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19r9NyTEbMDQMdZ+fU7Z7zMn+z2vLJdXxpgvn0JM88Ryw=="
Cancel-Lock: sha1:0mZjjFTkzT6KJTY/5kbDG3tqUgg=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Tue, 13 Jun 2023 15:45 UTC

Newyana2,

> I sandwich operations between LockWindowUpdate on the parent
> window. I also sometimes add EnableWindow on the RichEdit itself.

I just tried either and both LockWindowUpdate and EnableWindow but alas, I
got the same jumping result.

Thanks for the suggestion though.

> I'll find out, I guess. I'm setting it for both, since
> it's possible someone here would be curious.

That indeed has happened. I was hoping they would move to this
(comp.os.ms-windows.programmer.win32) newsgroup too.

> I used to visit maybe 6-7 programming groups

Most of the programming newsgroups I visit are of little usage to me, as my
questions are seldom about the language, but instead about the underlaying
controls, DLL functions, etc.

Regards,
Rudy Wieser

Re: riched20 - save and load cursor position (Newyana2)

<u6a3de$1856r$1@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6269&group=alt.windows7.general#6269

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: Newyana2@invalid.nospam (Newyana2)
Newsgroups: alt.windows7.general
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Tue, 13 Jun 2023 11:53:21 -0400
Organization: To protect and to server
Lines: 20
Message-ID: <u6a3de$1856r$1@paganini.bofh.team>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <8oqg8il79gcgs014681algrrrlamn1f98e@4ax.com>
Injection-Date: Tue, 13 Jun 2023 15:53:18 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1316059"; posting-host="YqKngTRkOayeCX1S/e7lbw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:fzh3/UsgpSqImkJqnyW8sTHvsGovSwS2yXGrEIQWimw=
X-Notice: Filtered by postfilter v. 0.9.3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: Newyana2 - Tue, 13 Jun 2023 15:53 UTC

"Char Jackson" <none@none.invalid> wrote

| After you call EM_GETSCROLLPOS, can you print its value to the console
| for inspection? Perhaps it needs to have a static offset applied before
| you use it in EM_SETSCROLLPOS, although I don't know why.
|

No. I use it to line up RichEdits or to reset a window
to where it was after doing operations. I just save the
POINT values from GET and then reuse them in SET.

It would be rare to
do anything else because you wouldn't know how to
measure. For example, you might call GET and return
40, 300. Then maybe you want to scroll down 200 pixels?
But why? That's never relevant. A RichEdit provides
EM_LINESCROLL for scrolling a number of lines, which
actually is useful.

Re: riched20 - save and load cursor position (Newyana2)

<u6af78$19dc2$1@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6272&group=alt.windows7.general#6272

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: Newyana2@invalid.nospam (Newyana2)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Tue, 13 Jun 2023 15:14:51 -0400
Organization: To protect and to server
Lines: 17
Message-ID: <u6af78$19dc2$1@paganini.bofh.team>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team> <u6a2v6$3kuq1$2@dont-email.me>
Injection-Date: Tue, 13 Jun 2023 19:14:48 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1357186"; posting-host="YqKngTRkOayeCX1S/e7lbw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:qfVY0wgCkC76s9Io6SaLcVd1mET+Jc1qvE+xgX5Ws8k=
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.3
X-MSMail-Priority: Normal
 by: Newyana2 - Tue, 13 Jun 2023 19:14 UTC

"R.Wieser" <address@is.invalid> wrote

| I just tried either and both LockWindowUpdate and EnableWindow but alas, I
| got the same jumping result.
|

I don't see how that's possible. If you do a LWU, then
save the cursor pos, then do operations, then reset
the cursor, then unlock window, it's not possible for
the window to move while you're doing all that.

Did you also save and reset the SelStart position?
If you do as above but end up with SelStart (cursor pos)
several lines away, then it will jump. You have to put
everything back as it was before you unlock.

Re: riched20 - save and load cursor position (Newyana2)

<u6ajiv$3n1g7$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6273&group=alt.windows7.general#6273

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Tue, 13 Jun 2023 22:27:29 +0200
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <u6ajiv$3n1g7$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team> <u6a2v6$3kuq1$2@dont-email.me> <u6af78$19dc2$1@paganini.bofh.team>
Injection-Date: Tue, 13 Jun 2023 20:29:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bde6be6a0df98fa26a4c9068ab3bb3c7";
logging-data="3900935"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CVV2B7jLAd4MZY2ibULDgukywDBoB39ZeXp3B+qlAgQ=="
Cancel-Lock: sha1:FLHi5t7gcEB+fJP894KgYLFo7fE=
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Tue, 13 Jun 2023 20:27 UTC

Newyana2,

> I don't see how that's possible.

I don't either, but it still does.

I just retried it, and it behaves the same. To double-check I removed the
unlocking, and afterwards, as expected, wasn't able to interact with the
RichEdit control anymore.

And something I did not mention before : the jumps seem to get smaller the
closer the cursor gets to the top.

> Did you also save and reset the SelStart position?

No. Why should I ?

Ehhrrmmm... I said I saved the /cursor/ position, but as you probably have
noticed fromk the used EM_xxx messages, I was trying to save and restore the
position of the "view". IOW, I'm not even touching the cursor (anymore).

For reference, here is the code thats under the button :

;-- Get the current scrollpos location
call SendMessageA,[@@hWnd],EM_GETSCROLLPOS, 0, ebx

;-- go to that same location
call SendMessageA,[@@hWnd],EM_SETSCROLLPOS, 0, ebx

(some debugging-output snipped)

> If you do as above but end up with SelStart (cursor pos)
> several lines away, then it will jump.

I start with the cursor in the view. When I than click the button the view
jumps /away/ from it, in the direction of the start of the file.

Looking at the vertical scrollbar it jumps to a position halfway between the
current position an the top of the text. Scrolling the view using that
scrollbar works normally.

I have absolutily no idea what is happening. :-(

Regards,
Rudy Wieser

Re: riched20 - save and load cursor position (Newyana2)

<u6an70$1a85r$1@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6274&group=alt.windows7.general#6274

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: Newyana2@invalid.nospam (Newyana2)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Tue, 13 Jun 2023 17:31:15 -0400
Organization: To protect and to server
Lines: 59
Message-ID: <u6an70$1a85r$1@paganini.bofh.team>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team> <u6a2v6$3kuq1$2@dont-email.me> <u6af78$19dc2$1@paganini.bofh.team> <u6ajiv$3n1g7$1@dont-email.me>
Injection-Date: Tue, 13 Jun 2023 21:31:12 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1384635"; posting-host="YqKngTRkOayeCX1S/e7lbw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:nI8Tz67RKysIMwYJBoU8LOhkkvE5Ynvbggn898m8jsw=
X-Notice: Filtered by postfilter v. 0.9.3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
 by: Newyana2 - Tue, 13 Jun 2023 21:31 UTC

"R.Wieser" <address@is.invalid> wrote
| | > Did you also save and reset the SelStart position?
| | No. Why should I ?
| |
| Ehhrrmmm... I said I saved the /cursor/ position, but as you probably
have
| noticed fromk the used EM_xxx messages, I was trying to save and restore
the
| position of the "view". IOW, I'm not even touching the cursor (anymore).
| | For reference, here is the code thats under the button :
| | ;-- Get the current scrollpos location
| call SendMessageA,[@@hWnd],EM_GETSCROLLPOS, 0, ebx
| | ;-- go to that same location
| call SendMessageA,[@@hWnd],EM_SETSCROLLPOS, 0, ebx
| | (some debugging-output snipped)
| | > If you do as above but end up with SelStart (cursor pos)
| > several lines away, then it will jump.

The button? You click a button to run the test?
I don't know whether that might affect it, since it takes
focus from that window. But I'm not really understanding
what you're doing, or why you need a button.

GETSCROLLPOS is not the same as cursor position.
Cursor position is EM_EXGETSEL and EM_EX_SETSEL.
It's a CHARRANGE that describes the selection offset in
characters and the selection length. So, for example,
if you send EX_SETSEL with 100, 100 then you'll put the
cursor at the 100th character with no selection length.

SCROLLPOS is the scrolled position of the RichEdit window
in relation to the upper left corner.

How about if you just do the operation you want without
the button? In other words, do what you actually want to
do with the text. Say, for example, that you're going to
change the font of some words and the color of others. Then
you get your cursor point and scrollpoint, you lock the window,
you do your changes, you reset scroll and cursor, and finally
you unlock. Not via a button by via code. If you have to
use the button then you might need to always track cursor
and scroll positions, so that you know where they were when
the RE loses focus.

If you change the actual text then of course you'll need to
account for that. For example, if the cursor is at char 542 and
you remove the first 100 characters, then 542 will be a
different position in the text and a different line will be the line
where you were before.

Re: riched20 - save and load cursor position (Newyana2)

<u6bm1f$3ul0l$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6277&group=alt.windows7.general#6277

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Wed, 14 Jun 2023 08:16:57 +0200
Organization: A noiseless patient Spider
Lines: 99
Message-ID: <u6bm1f$3ul0l$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team> <u6a2v6$3kuq1$2@dont-email.me> <u6af78$19dc2$1@paganini.bofh.team> <u6ajiv$3n1g7$1@dont-email.me> <u6an70$1a85r$1@paganini.bofh.team>
Injection-Date: Wed, 14 Jun 2023 06:17:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2d77e2562f34547fad651fefdb1e0987";
logging-data="4150293"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Z98khC2Ed/Ky5zzxkLvxSd1sQIEs2P8RHFqhP0o2Vgw=="
Cancel-Lock: sha1:LgskOOLarQRbqn8hzcvxF3w9gCQ=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Wed, 14 Jun 2023 06:16 UTC

Newyana2,

> The button? You click a button to run the test?

Yes. Exactly because its a test.

> I don't know whether that might affect it, since
> it takes focus from that window.

I moved it from the WM_INITDIALOG code to in a WM_COMMAND bit of code (for
the buttons event) - as a control might not be fully initialized in
WM_INITDIALOG, skewing the result.

> But I'm not really understanding what you're doing,

Currently ? Trying to figure out what causes that jump.

Later on ? Use it to save the current "view" position when I close the
program, so that it can be restored next time I open it.

> or why you need a button.

I needed a way to get those two lines of code executed somehow and I wanted
to remove as much as non-essential code as possible (the actual saving on
close and loading on opening the program) so it could not interfere (read:
cause the problem).

> GETSCROLLPOS is not the same as cursor position.
> Cursor position is EM_EXGETSEL and EM_EX_SETSEL.

Yes, that was my mistake in naming the problem. Its about saving/restoring
the views position, not the cursor.

> SCROLLPOS is the scrolled position of the RichEdit window
> in relation to the upper left corner.

I would have thought so too (reading the MSDN documentation), but here I am,
with two lines of code which do not do what thay are supposed to do. :-(

> How about if you just do the operation you want without
> the button? In other words, do what you actually want to
> do with the text.

That is what I started with and where I noticed the problem. From that I
went into "bug hunting mode", stripping as much irrelevant-to-the-problem
code as I could while keeping the problem itself. Its how I ended up with
the two lines I posted.

> If you change the actual text then of course you'll need to
> account for that.

:-) I'm aware of that, thank you.

Again, my code is now retrieving the views current location and than telling
it to move *to that same position*. IOW, the view should not move at all.
Yet, it does. :-(

Extra info:
I mentioned that the view jumps to a position roughly halfway the distance
between its current position and the top of the text. Subsequent presses
of the button repeated that effect, roughly halving the distance every time.
IOW, its not an offset problem.

I also turned the whole thing upside-down by setting the views location to a
specified one, and than ask where it thought it was.

set get
----- ----
500 -> 159
12000 -> 3811
21000 -> 6669

The funny thing is that when I divide the latter by the former the factor is
the same every time : 0.31757.

Holdup, let me try something ....

I just "compiled" the program again, but removed the (dialog definition)
line specifying the dialogs default font and size. The "get" result
changed. Why ? Beats me.

I than also told the RichEdit control to load plain text (instead of RTF
text, which uses several font sizes). The "get" result again changed.

IOW, *something* is messing with the "get" result, and it ain't me. <phew!>

To be absolutily clear about it, the RichEdit control gets created and
filled with text /way/ before I press the "test" button. And the code
behind that button only contains (besides some debugging output) the
EM_GETSCROLLPOS and EM_SETSCROLLPOS commands. No "funny stuff" of any
kind.

Regards,
Rudy Wieser

Re: riched20 - save and load cursor position (Newyana2)

<u6c2cs$2j7$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6279&group=alt.windows7.general#6279

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Wed, 14 Jun 2023 11:47:41 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <u6c2cs$2j7$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team> <u6a2v6$3kuq1$2@dont-email.me> <u6af78$19dc2$1@paganini.bofh.team> <u6ajiv$3n1g7$1@dont-email.me> <u6an70$1a85r$1@paganini.bofh.team> <u6bm1f$3ul0l$1@dont-email.me>
Injection-Date: Wed, 14 Jun 2023 09:48:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2d77e2562f34547fad651fefdb1e0987";
logging-data="2663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eRVv+Rpf4/CEnjO9XGq4DHvMSmOZ3/6h16Go+HMy1Hw=="
Cancel-Lock: sha1:tiTLYa7tGJU1P7tV/TWwE7th5sU=
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Wed, 14 Jun 2023 09:47 UTC

Newyana2,

> ... I wanted to remove as much as non-essential code as possible (the
> actual saving on close and loading on opening the program) so it could
> not interfere (read: cause the problem).

Just now I realized that I applied some extra settings to the RichEdit
control, and disabled all of it. As a result the "set" and "get" started to
match. Victory ! (even though not all of the RTF file gets loaded)

.... well, not quite : what's causing it ?

It turns out that when use EM_EXLIMITTEXT (so I can load more than 64K of
RTF) it starts to happen. When I set it to something like 0x50000 the "set"
and "get" values start to get different, with the difference becoming larger
the higer that the EM_EXLIMITTEXT value is.

Do I have any idea why that its happening ? Nope. Is it in any way
mentioned on the MSDN webpage explaining EM_EXLIMITTEXT ? Also nope.

Regards,
Rudy Wieser

Re: riched20 - save and load cursor position (Newyana2)

<u6cask$1k99e$1@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6280&group=alt.windows7.general#6280

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: Newyana2@invalid.nospam (Newyana2)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Wed, 14 Jun 2023 08:13:11 -0400
Organization: To protect and to server
Lines: 36
Message-ID: <u6cask$1k99e$1@paganini.bofh.team>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team> <u6a2v6$3kuq1$2@dont-email.me> <u6af78$19dc2$1@paganini.bofh.team> <u6ajiv$3n1g7$1@dont-email.me> <u6an70$1a85r$1@paganini.bofh.team> <u6bm1f$3ul0l$1@dont-email.me> <u6c2cs$2j7$1@dont-email.me>
Injection-Date: Wed, 14 Jun 2023 12:13:09 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1713454"; posting-host="YqKngTRkOayeCX1S/e7lbw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:9x49fJzjDGNqhBsEiGfdD4koigY9GN1GTM+XPA+gLms=
X-Notice: Filtered by postfilter v. 0.9.3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
 by: Newyana2 - Wed, 14 Jun 2023 12:13 UTC

"R.Wieser" <address@is.invalid> wrote

| It turns out that when use EM_EXLIMITTEXT (so I can load more than 64K of
| RTF) it starts to happen. When I set it to something like 0x50000 the
"set"
| and "get" values start to get different, with the difference becoming
larger
| the higer that the EM_EXLIMITTEXT value is.
| | Do I have any idea why that its happening ? Nope. Is it in any way
| mentioned on the MSDN webpage explaining EM_EXLIMITTEXT ? Also nope.
|

I use 8000000 (decimal). I don't remember how I came up
with that number. But I doubt it's doing anything but changing
the theoretical height of the window. Something else seems
to be affecting the jumping. As my father used to say when no
one would admit to breaking something, "I guess a ghost must
have done it." :)

If it were me I'd lock the window, load the file, set the
cursor position, then unlock. The cursor is automatically
scrolled into view, so you don't need the scroll position.
And scroll position could change, as you say, with font
changes. But cursor position won't change because it's
a character offset rather than a window display setting.

If you want to keep doing it as you're doing it then maybe
start eliminating factors more. For instance, you could load
the file from within code. I'm not clear about the dialogue.
You're making your own window? If you're calling GetOpenFileName
then the dialogue window is gone when you get the file path,
so it shouldn't be a factor. But if you're making your own window
or sub-frame I suppose it could affect where the focus goes.

Re: riched20 - save and load cursor position (Newyana2)

<u6cd7h$17t5$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6281&group=alt.windows7.general#6281

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Wed, 14 Jun 2023 14:52:41 +0200
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <u6cd7h$17t5$1@dont-email.me>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team> <u6a2v6$3kuq1$2@dont-email.me> <u6af78$19dc2$1@paganini.bofh.team> <u6ajiv$3n1g7$1@dont-email.me> <u6an70$1a85r$1@paganini.bofh.team> <u6bm1f$3ul0l$1@dont-email.me> <u6c2cs$2j7$1@dont-email.me> <u6cask$1k99e$1@paganini.bofh.team>
Injection-Date: Wed, 14 Jun 2023 12:53:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2d77e2562f34547fad651fefdb1e0987";
logging-data="40869"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PvQSwr6vQn/gdzWiRd58z2H9mAcK8RY13X1IgorwnVA=="
Cancel-Lock: sha1:c7Ryvx0MN3IJ/7mkpjA3czPSuI4=
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Wed, 14 Jun 2023 12:52 UTC

Newyana2,

> But I doubt it's doing anything but changing
> the theoretical height of the window

I used different numbers to EM_EXLIMITTEXT, set a constant position using
EM_SETSCROLLPOS and saw the EM_GETSCROLLPOS return different values. If its
not /the/ cause than it still influences it - even though, as you remarked,
it should not have to do anything with it.

> If it were me I'd lock the window, load the file, set the
> cursor position, then unlock.

Its currently not about restoring the views position (I used another approch
which seems to work alright, even if a bit clumsy), but about determining if
I should remove the EM_GET- and EM_SETSCROLLPOS from the list of usable
messages - so I won't run into something similar in the future.

By the way: I found, while googeling, a few other messages about having the
same problem. None of them mentioned a solution to it.

> If you want to keep doing it as you're doing it then maybe
> start eliminating factors more.

Such as ?

> For instance, you could load the file from within code.

I'm already doing that. Starting a program after each small edit (trying to
locate the problem) and than having to load the same file over-and-over
again quickly becomes tiresome.

Besides, bughunting should not be done on something you're (unknowingly,
mistakingly) changing the parameters to. IOW, for/during my testing the
filename (and (thus) the loaded text) is a constant.

> I'm not clear about the dialogue. You're making your own window?

You always do. :-) In my case I describe a dialog in a resource file, and
than load that resource using "call DialogBoxParamA,0, IDC_DIALOG,0,offset
DialogCB,0"

Also, as mentioned, the reason why I found EM_EXLIMITTEXT to be involved is
because I effectivily disabled /everytyhing/. And that was enough to make
the problem disappear - on the cost of only seeing a partially-loaded RTF
file.

If you want to see the full sourcecode (or certain parts thereof) you only
have to ask. I have no problem with posting it (here and/or to an email
addres).

Remark: Its in Assembly (should not be too hard to read, but you never
know).

Regards,
Rudy Wieser

Re: riched20 - save and load cursor position (Newyana2)

<u6cr6r$1m04v$1@paganini.bofh.team>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6283&group=alt.windows7.general#6283

  copy link   Newsgroups: alt.windows7.general comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: Newyana2@invalid.nospam (Newyana2)
Newsgroups: alt.windows7.general,comp.os.ms-windows.programmer.win32
Subject: Re: riched20 - save and load cursor position (Newyana2)
Date: Wed, 14 Jun 2023 12:51:41 -0400
Organization: To protect and to server
Lines: 23
Message-ID: <u6cr6r$1m04v$1@paganini.bofh.team>
References: <u5k04f$9e85$1@dont-email.me> <u5kh06$1qg21$2@paganini.bofh.team> <u5l20b$clfr$1@dont-email.me> <m87s7ili94tbpai1sg2h070gr5ldij16d0@4ax.com> <u5l8f6$de5o$1@dont-email.me> <u5lg0a$1tpem$1@paganini.bofh.team> <u5mjr1$lnt9$1@dont-email.me> <u5n69r$282eu$1@paganini.bofh.team> <u6987a$3hfvr$1@dont-email.me> <u69prm$175cq$1@paganini.bofh.team> <u6a2v6$3kuq1$2@dont-email.me> <u6af78$19dc2$1@paganini.bofh.team> <u6ajiv$3n1g7$1@dont-email.me> <u6an70$1a85r$1@paganini.bofh.team> <u6bm1f$3ul0l$1@dont-email.me> <u6c2cs$2j7$1@dont-email.me> <u6cask$1k99e$1@paganini.bofh.team> <u6cd7h$17t5$1@dont-email.me>
Injection-Date: Wed, 14 Jun 2023 16:51:39 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1769631"; posting-host="YqKngTRkOayeCX1S/e7lbw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:I630MqNrwNKoQfWnVW+Vvdls+U9onxb7+e27a2b4KkA=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-Notice: Filtered by postfilter v. 0.9.3
 by: Newyana2 - Wed, 14 Jun 2023 16:51 UTC

"R.Wieser" <address@is.invalid> wrote

| > I'm not clear about the dialogue. You're making your own window?

| You always do. :-) In my case I describe a dialog in a resource file, and
| than load that resource using "call DialogBoxParamA,0, IDC_DIALOG,0,offset
| DialogCB,0"

I've never used that. I use GetOpenFileName, to
give me a system file-open window with all the fixings.

|
| If you want to see the full sourcecode (or certain parts thereof) you only
| have to ask. I have no problem with posting it (here and/or to an email
| addres).
| That might be good. I'm having trouble following. I thought
you said the problem was with loading a file, and now you say
it isn't. So I don't really understand what you're doing. If I
can make out the code then I might be able to run my own test.


computers / alt.windows7.general / Re: Open a random textfile asif its RTF ?

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor