| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Mon Jan 27, 2003 1:50 pm Post subject: Bind programm into vds window |
|
|
wow
Thank you all very, very much for your help  |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Feb 19, 2003 7:37 am Post subject: Bind Child Window |
|
|
Hi mindpower,
today I played around with my child windows and found severals
problems (e.g. Message Boxes).
Then I tested your example for gadget - it works better and
it places the window between statusbar and menu and minimized
childs are places above the statusbar.
So I think i would by gadget, but could you explain me your code
a little bit.
Bye, Fabian |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Feb 19, 2003 4:30 pm Post subject: Bind |
|
|
Hi mindpower - another question.
Could I us your code in an external script to bind
window one (own exe) into window two (own exe)
so that I don't have to put this mighty code into every
script ?
I need this, because I am developing an php/vds intranet
application with mysql and because the problematic
handling of thousands of child dialogs I am writing
modular applications in several scripts.
Thank you for your help.
Bye, Fabian |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Feb 20, 2003 10:27 pm Post subject: |
|
|
Hi X-Tools,
First of all my semi-MDI example is very much flawed. I would not suggest to anyone to use it. Mainly becuase it is not a true MDI... It uses SetParent to change the parent window of a child window. But to make a top level window a child window I play with the window's CLASS style settings and remove the parts that are not to be used with a child window and add the parts that make the Top-level window a child window. This takes care of the window placement in the main window and adjusts the window cords to the main window or frame. If you notice I used a Static "text only window" as my document or "client" window to hold the child windows. Since I could not make Gadget transform the main window into a true MDI frame window this is a workaround but not a true solution. This is why when you click on a child window it does not activate. Now we can work around this as well and make a VDS child dialog without a title bar and use a text element to act as our titlebar and some buttons to act as the minimize, maximize and close buttons. So it can be done because you can use the click events for the elements to highlight the window. Anyway if you want to chat with me send me a PM and we will setup a way for you to chat with me outside of this forum... Your more than welcome to use my code for any project because it is just an example and it is documented in other langauges on the internet. Also note this is far from complete and I would be very interested in seeing what you do with it:-) I just don't have time to persue this example to it's fullest extent right now  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|