1. [Win32Lib] re-assign parent of control?

Is there a way to programmatically re-assign the parent of a control, for
instance a group control?

For instance, I have a bunch of controls which I want to put inside a
relatively small group, but only some of them at a time, selectively, and in
what would amount to be the same place in that group.  So if I used the IDE,
they would all "overlap" one another as I create them visually, which makes
it hard to deal with them.

So I'm thinking I could create a large "dummy" window, make as many groups
as I need for each individual set of controls, position the controls
similarly in each of those groups, and then on program activation re-assign
ALL those groups to the "main" group.  Then I could make each control or set
of controls selectively vis/invis as needed.

IF I can re-assign parentage.  Can I (how)?

Dan Moyer

new topic     » topic index » view message » categorize

2. Re: [Win32Lib] re-assign parent of control?

Hi Dan,

Look at the demo "visibility.exw" that comes with win32lib.
This might help you out....

Euman

----- Original Message ----- 
From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: "EUPHORIA LIST" <EUforum at topica.com>
Sent: Tuesday, November 18, 2003 6:59 PM
Subject: [Win32Lib] re-assign parent of control?


> 
> 
> Is there a way to programmatically re-assign the parent of a control, for
> instance a group control?
> 
> For instance, I have a bunch of controls which I want to put inside a
> relatively small group, but only some of them at a time, selectively, and in
> what would amount to be the same place in that group.  So if I used the IDE,
> they would all "overlap" one another as I create them visually, which makes
> it hard to deal with them.
> 
> So I'm thinking I could create a large "dummy" window, make as many groups
> as I need for each individual set of controls, position the controls
> similarly in each of those groups, and then on program activation re-assign
> ALL those groups to the "main" group.  Then I could make each control or set
> of controls selectively vis/invis as needed.
> 
> IF I can re-assign parentage.  Can I (how)?
> 
> Dan Moyer
> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: [Win32Lib] re-assign parent of control?

Euman,

Thanks, but looking at it quickly, it doesn't seem to RE-ASSIGN controls
from one parent to another?  That's what I need so I can use the IDE  to
position controls correctly in various groups, and then programmatically
re-assign them all to one group, where they'll overlap, and THEN select them
in sets to be vis/invis as needed.   Did I misunderstand what your example
does??

Dan Moyer


----- Original Message ----- 
From: "H.W Overman" <euman at bellsouth.net>
To: <EUforum at topica.com>
Sent: Tuesday, November 18, 2003 4:11 PM
Subject: Re: [Win32Lib] re-assign parent of control?


>
>
> Hi Dan,
>
> Look at the demo "visibility.exw" that comes with win32lib.
> This might help you out....
>
> Euman
>
> ----- Original Message ----- 
> From: "Dan Moyer" <DANIELMOYER at prodigy.net>
> To: "EUPHORIA LIST" <EUforum at topica.com>
> Sent: Tuesday, November 18, 2003 6:59 PM
> Subject: [Win32Lib] re-assign parent of control?
>
>
> > Is there a way to programmatically re-assign the parent of a control,
for
> > instance a group control?
> >
> > For instance, I have a bunch of controls which I want to put inside a
> > relatively small group, but only some of them at a time, selectively,
and in
> > what would amount to be the same place in that group.  So if I used the
IDE,
> > they would all "overlap" one another as I create them visually, which
makes
> > it hard to deal with them.
> >
> > So I'm thinking I could create a large "dummy" window, make as many
groups
> > as I need for each individual set of controls, position the controls
> > similarly in each of those groups, and then on program activation
re-assign
> > ALL those groups to the "main" group.  Then I could make each control or
set
> > of controls selectively vis/invis as needed.
> >
> > IF I can re-assign parentage.  Can I (how)?
> >
> > Dan Moyer
> >
> >
> > TOPICA - Start your own email discussion group. FREE!
> >
> >
>
>
> TOPICA - Start your own email discussion group. FREE!
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: [Win32Lib] re-assign parent of control?

Hello Dan,

I assumed you could create a "group control" of various controls then
set the "group" visible or invisible. I wasnt sure you needed to overlap
them. There is not a way that I know of to re-assign control id's after
they have been created by windows..although Im pretty sure I have ran
across such API before.

The best I can do is point you to the other "setvis.exw" as it contains
new commands for win32lib that sets up a container "so to speak" of
controls that can be switched on or off at random...

Euman

----- Original Message ----- 
From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: <EUforum at topica.com>
Sent: Tuesday, November 18, 2003 10:30 PM
Subject: Re: [Win32Lib] re-assign parent of control?


> 
> 
> Euman,
> 
> Thanks, but looking at it quickly, it doesn't seem to RE-ASSIGN controls
> from one parent to another?  That's what I need so I can use the IDE  to
> position controls correctly in various groups, and then programmatically
> re-assign them all to one group, where they'll overlap, and THEN select them
> in sets to be vis/invis as needed.   Did I misunderstand what your example
> does??
> 
> Dan Moyer
> 
> 
> ----- Original Message ----- 
> From: "H.W Overman" <euman at bellsouth.net>
> To: <EUforum at topica.com>
> Sent: Tuesday, November 18, 2003 4:11 PM
> Subject: Re: [Win32Lib] re-assign parent of control?
> 
> 
> > Hi Dan,
> >
> > Look at the demo "visibility.exw" that comes with win32lib.
> > This might help you out....
> >
> > Euman
> >
> > ----- Original Message ----- 
> > From: "Dan Moyer" <DANIELMOYER at prodigy.net>
> > To: "EUPHORIA LIST" <EUforum at topica.com>
> > Sent: Tuesday, November 18, 2003 6:59 PM
> > Subject: [Win32Lib] re-assign parent of control?
> >
> >
> > > Is there a way to programmatically re-assign the parent of a control,
> for
> > > instance a group control?
> > >
> > > For instance, I have a bunch of controls which I want to put inside a
> > > relatively small group, but only some of them at a time, selectively,
> and in
> > > what would amount to be the same place in that group.  So if I used the
> IDE,
> > > they would all "overlap" one another as I create them visually, which
> makes
> > > it hard to deal with them.
> > >
> > > So I'm thinking I could create a large "dummy" window, make as many
> groups
> > > as I need for each individual set of controls, position the controls
> > > similarly in each of those groups, and then on program activation
> re-assign
> > > ALL those groups to the "main" group.  Then I could make each control or
> set
> > > of controls selectively vis/invis as needed.
> > >
> > > IF I can re-assign parentage.  Can I (how)?
> > >
> > > Dan Moyer
> > >
> > >
> > > TOPICA - Start your own email discussion group. FREE!
> > >
> > >
> > TOPICA - Start your own email discussion group. FREE!
> >
> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: [Win32Lib] re-assign parent of control?

Euman,

I suspected that there might be *some* way to do it, although it might not
be available in Win32Lib (yet?).

A as a work-around, the obvious finally occurred to me:  I'll just make my
main window WAY bigger originally than I eventually want it to be, then make
a bunch of groups in that window, one for each set of controls I want to
have show together, with all of those controls placed as I want in each
group, and then on program activation move ALL the groups to the same place
in that window, making them & their contents invisible until one or another
set is requested, and resize the window to the actual size I want it to be.
That should be a LOT cleaner than what I was doing, namely programmatically
moving EVERY control to its final intended location.

Dan Moyer

----- Original Message ----- 
From: "H.W Overman" <euman at bellsouth.net>
To: <EUforum at topica.com>
Sent: Wednesday, November 19, 2003 3:48 AM
Subject: Re: [Win32Lib] re-assign parent of control?


>
>
> Hello Dan,
>
> I assumed you could create a "group control" of various controls then
> set the "group" visible or invisible. I wasnt sure you needed to overlap
> them. There is not a way that I know of to re-assign control id's after
> they have been created by windows..although Im pretty sure I have ran
> across such API before.
>
> The best I can do is point you to the other "setvis.exw" as it contains
> new commands for win32lib that sets up a container "so to speak" of
> controls that can be switched on or off at random...
>
> Euman
>
> ----- Original Message ----- 
> From: "Dan Moyer" <DANIELMOYER at prodigy.net>
> To: <EUforum at topica.com>
> Sent: Tuesday, November 18, 2003 10:30 PM
> Subject: Re: [Win32Lib] re-assign parent of control?
>
>
> > Euman,
> >
> > Thanks, but looking at it quickly, it doesn't seem to RE-ASSIGN controls
> > from one parent to another?  That's what I need so I can use the IDE  to
> > position controls correctly in various groups, and then programmatically
> > re-assign them all to one group, where they'll overlap, and THEN select
them
> > in sets to be vis/invis as needed.   Did I misunderstand what your
example
> > does??
> >
> > Dan Moyer
> >
> >
> > ----- Original Message ----- 
> > From: "H.W Overman" <euman at bellsouth.net>
> > To: <EUforum at topica.com>
> > Sent: Tuesday, November 18, 2003 4:11 PM
> > Subject: Re: [Win32Lib] re-assign parent of control?
> >
> >
> > > Hi Dan,
> > >
> > > Look at the demo "visibility.exw" that comes with win32lib.
> > > This might help you out....
> > >
> > > Euman
> > >
> > > ----- Original Message ----- 
> > > From: "Dan Moyer" <DANIELMOYER at prodigy.net>
> > > To: "EUPHORIA LIST" <EUforum at topica.com>
> > > Sent: Tuesday, November 18, 2003 6:59 PM
> > > Subject: [Win32Lib] re-assign parent of control?
> > >
> > >
> > > > Is there a way to programmatically re-assign the parent of a
control,
> > for
> > > > instance a group control?
> > > >
> > > > For instance, I have a bunch of controls which I want to put inside
a
> > > > relatively small group, but only some of them at a time,
selectively,
> > and in
> > > > what would amount to be the same place in that group.  So if I used
the
> > IDE,
> > > > they would all "overlap" one another as I create them visually,
which
> > makes
> > > > it hard to deal with them.
> > > >
> > > > So I'm thinking I could create a large "dummy" window, make as many
> > groups
> > > > as I need for each individual set of controls, position the controls
> > > > similarly in each of those groups, and then on program activation
> > re-assign
> > > > ALL those groups to the "main" group.  Then I could make each
control or
> > set
> > > > of controls selectively vis/invis as needed.
> > > >
> > > > IF I can re-assign parentage.  Can I (how)?
> > > >
> > > > Dan Moyer
> > > >
> > > >
> > > > TOPICA - Start your own email discussion group. FREE!
> > > >
> > > >
> > > TOPICA - Start your own email discussion group. FREE!
> > >
> >
> > TOPICA - Start your own email discussion group. FREE!
> >
> >
>
>
> TOPICA - Start your own email discussion group. FREE!
>

new topic     » goto parent     » topic index » view message » categorize

6. Re: [Win32Lib] re-assign parent of control?

Matt,

Thanks, that's a viable suggestion, & I may have to do it that way, as it
would appear that the IDE won't let me make a super-sized window that would
hold all the groups.  (Well, I can MAKE a big window, I just can't scroll
down it to add things in it.)

Of course, I'd rather just do it within IDE.

Dan Moyer

----- Original Message ----- 
From: "Matt Lewis" <matthewwalkerlewis at yahoo.com>
To: <EUforum at topica.com>
Sent: Wednesday, November 19, 2003 8:19 AM
Subject: RE: [Win32Lib] re-assign parent of control?


>
>
> danielmoyer wrote:
> >
> >
> > Euman,
> >
> > I suspected that there might be *some* way to do it, although it
> > might not be available in Win32Lib (yet?).
> >
> > A as a work-around, the obvious finally occurred to me:  I'll just
> > make my main window WAY bigger originally than I eventually want it
> > to be, then make a bunch of groups in that window, one for each set
> > of controls I want to have show together, with all of those
> > controls placed as I want in each group, and then on program
> > activation move ALL the groups to the same place in that window,
> > making them & their contents invisible until one or another
> > set is requested, and resize the window to the actual size I want
> > it to be. That should be a LOT cleaner than what I was doing,
> > namely programmatically moving EVERY control to its final intended >
> > location.
>
> Could you just create them in separate windows in the IDE, then do a
> search and replace on the resulting .exw to change the parents back to
> the correct window?
>
> Matt Lewis
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu