Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Controls auto-grouping (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Simpel REALSQLDatabase question
Next thread: Mac Authorization


Reading *CSV Files versus *.Txt Files   -   Claude Stone
  Controls auto-grouping   -   cb
   Re: Controls auto-grouping   -   Joe Strout
   Re: Controls auto-grouping   -   Roger Clary
   Re: Controls auto-grouping   -   cb

Controls auto-grouping
Date: 01.08.08 14:24 (Fri, 1 Aug 2008 09:24:25 -0400)
From: cb
Forgive me if this is a basic question but I am coming back into
using RB after many years, and there have been lots of changes.

I've got a running problem where controls seem to auto-group if they
fully overlap. ie: right now I have a push button that is fully
inside the border of a canvas. If I select the push button, the
canvas gets a thick red border around it. The trouble is, if I do
something to the canvas (such as set visible = false), the same
happens to the push button. I don't want this.

I can't find any way to break the grouping other than moving the push
button back out of the borders of the canvas, which isn't possible as
my screen positioning requires the items to be where they are.

I'm sure there is a simple way to tell it not to group the two
controls, I just can't seem to figure it out.

Anyone want to bring me up to speed on this "new" feature (new to me
at least as the last version I was using was 5.?)

-chris
<www.mythtech.net>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Controls auto-grouping
Date: 01.08.08 15:13 (Fri, 1 Aug 2008 08:13:04 -0600)
From: Joe Strout
On Aug 1, 2008, at 7:24 AM, cb wrote:

> I've got a running problem where controls seem to auto-group if they
> fully overlap. ie: right now I have a push button that is fully
> inside the border of a canvas. If I select the push button, the
> canvas gets a thick red border around it.

Right. The canvas is the parent of the pushbutton.

> The trouble is, if I do something to the canvas (such as set visible
> = false), the same happens to the push button. I don't want this.
>
> I can't find any way to break the grouping other than moving the
> push button back out of the borders of the canvas, which isn't
> possible as my screen positioning requires the items to be where
> they are.

theButton.Parent = Nil

Best,
- Joe

Re: Controls auto-grouping
Date: 01.08.08 15:15 (Fri, 1 Aug 2008 10:15:57 -0400)
From: Roger Clary

On Aug 1, 2008, at 9:24 AM, cb wrote:

> I'm sure there is a simple way to tell it not to group the two
> controls, I just can't seem to figure it out.

In the open event of your pushbutton, place...
me.parent = Nil



Roger M. Clary
Class One Software
http://www.classonesoftware.com
<email address removed>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Controls auto-grouping
Date: 01.08.08 15:24 (Fri, 1 Aug 2008 10:24:13 -0400)
From: cb
Thanks Roger and Joe, that solved it.

Also, now that I know it is a Parent/Child issue, I was able to find
the info in the users guide and now have a little better
understanding what is going on.

-chris
<www.mythtech.net>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>