discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gorm and NSMatrix dragging


From: Graham Lee
Subject: Gorm and NSMatrix dragging
Date: Sun, 8 Jan 2017 12:02:14 -0700

Hi all,

how do I drag a control's resize handle in Gorm to build an NSMatrix like I could in Interface Builder? I have discovered that normal dragging resizes (expected), and so does alt-drag, ctrl-drag, shift-drag, alt-shift-drag, ctrl-shift-drag and ctrl-alt-shift-drag. Based on this bug report (https://savannah.gnu.org/bugs/?36096), I would expect alt-drag or ctrl-shift-alt-drag to work, but neither does. I have confirmed that my window manager is not intercepting alt-drag to do its own thing.

What is the expected working combination, and how might I diagnose why it doesn't work (or where might I go to patch it to choose something that does)? What I looked for was the key modifier on the mouse event being inspected in -[GormViewWithSubviewsEditor handleMouseOnKnob:ofView:withEvent:] but it isn't checked at all. It _is_ checked in GormMatrixEditor, but obviously by that point you already have a matrix. I'm expecting the same behaviour as IB, where if I drag a button onto a window then alt-drag the button, I get a matrix of buttons..

A partial workaround is to drag an existing matrix (i.e. the radio control) from the palette into the window, then ctrl-shift-option-drag does change the number of cells in the matrix. However, I don't see how to edit the prototype cell to look/act like a normal button rather than a radio button, so that doesn't suit my need.

Thanks,
Graham.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]