New topic: 

Unable to see my Windows while in debug mode

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

       Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic         Author  
Message       dutch_kuykendall           Post subject: Unable to see my Windows 
while in debug modePosted: Thu Oct 22, 2009 1:26 pm                        
Joined: Fri Oct 16, 2009 9:46 pm
Posts: 3
Location: Blue Ridge, Texas              I'm modifying text boxes on Window 
FMain, from code.  But am unable to verify the changes, as the window is 
basically blank.  I am using FMain.Refresh after changing something on the 
Window, but that's not helping.  I'm running Ubuntu 9.04 Ultimate Edition (32 
bit) and my screen res is set at 1440 X 900 on a 17” LCD display.  The 
computer is a AMD Athlon 64, running at 2.21 Ghz with 2 GB of Ram.
I have a screen shot of the issue, but I don't see a way of attaching it to 
this post.   
                            Top                npalardy           Post subject: 
Re: Unable to see my Windows while in debug modePosted: Thu Oct 22, 2009 2:49 
pm                        
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 5354
Location: Canada, Alberta, Near Red Deer              It will refresh once the 
main thread gets a chance to update it
but, you've paused execution so the main thread is not able to do anything (you 
have the debugger paused so NO code runs)
Refresh is not a means to redraw the window immediately     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top               jefftullin           Post 
subject: Re: Unable to see my Windows while in debug modePosted: Thu Oct 22, 
2009 2:50 pm                        
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 862              If your window is named FMain, and you create a new 
window x as FMain, be careful you do not then use FMain.thing.text = "Fred'
If you do, you are not updating the window you expect.   
                            Top               npalardy           Post subject: 
Re: Unable to see my Windows while in debug modePosted: Thu Oct 22, 2009 3:55 
pm                        
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 5354
Location: Canada, Alberta, Near Red Deer              dutch_kuykendall 
wrote:The debugger is not paused until after the refresh is executed.

Right
Refresh is not a way to say "redraw this now!"

dutch_kuykendall wrote:Is there a DoEvents (VB) type command so that the window 
is redrawn?

Don't do it
In VB it did something entirely different than what it does in RB 

dutch_kuykendall wrote:Whats strange, is that the entire window is blank (empty 
of any controls, & text boxes) once I click on it, to bring out the majority of 
the windo out from behind the debugger IDE.
Not so strange
The Window needs to be redrawn but can't because the main thread is paused 
because you're in the debugger with code paused.
Windows asks the window to redraw when you click on it but it can't because 
you've paused code execution.     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            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