What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - Child Windows!

Pages: (3): « First « 1 [ 2 ] 3 » Last »
HELP - Child Windows!
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - Child Windows!
So can I put the <BottomBar> section into the <ChildTmpl/>, or can I not have a bottom bar at all?
02-23-2009 08:33 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: HELP - Child Windows!
You can't have it at all.

I really strongly recommend you read about it in the documentation... Only the DialogTmpl and WindowTmpl can have attributes to them.

This post was edited on 02-23-2009 at 08:54 PM by matty.
02-23-2009 08:52 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: HELP - Child Windows!
Also, you can't have an Attributes nor TitleBar block for a child window. Directly quoted from the documentation (see Window/ChildTmpl):
quote:
annotation: A window with this template must not have Attributes or TitleBar. It is only meant to be included in other windows.

Another remark: you're defining the width and height of the window as absolute values (in pixels) using IsAbsolute, however you don't use Control::Position::Units to make the controls use pixels. This causes them to work with dialog units which are about 1.5 pixels, making your controls much wider/higher and positioned too low/far than you want. As always: all these things are clearly mentioned in the documentation.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-24-2009 08:45 AM
Profile E-Mail PM Web Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - Child Windows!
It still won't work!
  • no <DialogTmpl>, just a <ChildTmpl/>
  • tried taking out all the pieces (controls, title etc) one by one
  • tried taking them all out
I know the XML is fine, and in the right format, because the other windows load up normally.  :@
02-24-2009 08:09 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: HELP - Child Windows!
And how exactly do you want us to see what's wrong when you don't post your current interfaces code? :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-24-2009 08:11 PM
Profile E-Mail PM Web Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - Child Windows!
Okay, don't worry about the child window, I give up...

I'll try something else.  If the Search window is already open, and the user clicks the button again, is it possible to bring the Search window to the front?
02-24-2009 08:18 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: HELP - Child Windows!
Post the code we will show you where you went wrong.

To answer your question:

Store the window handle in a variable and when clicking the button use the IsWindow API to check if it returns true; if it does use the SetForegroundWindow API to bring it forward if not open it.

This post was edited on 02-24-2009 at 08:34 PM by matty.
02-24-2009 08:31 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - Child Windows!
I know it doesn't have any buttons, but this is what I have tried:
XML code:
<Window Id="WndSearch" Version="1">
    <Position Width="400" Height="150"/>
    <ChildTmpl>
    <Controls>
        <Control xsi:type="StaticControl" Id="InfoTxt">
            <Position Left="8" Top="3" Width="370"/>
            <Caption>Enter the text to search for, and click Search to open a results window.</Caption>
        </Control>
        <Control xsi:type="EditControl" Id="EdtSearch">
            <Position Left="8" Top="23" Width="370"/>
            <Help>Enter a search query...</Help>
        </Control>
    </Controls>
</Window>

I have also tried using the exact window mentioned above:
XML code:
<Window Id="WndChildExample" Version="1">
   <ChildTmpl/>
   <Position Width="243" Height="193"/>
   <Controls>
      <Control xsi:type="StaticControl" Id="lblTitle">
         <Position Top="25" Width="100" Left="15" Height="15" />
         <Caption>hi I am a child window :)</Caption>
      </Control>
   </Controls>
</Window>


This post was edited on 02-24-2009 at 08:51 PM by whiz.
02-24-2009 08:41 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: HELP - Child Windows!
Nothing is wrong with the code for the window. What about the full script you use to create the window. Better yet post the PLSC.

This post was edited on 02-24-2009 at 09:03 PM by matty.
02-24-2009 09:00 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - Child Windows!
Attached.

.plsc File Attachment: Plus! Browser.plsc (10.63 KB)
This file has been downloaded 83 time(s).
02-25-2009 05:15 PM
Profile E-Mail PM Find Quote Report
Pages: (3): « First « 1 [ 2 ] 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On