New topic: 

Textfield Z-Order

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

       Page 1 of 1
   [ 7 posts ]                 Previous topic | Next topic         Author  
Message       edb           Post subject: Textfield Z-OrderPosted: Thu Aug 20, 
2009 3:53 pm                        
Joined: Sun Dec 10, 2006 7:57 am
Posts: 72
Location: Texas              Alright, is there an easy way to prevent what's 
happening to me.  I have a few textfields on a window (form) and use my own 
code to show a listbox under the textfield that has focus for auto-complete 
choices.  Problem is, any textfield that is behind the listbox gets drawn OVER 
the listbox if the cursor is moved over the textfield (even THROUGH the 
listbox).  This is regardless if the listbox has the top-most z-order or not.  
Any suggestions that could prevent this from happening?     
_________________
Respectfully,
Eric D. Brown

http://www.facebook.com/people/Eric-Douglas-Brown/1332667806  
                            Top               computerfreaker           Post 
subject: Re: Textfield Z-OrderPosted: Thu Aug 20, 2009 4:07 pm                  
             
Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1403
Location: USA              I'm pretty sure this is an OS-level drawing thing, 
so I don't think you can control it... maybe try refreshing the listbox and/or 
temporarily disabling the textbox?     
_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip!   
                            Top                edb           Post subject: Re: 
Textfield Z-OrderPosted: Thu Aug 20, 2009 4:23 pm                        
Joined: Sun Dec 10, 2006 7:57 am
Posts: 72
Location: Texas              Well, refreshing causes completely too much 
flickering... as the listbox would basically need to be refreshed continuously. 
 Also, disabling or setting the other textfields to "read only" has two effects 
I don't want.  First, it greys them out.  Second, I'd either have to disable 
all the fields on the form (besides what they're currently editing) or track 
which ones the listbox is over (which is possible, but a complete pain).  The 
listbox's size differs, depending on factors such as length of possible matches 
and how many there are.     
_________________
Respectfully,
Eric D. Brown

http://www.facebook.com/people/Eric-Douglas-Brown/1332667806  
                            Top               timhare           Post subject: 
Re: Textfield Z-OrderPosted: Thu Aug 20, 2009 5:15 pm                        
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 6156
Location: Portland, OR  USA              I'm having difficulty imagining why 
you would want to overlap the controls like that.  It's really asking for 
trouble.   
                            Top               edb           Post subject: Re: 
Textfield Z-OrderPosted: Thu Aug 20, 2009 5:26 pm                        
Joined: Sun Dec 10, 2006 7:57 am
Posts: 72
Location: Texas              Uh, Tim... go to Google and type something in the 
search field.  See how the autocomplete selections drop below the search field 
OVER the buttons?  Same thing... and I'm not the first to do it.  Seems pretty 
practical to me.     
_________________
Respectfully,
Eric D. Brown

http://www.facebook.com/people/Eric-Douglas-Brown/1332667806  
                            Top               computerfreaker           Post 
subject: Re: Textfield Z-OrderPosted: Thu Aug 20, 2009 5:33 pm                  
             
Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1403
Location: USA              edb wrote:Well, refreshing causes completely too 
much flickering... as the listbox would basically need to be refreshed 
continuously.
Try setting the EraseBackground parameter to false:
Code:MyListbox.Refresh(False)
That should help, at least a little...

edb wrote:Also, disabling or setting the other textfields to "read only" has 
two effects I don't want. First, it greys them out. Second, I'd either have to 
disable all the fields on the form (besides what they're currently editing) or 
track which ones the listbox is over (which is possible, but a complete pain).
I can imagine the problems with that approach... but I was trying to cover all 
bases, and that's one of the few there are.

timhare wrote:I'm having difficulty imagining why you would want to overlap the 
controls like that.  It's really asking for trouble.
True, but edb's reply is true as well...
edb wrote:Uh, Tim... go to Google and type something in the search field.  See 
how the autocomplete selections drop below the search field OVER the buttons?  
Same thing... and I'm not the first to do it.  Seems pretty practical to me.

One of the first times I've ever seen that pretty practical = really asking for 
trouble...      
_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip!   
                            Top                edb           Post subject: Re: 
Textfield Z-OrderPosted: Thu Aug 20, 2009 5:54 pm                        
Joined: Sun Dec 10, 2006 7:57 am
Posts: 72
Location: Texas              So, exactly how is a browser capable of doing it?  
Why does VB not have issues overlapping controls?  How do other applications w/ 
forms do it with absolutely no issues?

Oh... they aren't developed in RB.  I'm beginning to become inclined to the 
fact that w/ Visual Studio 2008 Pro retailing for $799 (with continual 
updates), I just wasted over $1100 for a license on an IDE that is limited and 
completely full of headaches (some that have existed for well over a year).  
Anytime I try to do anything that "should" work... and I ask for help with 
it... what I'm doing is considered "dangerous" or "not good practice" or is the 
fault of the OS (which is usually advise from somebody affiliated w/ 
RealSoftware).  Ironic?

My frustration level is hitting it's peak, and I'm about to call it quits w/ 
this whole RB crap!      
_________________
Respectfully,
Eric D. Brown

http://www.facebook.com/people/Eric-Douglas-Brown/1332667806  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 7 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