SOLVED Grabing a rectangle that has "disapeared" from View.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: heatherlaine, Klaus, FourthWorld, kevinmiller

Post Reply
teriibi
Posts: 252
Joined: Mon Nov 13, 2017 3:49 pm
Location: Bolivia

SOLVED Grabing a rectangle that has "disapeared" from View.

Post by teriibi » Sat Mar 03, 2018 10:11 pm

HI,

How can one "Grab" or display again a "Group/ed rectangle + widget" that has disapeared from the viewable Zone of my Stack.

I tried setting Loc and Top params to 0 so that it is displayed nearby other existing sections..but still.
Also maximized the Stack...but nothin.
Its not deleted since I can see its Script code and modify it. Its just not viewable... :wink:

thanks
Last edited by teriibi on Mon Mar 05, 2018 9:12 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2515
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Grabing a rectangle that has "disapeared" from View.

Post by richmond62 » Sat Mar 03, 2018 10:25 pm

Maybe the VISIBLE of the rectangle has been set to 'false'?

SparkOut
Posts: 1743
Joined: Sun Sep 23, 2007 4:58 pm

Re: Grabing a rectangle that has "disapeared" from View.

Post by SparkOut » Sat Mar 03, 2018 11:42 pm

Maybe also try setting the layer to top

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2515
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Grabing a rectangle that has "disapeared" from View.

Post by richmond62 » Sun Mar 04, 2018 10:27 am

set the loc of field "LOSTFIELD" to the loc of stack "STAKK"

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2199
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Grabing a rectangle that has "disapeared" from View.

Post by jmburnod » Sun Mar 04, 2018 10:43 am

send select field "LOSTFIELD" from messages box
open inspector
check the rect (it is possible to have a control 2X2 pixels), blend level etc...

bogs
Posts: 1819
Joined: Sat Feb 25, 2017 10:45 pm

Re: Grabing a rectangle that has "disapeared" from View.

Post by bogs » Sun Mar 04, 2018 2:41 pm

Among the many ways listed, you could go to the project browser, right click on the object, and choose properties.

Once in properties, you can do pretty much anything you need to, relayer it, change its location relative to the card, change its visible, etc.
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1686
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Grabing a rectangle that has "disapeared" from View.

Post by [-hh] » Sun Mar 04, 2018 10:48 pm

As you describe it the reason may be that the lockloc of your group is true.
If so then simply

Code: Select all

-- assume the name of the group is "G"
-- assume the name of the rectangle graphic is "R"
set the lockloc of grp "G" to false
start editing group "G"
set the topleft of graphic "R" to (0,0)
stop editing group"G"
set the lockloc of grp "G" to true -- if you wish
shiftLock happens

teriibi
Posts: 252
Joined: Mon Nov 13, 2017 3:49 pm
Location: Bolivia

Re: Grabing a rectangle that has "disapeared" from View.

Post by teriibi » Mon Mar 05, 2018 9:12 pm

Tks, it worked !
Cant say which part actually made it work again. I guess the set lockloc to false and retrying loc 0,0 did the job.
Tks..
Would be cool to have some kind of Global Map of object & a Zoom-in zoom-out way easely view "lost" items, nop ?
:wink:

bogs
Posts: 1819
Joined: Sat Feb 25, 2017 10:45 pm

Re: SOLVED Grabing a rectangle that has "disapeared" from View.

Post by bogs » Mon Mar 05, 2018 11:38 pm

teriibi wrote:
Mon Mar 05, 2018 9:12 pm
Would be cool to have some kind of Global Map of object & a Zoom-in zoom-out way easely view "lost" items, nop ? :wink:
Um, what?
Image

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5396
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: SOLVED Grabing a rectangle that has "disapeared" from View.

Post by dunbarx » Tue Mar 06, 2018 2:44 am

Maybe he is asking for a catalog of the locs and rects of all open controls?

This is easy to make yourself..

Craig

bogs
Posts: 1819
Joined: Sat Feb 25, 2017 10:45 pm

Re: SOLVED Grabing a rectangle that has "disapeared" from View.

Post by bogs » Tue Mar 06, 2018 3:22 am

Could be, all I got from what he wrote was he would like the application browser or project browser, either of which allows you to pick any control in your project. I'm sure I didn't get the zoom part at all, but I know there is a short cut for magnifying images - Magnify image with paint tool - Control-right-click or Command-click on mac.
Image

teriibi
Posts: 252
Joined: Mon Nov 13, 2017 3:49 pm
Location: Bolivia

Re: SOLVED Grabing a rectangle that has "disapeared" from View.

Post by teriibi » Tue Mar 06, 2018 5:15 am

Yes, its more like Bogs describes it.
Its one of those tiny project browsers that shows you a global and visual representation of all your components in a small windows.
..you usualy have a darker small square that you can move arround.
After a selection operation.
The small square then displays the corresponding element at full size on your Main editor Window.
(Its often used in Visual DB creating tools when you have dozens of tables to work on)

bogs
Posts: 1819
Joined: Sat Feb 25, 2017 10:45 pm

Re: SOLVED Grabing a rectangle that has "disapeared" from View.

Post by bogs » Tue Mar 06, 2018 5:37 am

Ok, but I'm curious what that would gain you over the project browser? From what your describing, it sounds like you'd have even more palettes open, instead of one tree view style overview of your project.
Selection_007.png
If I'm missing something, please feel free to illuminate me.
Image

teriibi
Posts: 252
Joined: Mon Nov 13, 2017 3:49 pm
Location: Bolivia

Re: SOLVED Grabing a rectangle that has "disapeared" from View.

Post by teriibi » Tue Mar 06, 2018 1:16 pm

hmm, I think it would be different in two aspect:
1) its a visual tool, you see tiny "designs" of object, you dont have to read lines...
2) it only includes the graphic or visual components of the stack, not everything it has.
i.e. in a stack : all buttons, Svg, squares etc...
Its meant for a quick acesss to the Visual Design "parts" of the stack.

bogs
Posts: 1819
Joined: Sat Feb 25, 2017 10:45 pm

Re: SOLVED Grabing a rectangle that has "disapeared" from View.

Post by bogs » Tue Mar 06, 2018 3:55 pm

I dunno, both of those still sound just like either the AP or PB. First item in the PB is an icon representation of the object, you don't have to read anything to tell it is a field, or button, or whatever, but how on earth you'd tell from seeing just a picture *which* control your talking about if there is no indication in text is beyond me.

The AB again, breaks down cards into objects.
Selection_003.png
On one side you have the stack / card / audio and video file representations, on the other is the breakdown of objects graphically.

Both of these are 'visual' tools, both let you act on the objects in your project, and both show you all the things you mentioned, so I guess I just don't get it. That is not unusual though :)
Image

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”