Couple of How To Questions!

1) What is the best way to the focus to any given control in a form? In normal WIN32, I have my own that I post a message to because I have found trying to set a control focus from within any given event handler many times gets overridden somewhere in the chain!

2) How does one do lengthy processes? For example, if I am going to fetch data when a user makes certain selections, I normally display a modal dialog and execute a worker thread to get the data.  That is, I am looking for ideas to let the user know visually that I am processing their request. Many web applications I have seen show a circular progress bar while the data is being fetched. 

3) Continuing of #2, but are worker threads discouraged since each form is non-modal?

4) Is there a way to post a registered message to the form for processing (i.e. PostMessage(Handle,RM_SOME_MESSAGE_ID,WParam,LParam))?

Web programming is definitely new to me and I do apologize for such silly questions..... I just need to learn the new ways of doing things!

Best Regards,

Shane
0
Shane
9/3/2008 3:40:03 AM
embarcadero.delphi.intraweb 3901 articles. 1 followers. Follow

1 Replies
556 Views

Similar Articles

[PageSpeed] 4

Shane Stump wrote:
> 1) What is the best way to the focus to any given control in a form? In normal WIN32, I have my own that I post a message to because I have found trying to set a control focus from within any given event handler many times gets overridden somewhere in the chain!

All visual IW controls have a SetFocus method. IWAppForm also has an 
ActiveControl property.
 +Note: Settting focus in Async events is not yet support as far as I can see+

> 2) How does one do lengthy processes? For example, if I am going to fetch data when a user makes certain selections, I normally display a modal dialog and execute a worker thread to get the data.  That is, I am looking for ideas to let the user know visually that I am processing their request. Many web applications I have seen show a circular progress bar while the data is being fetched. 

The Features Demo has a "Threaded" unit/form which illustrates that.

> 3) Continuing of #2, but are worker threads discouraged since each form is non-modal?

They are not discouraged, but have to be treated as shown by "Threaded.pas"

> 4) Is there a way to post a registered message to the form for processing (i.e. PostMessage(Handle,RM_SOME_MESSAGE_ID,WParam,LParam))?

No. IW-Forms are not Windows forms. You have to treat them as "plain 
objects", living in threads (one thread per user session).


-- 
Grüße / Regards,
Olaf Monien
---------------------------
CodeGear Technology Partner
www.monien.net/blog

Edited by: Olaf Monien on Oct 2, 2008 8:17 AM
0
Olaf
10/2/2008 7:18:23 AM
Reply:

Similar Artilces:

Delphi Bundled IntraWeb
Hi I'm trying to get started with IntraWeb, but I seem to be missing components that others are referring to. I don't have TIWGradButton, TIWHTMLLabel, etc. Does this version support SSL? I have Delphi 2010 (IW v10) and Delphi XE2 (IW v12), but neither have these components. I would like to embed some HTML into a label (to show the copyright symbol), but having no luck. Also, I can't debug in XE2 as I get a TIdSocketError when I run the browser session. Also, IntraWeb version 12 in XE2 comes up as Unknown Browser Type in Firefox v18, but works in IE. Getting...

Delphi and Delphi Prism licensing question
When I buy Delphi and Delphi Prism, do I get a "named user licence" or a "workstation licence"? Can I install both products on two machines I use with the same licence keys? I have a Mac Pro ("Cyrus") running Vista 64 in VMware and a MacBook ("Blacky") running Vista 32 in Parallels. Can I install Delphi and Delphi Prism on both Cyrus and Blacky since I use both machines (and like to have all dev tools I use installed on both machines at all times)? Andrew Brehm wrote: > When I buy Delphi and Delphi Prism, do I get a "named user licence...

