Re: I need help with Win32lib's remove and add style

new topic     » goto parent     » topic index » view thread      » older message » newer message

Judith Evans wrote:
> 
> Judith Evans wrote:
> > 
> > I've been investigating a rewrite of IDE in an attempt to simplify the code.
> > 
> > I decided to createEx Property, ProjectView and ToolBox as windows with
> > WS_CHILD. This
> > makes a lot of the mumbo jumbo of IDE much easier when moving and resizing
> > these windows.
> > I thought I could remove the WS_CHILD style when undocking but it appears
> > that style
> > doesn't
> > work with removeStyle. Below is what I have done. Have I got it wrong or is
> > there something
> > else I should use? If I can not remove the child style then these windows
> > are stuck
> > inside
> > the MainWindow client area and that has not traditionally been how IDE
> > works.
> > 
> > >--property now to be undocked
> > > addStyle(PropertySheet, {
> > >        (WS_THICKFRAME+WS_CAPTION+WS_MINIMIZEBOX+WS_SYSMENU+WS_BORDER+
> > >          WS_DLGFRAME+WS_MAXIMIZEBOX),(0)})
> > >
> > > removeStyle(PropertySheet,{(WS_CHILD),(0)})
> > 
> > Thanks,
> > judith evans
> > 
> 
> Since there is no reply to this question, I suppost that means this can not be
> done.
> So my next question is how much of a problem is it for IDE users if undocked
> windows
> must stay in the Main Window client area?
> ~judith evans

I was hesitating to replying to your original post, because I expected someone
with more knowledge about win32 api to reply to it. But that doesn't seem to have
been the case.

AFAIK some properties can not be removed or added after the creation of the
object. Maybe an option would be to re-create the window when docking/undocking?

I'm not a user of your ide, so I can't answer the last question. I'm on linux
now, when I was on windows I preferred to interface directly with win32lib,
so I haven't used it much. I think I've just started it once.

Regards, Alexander Toresson

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu