Cannot drag stack with controls set to empty offscreen
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Cannot drag stack with controls set to empty offscreen
I just noticed your name is "5imon"
I was making a general point. On my Mac, unless I am missing something, a windowShaped stack has no means of being moved about with the mouse. There is no titlebar with which to grab it. Decorations, for me, do not display in such a stack, and without a titlebar, no go.
I am doing something wrong, or it cannot be done. Somehow I think it isn't so much a matter of my doing something wrong as it is that I am not doing something right.
Craig
I was making a general point. On my Mac, unless I am missing something, a windowShaped stack has no means of being moved about with the mouse. There is no titlebar with which to grab it. Decorations, for me, do not display in such a stack, and without a titlebar, no go.
I am doing something wrong, or it cannot be done. Somehow I think it isn't so much a matter of my doing something wrong as it is that I am not doing something right.
Craig
Re: Cannot drag stack with controls set to empty offscreen
Hi Craig,
take Simons script, put it into the script of any card and click and drag.
Will also work in a stack WITH decorations.
Best
Klaus
take Simons script, put it into the script of any card and click and drag.
Will also work in a stack WITH decorations.

Best
Klaus
Re: Cannot drag stack with controls set to empty offscreen
Klaus.
I know there are ways to do this as a kluge. Early on I posted:
You could always require that the screenMouseLoc be near the top of the stack. Not a problem. Whatever.
I was wondering if setting the windowShape of a stack REQUIRED such a thing, whatever that thing is. And whether it was just me, that no visible decorations were displayed in a windowShaped stack.
Craig
I know there are ways to do this as a kluge. Early on I posted:
Code: Select all
on mouseMove
if the mouse is down then set the loc of this stack to the screenMouseLoc
end mouseMove
I was wondering if setting the windowShape of a stack REQUIRED such a thing, whatever that thing is. And whether it was just me, that no visible decorations were displayed in a windowShaped stack.
Craig
Re: Cannot drag stack with controls set to empty offscreen
Setting a windowshape removes of course the decorations without us having to do this explicitely.
So, yes "setting the windowShape of a stack REQUIRES such a thing" in any case, if you mean this kind of script with "such a thing".
So, yes "setting the windowShape of a stack REQUIRES such a thing" in any case, if you mean this kind of script with "such a thing".
Re: Cannot drag stack with controls set to empty offscreen
Klaus.
OK. Not just me this time.
It makes sense, I just never used a windowShaped stack. Probably useful to include a note in the dictionary, that you cannot directly move such a stack with the mouse at all.
You have to ask how to do it on the forum
Craig
OK. Not just me this time.

It makes sense, I just never used a windowShaped stack. Probably useful to include a note in the dictionary, that you cannot directly move such a stack with the mouse at all.
You have to ask how to do it on the forum
Craig
Re: Cannot drag stack with controls set to empty offscreen
You mean like ths?
dictionary wrote: Important! The border and title bar of a stack are not shown if the stack's windowShape is set. This means you will need to provide methods of dragging and closing the window if you want the user to be able to do these tasks.

-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: Cannot drag stack with controls set to empty offscreen
Pretty obvious as I discovered with RunRev 2.0.1 and windowShape a while ago.This means you will need to provide methods of dragging and closing the window if you want the user to be able to do these tasks.
-
Re: Cannot drag stack with controls set to empty offscreen
If I recall correctly there is some "copy me" code for this in the "bouncy" stack that is included in the samples since as long as I know ago. I think it was always a good diving in place for new starters, even if it wasn't the most basic of techniques, it introduced some concepts and was fun frivolous.
Re: Cannot drag stack with controls set to empty offscreen
EXACTLY. I have always been way ahead of my time.You mean like ths?
Craig
Re: Cannot drag stack with controls set to empty offscreen
Um, which time did you mean, exactly?
Last edited by bogs on Wed Jun 24, 2020 8:46 pm, edited 1 time in total.

-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: Cannot drag stack with controls set to empty offscreen
I posted your code into the image "JF" in my "Frog" stack, an,on mouseMove
if the mouse is down then set the loc of this stack to the screenMouseLoc
end mouseMove
as long as the mouse-when-down is inwith the image the stack is draggable.
- Attachments
-
- FROG.livecode.zip
- Modified stack.
- (14.06 KiB) Downloaded 224 times
Re: Cannot drag stack with controls set to empty offscreen
Silicon, Bogs.
I mean I am not surprised that what seemed like a good idea to me was already in the literature, perhaps for centuries.
Craig
I mean I am not surprised that what seemed like a good idea to me was already in the literature, perhaps for centuries.
Craig
Re: Cannot drag stack with controls set to empty offscreen
Bionic implants, Craig.... we really have to cure your ability to apply exponential numbers for common figures (decades, anyway) 

