1. [WIN] "re-assign" a control from one window to another?

Is it possible to "re-assign" a control from one window to another, back and
forth, in response to program user actions?

I have a set of combo boxes in a window that's opened from another window;
but depending on what the program user does, I want those controls to "move"
(be available) to the *first* window, or back to the 2nd one.  I can move
their *position*,
my problem is to make them "belong" to the selected window, so I don't have
to make duplicates of all the controls (one set for 1st window, one set for
2nd, make "unused" set invisible, etc).

Dan Moyer

new topic     » topic index » view message » categorize

2. Re: [WIN] "re-assign" a control from one window to another?

I dont think that is possible unless you were to setup
a SystemThread responder.

Euman
euman at bellsouth.net

----- Original Message ----- 
From: <DanMoyer at PRODIGY.NET>
To: "EUforum" <EUforum at topica.com>
Subject: [WIN] "re-assign" a control from one window to another?


> 
> 
> Is it possible to "re-assign" a control from one window to another, back and
> forth, in response to program user actions?
> 
> I have a set of combo boxes in a window that's opened from another window;
> but depending on what the program user does, I want those controls to "move"
> (be available) to the *first* window, or back to the 2nd one.  I can move
> their *position*,
> my problem is to make them "belong" to the selected window, so I don't have
> to make duplicates of all the controls (one set for 1st window, one set for
> 2nd, make "unused" set invisible, etc).
> 
> Dan Moyer
> 
> 
> 
> 
>

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

3. Re: [WIN] "re-assign" a control from one window to another?

Hi Dan,
yes this is possible.

There is the Windows API function called "SetParent" that can be used to
move a control from one window to another. However, some internal variables
inside win32lib.ew would also have to be fixed up if you did that. I'll do
some more research into it and get back to you.

-----------
cheers,
Derek Parnell
Senior Design Engineer
Global Technology Australasia Ltd
dparnell at glotec.com.au

---------------------




confidential information intended solely for the use of the individual or
entity to whom they are addressed. If you are not the intended recipient of
this message you are hereby notified that any use, dissemination,
distribution or reproduction of this message is prohibited. If you have
received this message in error please notify the sender immediately. Any
views expressed in this message are those of the individual sender and may
not necessarily reflect the views of Global Technology Australasia Limited.

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

4. Re: [WIN] "re-assign" a control from one window to another?

Thanks Derek!


----- Original Message -----
From: "Derek Parnell>

> Hi Dan,
> yes this is possible.
>
> There is the Windows API function called "SetParent" that can be used to
> move a control from one window to another. However, some internal
variables
> inside win32lib.ew would also have to be fixed up if you did that. I'll do
> some more research into it and get back to you.
>
> -----------
> cheers,
> Derek Parnell
> Senior Design Engineer
> Global Technology Australasia Ltd
> dparnell at glotec.com.au
>

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

5. Re: [WIN] "re-assign" a control from one window to another?

euman,

That's what I was afraid of, though Derek thinks it can be accomplished, & I
suspect he probably will make it possible.  In the meantime, I'll probably
go for "duplicate" controls.  Thanks.

Dan


----- Original Message -----
From: <euman at bellsouth.net>
>
> I dont think that is possible unless you were to setup
> a SystemThread responder.
>
> Euman
> euman at bellsouth.net
>
> ----- Original Message -----
> From: <DanMoyer at PRODIGY.NET>
> To: "EUforum" <EUforum at topica.com>
> Sent: Tuesday, July 03, 2001 23:29
> Subject: [WIN] "re-assign" a control from one window to another?
>
>
> >
> >
> > Is it possible to "re-assign" a control from one window to another, back
and
> > forth, in response to program user actions?
> >
> > I have a set of combo boxes in a window that's opened from another
window;
> > but depending on what the program user does, I want those controls to
"move"
> > (be available) to the *first* window, or back to the 2nd one.  I can
move
> > their *position*,
> > my problem is to make them "belong" to the selected window, so I don't
have
> > to make duplicates of all the controls (one set for 1st window, one set
for
> > 2nd, make "unused" set invisible, etc).
> >
> > Dan Moyer
> >

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

Search



Quick Links

User menu

Not signed in.

Misc Menu