Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Packages should build-depend on what they should build-depend. -- Santiago Vila on debian-devel


devel / comp.os.ms-windows.programmer.win32 / Re: Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.

SubjectAuthor
* Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.R.Wieser
`* Re: Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.JJ
 `- Re: Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.R.Wieser

1
Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.

<sm320b$l33$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=233&group=comp.os.ms-windows.programmer.win32#233

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.
Date: Fri, 5 Nov 2021 11:45:10 +0100
Organization: Aioe.org NNTP Server
Lines: 27
Message-ID: <sm320b$l33$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="21603"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Priority: 3
X-Notice: Filtered by postfilter v. 0.9.2
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Fri, 5 Nov 2021 10:45 UTC

Hello all,

Using XPsp3 I've got a SysListView32 element which I have given the LVS_ICON
and LVS_AUTOARRANGE settings. The thing is that even though I can see that
LVM_ADDITEM increments the items indices as expected what gets displayed is
rather random in its ordering.

I've tried to google the problem/cause/solution, but can't seem to find
anything (other than MS saying "Icons are automatically kept arranged in
icon and small icon view.")

Although I've found a "solution" by only enabeling the LVS_AUTOARRANGE
setting *after* I've loaded the items, I'm not at all sure if this willstick
for as long as the program stays open.

In other words : I've got no idea when the autoarrange will again activate
(on insertion ? Deletion ? Doesn't seem to on resizing, but it might ?)
and again make a mess of the items order.

Does anyone have some information on how/when autoarrange does its job and
get it to behave so the items stay in order as provided (thru LM_ADDITEM /
LVM_INSERITEM / others? )

Regards,
Rudy Wieser

Re: Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.

<zixohd3o2h0b.1872txu5rbyf5.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=235&group=comp.os.ms-windows.programmer.win32#235

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!I/f8KYUJ4AhjO+M8rEye2g.user.46.165.242.91.POSTED!not-for-mail
From: jj4public@gmail.com (JJ)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.
Date: Sat, 6 Nov 2021 19:57:49 +0700
Organization: Aioe.org NNTP Server
Message-ID: <zixohd3o2h0b.1872txu5rbyf5.dlg@40tude.net>
References: <sm320b$l33$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="52074"; posting-host="I/f8KYUJ4AhjO+M8rEye2g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: 40tude_Dialog/2.0.15.84
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Notice: Filtered by postfilter v. 0.9.2
 by: JJ - Sat, 6 Nov 2021 12:57 UTC

On Fri, 5 Nov 2021 11:45:10 +0100, R.Wieser wrote:

> Hello all,
>
> Using XPsp3 I've got a SysListView32 element which I have given the LVS_ICON
> and LVS_AUTOARRANGE settings. The thing is that even though I can see that
> LVM_ADDITEM increments the items indices as expected what gets displayed is
> rather random in its ordering.
>
> I've tried to google the problem/cause/solution, but can't seem to find
> anything (other than MS saying "Icons are automatically kept arranged in
> icon and small icon view.")
>
> Although I've found a "solution" by only enabeling the LVS_AUTOARRANGE
> setting *after* I've loaded the items, I'm not at all sure if this willstick
> for as long as the program stays open.
>
> In other words : I've got no idea when the autoarrange will again activate
> (on insertion ? Deletion ? Doesn't seem to on resizing, but it might ?)
> and again make a mess of the items order.
>
> Does anyone have some information on how/when autoarrange does its job and
> get it to behave so the items stay in order as provided (thru LM_ADDITEM /
> LVM_INSERITEM / others? )
>
> Regards,
> Rudy Wieser

It's just like the desktop's Auto Arrange. Meaning that, icons are always
(left side) arranged. LVS_AUTOARRANGE is not same as desktop's Align To
Grid.

Re: Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.

<sm6kiv$1boq$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=236&group=comp.os.ms-windows.programmer.win32#236

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: Listview LVS_ICON, LVS_AUTOARRANGE item ordering problem.
Date: Sat, 6 Nov 2021 20:00:00 +0100
Organization: Aioe.org NNTP Server
Lines: 31
Message-ID: <sm6kiv$1boq$1@gioia.aioe.org>
References: <sm320b$l33$1@gioia.aioe.org> <zixohd3o2h0b.1872txu5rbyf5.dlg@40tude.net>
Injection-Info: gioia.aioe.org; logging-data="44826"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-MSMail-Priority: Normal
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Notice: Filtered by postfilter v. 0.9.2
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Sat, 6 Nov 2021 19:00 UTC

JJ,

> It's just like the desktop's Auto Arrange. Meaning that, icons are always
> (left side) arranged.

Not quite. The default is "top side" (horizontal first) ordered, but you
can add the LVS_ALIGNLEFT flag to have it arrange "left side" (vertical
first).

> LVS_AUTOARRANGE is not same as desktop's Align To Grid.

Yes, I'm aware of that.

Alas, neither has anything to do with the ListView problem I described.

Mind you, it sometimes seems to work allright and all items are in the order
in which they where added to the ListView. I've got one program which
(currently!) seems to have no problem, and another which (now) every time
throws the items outof order.

The thing is that when I wait with setting the LVS_AUTOARRANGE until /after/
I've addded the items to the ListView the autoarranging (when I resize the
dialog and by it the ListView in it) seem to work flawlessly.

IOW, it looks like LVS_AUTOARRANGE doesn't like LVM_INSERTITEM (and perhaps
others too) very much.

Regards,
Rudy Wieser

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor