[Ohrrpgce] SVN: teeemcee/12556 Properly skip template slices when refreshing children of panel/layout/s

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Thu Oct 21 15:51:13 PDT 2021


teeemcee
2021-10-21 15:51:05 -0700 (Thu, 21 Oct 2021)
804
Properly skip template slices when refreshing children of panel/layout/select/grid slices

Slice->ChildRefresh's childindex argument now is the sibling index not counting
templates.

Added include_templates arg to SliceIndexAmongSibling (default true, e.g. as
used by "slice child index").

In particular this means that Select slice indices need to computed while
excluding templates; if a template is parented to a Select slice then passing
the result of "slice child index(ch)" for any child ch after the template to
"set select slice index" won't work! I'm not sure what to do about that, but
it's such an edge case that it's likely best to keep things simple by doing
nothing.

Also, this moves where the checks to skip template slices happens, e.g. before
calling DrawSliceRecurse instead of in it.
---
U   wip/sliceedit.bas
U   wip/slices.bas
U   wip/slices.bi



More information about the Ohrrpgce mailing list