Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag-and-drop broken on windows with 'alwaysOnTop' enabled #812

Closed
txmod opened this issue Apr 8, 2013 · 2 comments
Closed

Drag-and-drop broken on windows with 'alwaysOnTop' enabled #812

txmod opened this issue Apr 8, 2013 · 2 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead os: macOS
Milestone

Comments

@txmod
Copy link

txmod commented Apr 8, 2013

I'm using SC 3.6.3 with Qt on OS X 10.7.4.
If a window is alwaysOnTop then dragging to a DragSink and DragBoth doesn't work.

Test code:
(
// Window 1 - window is alwaysOnTop
w = Window.new("AlwaysOnTop, dragging to DragBoth or DragSink is broken", Rect(10, 700, 500, 300)).front;
w.alwaysOnTop_(true);

t = StaticText(w, Rect(10, 10, 100, 20));
t.string = "DragBoth";
a = DragBoth(w, Rect(120, 10, 150, 20)).align_(\center).background_(Color.rand);
a.object = 999.rand;

t = StaticText(w, Rect(10, 40, 100, 20));
t.string = "DragSource";
b = DragSource(w, Rect(120, 40, 150, 20)).align_(\center).background_(Color.rand);
b.object=999.rand;

t = StaticText(w, Rect(10, 70, 100, 20));
t.string = "DragSink";
c = DragSink(w, Rect(120, 70, 150, 20)).align_(\center).background_(Color.rand);
c.object=999.rand;

// Window 2 - normal window
w = Window.new("Normal window, dragging works ok", Rect(610, 700, 500, 300)).front;

t = StaticText(w, Rect(10, 10, 100, 20));
t.string = "DragBoth";
a = DragBoth(w, Rect(120, 10, 150, 20)).align_(\center).background_(Color.rand);
a.object = 999.rand;

t = StaticText(w, Rect(10, 40, 100, 20));
t.string = "DragSource";
b = DragSource(w, Rect(120, 40, 150, 20)).align_(\center).background_(Color.rand);
b.object=999.rand;

t = StaticText(w, Rect(10, 70, 100, 20));
t.string = "DragSink";
c = DragSink(w, Rect(120, 70, 150, 20)).align_(\center).background_(Color.rand);
c.object=999.rand;
)

@scztt scztt modified the milestone: 3.7 Apr 18, 2015
@adcxyz
Copy link
Contributor

adcxyz commented Apr 20, 2015

works here, current 3.7a debug, 10.10.1.

@scztt
Copy link
Contributor

scztt commented May 24, 2015

thx for testing @adcxyz - appears fixed for me too. closing.

@scztt scztt closed this as completed May 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead os: macOS
Projects
None yet
Development

No branches or pull requests

3 participants