gettingstarted
[Top] [All Lists]

Creating an Window and Controls in Code

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Creating an Window and Controls in Code
From: "Jon" <jon at scruffyduck dot co dot uk>
Date: Sun, 29 Aug 2004 15:09:19 +0100
Delivered-to: gettingstarted at lists dot realsoftware dot com
Priority: normal
Hi All
I have been playing about with this but not getting too far.  I have 
managed to create and open a window in code using

dim w as new window

and then setting each of the parameters.  I copied these down from a 
pre-existing window that I want to duplicate in code.

I could not get the close button to appear but more of a challenge is 
to actually add controls in code to the window.  I'm not sure if this 
is even possible.  I've checked the language reference and user guide 
and cannot really find how to do it.

I found the window property Control which looks like it is the array 
of controls but trying to assign something like:

w.control(0)=p (where p is a progress bar)

gives me an error telling me the property or method does not exist.

I also wondered how I would access the window or control events in 
this case - can I use something (say for a pushbutton):

if pushbutton.action then
  // put the action event code here
end if

but I suspect not since the action event does not return anything 8-(

Before I beat my brains out on this one perhaps some kind soul could 
tell me if I am heading over a cliff

thanks in advance

Jon


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>