Text Box is a like a roach motel?

Started by Nathan Durland, January 26, 2010, 06:27:08 PM

Previous topic - Next topic

Nathan Durland

I have a project where the user will be entering notes into a text box.  I created a standard TextBox control, and set the es_multiline and es_wantreturn properties, and cleared es_autohscroll.

I can tab into the field just fine, but the TAB key won't get me out.  I have to mouse click the next field.  If I clear the es_multiline property, I can TAB away.  Is that how it's supposed to behave?

Ivan Iraola

Android App Developer
http://www.uncledroid.com

Paul Squires

This is the behaviour that I have always witnessed with winapi created textboxes. I think that DDT handles the Tab like you need it to.

I will take a look at seeing if I can build in a way to intercept the Tab and manually move the focus within the tab stop sequence.
Paul Squires
PlanetSquires Software

Paul Squires

Okay, this is now fixed. Pressing the TAB while in a multiline textbox will take you to the next control in the tab sequence. Pressing Shift+Tab will take you to the previous. I am now testing for the TAB key in the message pump and if the focus is on a multiline textbox then the focus is set and %WM_NULL message passed through the pump.

The fix will be in v3.07.
Paul Squires
PlanetSquires Software

Roger Garstang

Cool, I always thought multiline textboxes eating tab chars but not using them was dumb, now they will work how intended.

Martin Francom

Paul,  Will that also be the new behavior in  RichEdit Control  and in FireTextBox?

Rolf Brandt

Reminds me of that old commercial of the 60's:
Roaches check in, but they never check out!
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

Quote from: Marty Francom on January 27, 2010, 12:41:08 AM
Paul,  Will that also be the new behavior in  RichEdit Control  and in FireTextBox?
I had forgotten about the RichEdit control. I made that change as well.
Paul Squires
PlanetSquires Software

Nathan Durland

Quote from: TechSupport on January 26, 2010, 08:43:01 PM
Okay, this is now fixed. Pressing the TAB while in a multiline textbox will take you to the next control in the tab sequence. Pressing Shift+Tab will take you to the previous.


Very cool.. Thx much.

Roger Garstang

Weird, I would have thought RichEdit would have used Tabs...I never use them that much though. I did see one thing while testing- Ctrl+Tab inserts Tab for both, so we should be good.

Roger Garstang

Quote from: Rolf Brandt on January 27, 2010, 07:00:51 AM
Reminds me of that old commercial of the 60's:
Roaches check in, but they never check out!

Wasn't born in the 60's and I remembered the line. http://en.wikipedia.org/wiki/Roach_Motel_%28insect_trap%29

The little black Combat traps are awesome.  They take the bait back to their buddies and you never see roaches again.

Rolf Brandt

I visited the states the first time in '69. There was virtually  no subway car without a couple of really cute Roach Motel advertisements.
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Roger Garstang

Was it another company?  Everywhere I search says Black Flag started producing them in May of '76 and obtained Trademark in Feb '77. Looks like before then it was just DCON Roach Traps and Muhammad advertised for both, but I couldn't find any youtube clips for DCON other than him just punching out towards the screen a lot and saying DCON Power. Black Flag calling them Motels stole the market. And, they coined the phrase.  They even tried sueing others calling them Roach Inns, etc. '69 must have been a bad year for roaches or something if they advertised that strong.  Would be interesting if where you visited was a small area and had someone else calling them that first, but didn't have enough money to promote at the time and Black Flag stole the idea years later to get market from DCON.  Sounds like a Bill Gates deal to me.

Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)