New topic: 

Dynamic Window Question - Instant Messenger

<http://forums.realsoftware.com/viewtopic.php?t=46309>

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        simulanics          Post subject: Dynamic Window Question - 
Instant MessengerPosted: Sat Dec 22, 2012 1:30 am                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 880
Location: Boiling Springs, SC                I have began creating an instant 
messenger for Real Studio Developer's Spot to integrate with the site messaging 
system...





My question is..if a window is created by using:

Dim xWin as new winMessenger

xwin.Title = me.List(me.ListIndex)
xWin.Show


How do you reference the windows and objects on the windows like calling 
window1.txtUser.text...

I would imagine using an index..but have not yet encountered having to use 
windows in this manor.. help would be greatly appreciated.

The current version for windows/mac/linux can be obtained at:

Source: http://www.realstudiodevspot.com/demos/Messenger.rar
(A valid RSDS login is required for use)      
_________________
Matthew A. Combatti
Real Studio 2012 r1.2
Visit Real Studio Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top                timhare          Post subject: 
Re: Dynamic Window Question - Instant MessengerPosted: Sat Dec 22, 2012 2:25 am 
                        
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 11908
Location: Portland, OR  USA                Assuming each window title is 
unique, you can loop through the open windows and find the winMessenger with a 
particular title.  Or you can set some property of the window that you can 
search for as well.
for n = 0 to WindowCount-1
  if window(n) isa winMessenger then
  if window(n).title = theTitle then return window(n)
  if winMessenger(window(n)).someproperty = somevalue then return window(n)
  end
next
   
                             Top                simulanics          Post 
subject: Re: Dynamic Window Question - Instant MessengerPosted: Sat Dec 22, 
2012 2:47 am                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 880
Location: Boiling Springs, SC                timhare wrote:Assuming each window 
title is unique, you can loop through the open windows and find the 
winMessenger with a particular title.  Or you can set some property of the 
window that you can search for as well.
for n = 0 to WindowCount-1
  if window(n) isa winMessenger then
  if window(n).title = theTitle then return window(n)
  if winMessenger(window(n)).someproperty = somevalue then return window(n)
  end
next


You have no idea how awesome you are! Thank You very much. -Matthew      
_________________
Matthew A. Combatti
Real Studio 2012 r1.2
Visit Real Studio Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top                simulanics          Post 
subject: Re: Dynamic Window Question - Instant MessengerPosted: Sat Dec 22, 
2012 3:01 am                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 880
Location: Boiling Springs, SC                One slight issue...it returns an 
error that window is not a winMessenger and controls on winMessenger "don't 
exist" ... this is a tough one  

edit: nevermind i was missing the WinMessenger(Window(n)) 

Thanks again tim      
_________________
Matthew A. Combatti
Real Studio 2012 r1.2
Visit Real Studio Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to