Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 11 to 14 of 14 total |
Z Order and Focus |
Sat, Nov 14 2015 6:46 AM | Permanent Link |
Rick | On 14/11/15 09:41, Tim Young [Elevate Software] wrote:
> The issue is right there: "form/panel" is not correct, it's just "form" in EWB 2. In EWB 1.x, TForm descended from TPanel, but in EWB 2.x, a panel is just a container, and does not contain "form functionality" such as auto-focusing the last active control, etc. It's this way because it's assumed that a panel is not an "end-all-be-all" container like a form, rather just one control of many others on a form. > > If you look at the source code to the TFormControl (WebForms unit), you'll see this functionality (FocusLastActiveControl, etc.). > Tim, OK, I understand why TPanel works the way it does. But TForm also seems to work the same way. If you click in the TForm's client area or caption bar it does come to the front but it never sets focus to any client control on the clicked form. -- Rick |
Sat, Nov 14 2015 7:00 AM | Permanent Link |
Rick | On 14/11/15 22:46, Rick wrote:
Just to clarify, when I say "TForm" I mean "TDialog". -- Rick |
Mon, Nov 16 2015 1:59 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Rick,
<< Tim, OK, I understand why TPanel works the way it does. But TForm also seems to work the same way. If you click in the TForm's client area or caption bar it does come to the front but it never sets focus to any client control on the clicked form. >> Correct. EWB 2.x targets touch environments, and with touch environments come virtual keyboards, so EWB 2.x goes out of its way to not perform any auto-focusing that isn't absolutely necessary. Having said that, though, a quick review of the code shows that I can probably get away with a call to FocusLastActiveControl (which respects the TApplication.AutoFocus property for mobile environments) for forms when the caption bar is clicked. I'll have to do some more playing around, but it should be do-able. Tim Young Elevate Software www.elevatesoft.com |
Mon, Nov 16 2015 6:30 PM | Permanent Link |
Rick | On 17/11/15 05:59, Tim Young [Elevate Software] wrote:
> Correct. EWB 2.x targets touch environments, and with touch environments come virtual keyboards, so EWB 2.x goes out of its way to not perform any auto-focusing that isn't absolutely necessary. > Yeah, I see that EWB2 is oriented towards a "touch first" environment. I understand this because of where the trend is but my initial attraction to EWB1 was that it seemed focused on a more productive desktop style environment. Hopefully EWB2 can cater fully for both paradigms. > Having said that, though, a quick review of the code shows that I can probably get away with a call to FocusLastActiveControl (which respects the TApplication.AutoFocus property for mobile environments) for forms when the caption bar is clicked. I'll have to do some more playing around, but it should be do-able. > That sounds great and would be much appreciated. Will this apply to forms only or will it include panels as well? I'd really like to see the OnActivate event implemented also. It would be useful. Thanks Tim for listening and responding to customer feedback regardless of how irritating it can be. It's one of the things that sets your company apart from others. -- Rick |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Friday, November 1, 2024 at 07:01 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |