
Creating a VB SDI Like Interface in VB Programs
hi all
I am developing a project that requires some very specialize forms
management. For specific reasons i have chosen the project UI to be like the
VB IDE (SDI Option) - the one that can be set from the advanced tab in
Tools|Options on the Vb IDE. (I am sure some people like me still use it, it
is fabulous....)
I have been able to create the Main form just like the VB Main form with
menus and toolbars and then have other custom normal modeless forms like the
form designer and code window of VB.
An interesting thing to note about the VB SDI IDE is that on the windows
taskbar only one button is there for the entire VB project although there
are more windows in VB. I have achieved this same kind of functionality by
setting "ShowInTaskBar" property to "True" only for the main form but not
for the other forms in my project.
However one effect that i have not been able to produce is that in VB SDI
IDE even when a form other than the main form has the focus, let us say a
code window, the VB application button on the Windows Taskbar still remain
pressed. THIS IS ONE THING WHICH IS NOT ACHIEVED BY NORMAL VB CODING.
I try using the api and with the help of spy++ figured out that the forms
other than the main form in VB IDE are set to WS_POPUP style and they have
their parent and owner attribute set to the VB main form.
I try doing the same thing by setting all my forms (NOT the main) to be set
to style WS_POPUP and make the main form their parent and owner.
HOWEVER I AM STILL NOT ABLE TO PRODUCE THE EXPECTED......
CAN SOMEBODY PLEASE HELP............................ASAP
THANKS
adhingra
P.S Any sample code is highly welcomed!