[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] Please make (d-NextSelectedObject) work for multi-sta
Re: [Denemo-devel] Please make (d-NextSelectedObject) work for multi-staff selections
Sun, 21 Feb 2010 09:35:31 +0100
What exactly does d-NextSelectedObject do?
It looks like that its a MoveCursorRight that returns #t if the next item is
selected and #f if not, but it moves the cursor right NEVERTHELESS!
The cursor should not move outside the selection but stay inside and return #f
On Sat, 20 Feb 2010 09:09:39 +0000
Richard Shann <address@hidden> wrote:
> On Sat, 2010-02-20 at 00:41 +0100, Nils wrote:
> > (d-NextSelectedObject) does only work for one staff. It should move to the
> > first selected object in the next staff if needed.
> > Since (d-NextSelectedObject) is a primitive-procedure and not Scheme I
> > cannot do it myself.
> I think NextSelectedObject does cursor right provided the cursor remains
> inside the selected region returning #t if the cursor moves else #f.
> That is a sensible, very primitive action.
> I suggest you create a new command script (command name could be
> NextSelectedObjectAllStaffs) which does (in pseudo coding)
> if (d-NextSelectedObject) return #t
> else do ; while (d-PrevSelectedObject) ;;; i.e. get cursor back to start on
> the current staff
> if GoToStaffDown ;;; (or whatever the staff down is called)
> return (d-NextSelectedObject)
> else return #f ;;; perhaps you would want to re-position the cursor at this
> This may need some working on, but better work it out in scheme than in