Question about Delphi 2009 vs Delphi 7
Hi, I was wondering if any of you can point me to a URLs that show the most important improvements between these versions of Delphi. The objective is convincing the powers-that-pay-the-bills that moving to D2009 (that we'd have to purchase) is a better idea than moving to D7 (for which we have licenses). Fire at will! -- Saluti, Alessandro Federici ------------------------------- "I have been through some terrible things in my life, some of which actually happened." (Mark Twain) Alessandro Federici wrote: > Hi, > I was wondering if any of yo...

windows ME questions, questions, questions.......
Hi, my next PC will be running Windows ME. The PC will be supplied via my work, so there's no choice here for me (ME?) (I think I would have preferred 98 SE). The harddisk (40GB matrox) will have ME installed, and both the Windows ME set-up files and an image of the initial Harddisk 'on a hidden partition'. Word has it that this partition is not seen by Format nor FDisk. Is this really possible? No Windows CD will be supplied. Seems a new way of MS to encourage working with licensed software only. Anyone familiar with this way of distributing an OS? Will I be able to ...

A couple questions: display space and driver question 11.1
During install I could see the whole monitor space, now I have a black stripe of 1 cm on the right. I installed the ATI drivers, seems to have made it worse than default as I can't adjust it out through monitor with horizontal adj. Resolution is reported as 1280 x 1024 but it is not showing that.KDE gui, 4.1. 17 inch analog LCD. Also, this motherboard has a set of linux drivers, do I need to install those for all functions to work? I'm most concerned about energy consumption, temp monitoring. The cpu seems to clock down to 1ghz? Seems really low since its 2.5ghz. Sys...

Couple of questions
--____OTLLDGSPGYUYQTLYZMVG____ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Content-Disposition: inline; modification-date="Tue, 14 Jan 2008 09:47:49 -0500" TWF5YmUgc29tZW9uZSBjYW4gaGVscCBtZSBvdXQgd2l0aCBhIGNvdXBsZSBvZiBpc3N1ZXMuICBU aGUgZmlyc3QgaXNzdWUgaXMgYSBOQVQgaXNzdWUuICBXZSBoYXZlIHR3byBzZXBhcmF0ZSBpbnRl cm5hbCBuZXR3b3JrcyBzZXBhcmF0ZWQgYnkgYSBmaXJld2FsbC4gIEkgY2FuIGdldCB0byB0aGUg WmVuIENvbnRyb2wgQ2VudGVyIGFuZCBldmVuIGtpbmQgb2YgZ2V0IGEgd29ya3N0YXRpb24gcmVn aXN0ZXJlZCBmcm9tIHRoZSBzaWRlIGJlaGluZCB0aGUgZmlyZXdhbGwuICBIb3dldmVyLCBaQ0Mg ZG9l...

A couple of questions . . .
1. Does anyone know what error number 50213 and 50225 mean? A customer/student said he receives this error on version 5.5 when he does a backup. Unfortunately, he was in class and not onsite so he could not get more information other than the error number. 2. Whenever I teach the ASA DataRep class we sometimes get the following error message I. 12/02 16:12:43. Copyright 1989-1999 Sybase, Inc. All rights reserved. I. 12/02 16:12:43. All unpublished rights reserved. I. 12/02 16:12:43. I. 12/02 16:12:43. Sybase, Inc. 6475 Christie Avenue, Emeryville, CA 94608, USA I. 12/02 16...

A couple of questions . . .
1. Does anyone know what error number 50213 and 50225 mean? A customer/student said he receives this error on version 5.5 when he does a backup. Unfortunately, he was in class and not onsite so he could not get more information other than the error number. 2. Whenever I teach the ASA DataRep class we sometimes get the following error message I. 12/02 16:12:43. Copyright 1989-1999 Sybase, Inc. All rights reserved. I. 12/02 16:12:43. All unpublished rights reserved. I. 12/02 16:12:43. I. 12/02 16:12:43. Sybase, Inc. 6475 Christie Avenue, Emeryville, CA 94608, USA I. 12/02 16...

A couple of questions
I`ve been checking out my computer today ..someone attacked my firewall pretty hard this last weekend (it stopped counting at 500 all different ports)and for the first time someone got past my ZA firewall and My blackice stopped it ..I used the shields up test and leak test and past it ..but since this weekend when my ZA is locked my tranfer light on my ethernet box keeps flashing and I check my history chart on blackice and it also shows network traffic when Za is locked .. before my attack when when ZA was locked this didn`t happen ..I`ve run trojan hunter and mcafee virus scan bot...

A couple of questions
Hi People, When you use $P0 = compreg, "PIR" is there any way to get an optimizing compiler ( or not ) or do you always get a version that follows the flags that were passed to Parrot? Is there any implementation of the Perl pack/unpack functions planned or should we be using the Struct PMC? When using the Read/Readline opcodes how do we specify what encoding is to be assumed for the incoming string? Thanks and Merry Christmas, Steve Gunnell On Dec 25, 2005, at 23:48, Steve Gunnell wrote: > Hi People, > > When you use $P0 = compreg, "PIR&qu...

couple of questions
I just downloaded and installed the groupwise 7.x client. It won't connect to the old server, will it not connect to the older server software? It's SuSe 8 running 6.5 Which brings another question up, is SuSe 8 going to be supporting in 7? Or will i need to move to SuSe 9? Questions? Comments? Suggestions? Flames? ;) You cannot (never could) connect a newer client, to an older back-end. You can, however, connect an older client, to a newer back-end derisive@hushmail.com wrote: > I just downloaded and installed the groupwise 7.x client. It won't > conn...

Couple of questions
Hello. After having a few disasters I have reinstalled and everything works fine now. I have a few questions: 1. Is it possible for the Album artist to make changes themselves to photo descriptions? 2. Image properties - Date Time etc. Where does the data for this come from? Can it be edited? 3. Is there a way of adding total views for all pictures in an Album at the top level of the nGallery, where it displays all Albums? 4. Send to a friend. When I enter a test message and hit send I get: There was an error while attempting to send your message: Could not access 'CDO.Mess...

A couple of questions!
Hello I am really new programing perl scripts so, I read this list and I realized that you know a lot about this stuff, well I want to make a report where the final information we want to have depend of the hour it was saved. The log file is lineal and its look like this: Thu Nov 1 00:00:01 2001 NAS-IP-Address = 216.226.201.177 NAS-Port = 105 NAS-Port-Type = Async User-Name = "Pproagua" Called-Station-Id = "2447000" Calling-Station-Id = "2892646" Acct-Status-Type = Stop Acct-Authenti...

Couple of questions
I always follow suggestions with questions :) I filter mail in my mua (kmail in this case) based on whether spamassassin has added "***** SPAM *****" to the subject of a message. Since qpsmtpd is running spamassassin for me now is there an easy way to turn on this feature? I know I could look at the header instead but I have a number of users who do things this way and I'd prefer not having them all change their filters. Another thing that would be nice is rejecting email based on recipient. I have a domain that used to be owned by a large business. They rece...

A Couple of Questions
1. Is it possible to hide all e-mail addresses when bugs are displayed? This is going up on a public site and I want to be sensitive to those who want to keep this information from potential spammers. 2. What is the purpose of the 'Requests' option in the menu at the bottom of each screen? --Bruce On Sun, 14 Nov 2004, Bruce wrote: > 1. Is it possible to hide all e-mail addresses when bugs are displayed? > This is going up on a public site and I want to be sensitive to those > who want to keep this information from potential spammers. I don't believe...

Web resources about - Couple of How To Questions! - embarcadero.delphi.intraweb

German question - Wikipedia, the free encyclopedia
"Kleindeutschland" redirects here. For the neighborhood in New York City, see Little Germany, Manhattan . 1820 map of Central Europe showing ...

Tina Olivero steps down as candidate after CBC questions about unpaid wages to Filipina nanny
Tina Olivero has quit as a PC candidate after being asked by CBC News about a Labour Relations Agency decision last year ordering her to pay ...

2017 Fiat 124 Spider questions if the answer is always Miata
Filed under: 2015 LA Auto Show , Fiat , Convertible , Budget , Performance There are few ways we can think of to improve the Mazda MX-5 Miata, ...

The craziest and most interesting questions Apple asks during job interviews
Working at Apple is incredibly fast-paced and challenging, and if you happen to be an engineer or designer at Apple , this dynamic is undoubtedly ...

Everything Apple does can be explained by this one simple question
This has been a huge year for Apple, the most valuable company in the world, with the launch of three major products: The Apple Watch , Apple ...

Trump Was Asked Leading Questions, But The Questions Were Still Valid
On the subject of Donald Trump's headline-grabbing refusal to reject Nazi tactics, I think Kevin Drum has a point: It would be one thing if ...

Gwen Stefani Gets Asked Intimate Questions About Blake Shelton
Gwen Stefani Gets Asked Intimate Questions About Blake Shelton

As Acting Coach Cameron Thor Faces 13 Years In Prison, Questions Arise About His Sex Assault Case & Conviction ...
The District Attorney's office must have known it had a weak case against well-known Hollywood acting coach Cameron Thor from the very beginning. ...

Got refugee questions? We have answers.
Implications over the refugee crisis hits close to home.

Pushbullet Adds Option to Send Texts From Tablets, Answers Pro Questions in AMA
Pushbullet , the service you once loved but now seem to hate because they want to make money and survive as a company, introduced a new feature ...

Resources last updated: 11/22/2015 10:38:08 PM