Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #3900 > unrolled thread
| Started by | Martin <spam@spam.spam> |
|---|---|
| First post | 2012-08-07 15:50 +0100 |
| Last post | 2012-08-13 09:52 +0200 |
| Articles | 6 — 5 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Sending a message within a program Martin <spam@spam.spam> - 2012-08-07 15:50 +0100
Re: Sending a message within a program "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-08-07 15:00 +0000
Re: Sending a message within a program Martin <spam@spam.spam> - 2012-08-07 16:59 +0100
Re: Sending a message within a program Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2012-08-07 17:10 +0200
Re: Sending a message within a program dlzc <dlzc1@cox.net> - 2012-08-07 08:41 -0700
Re: Sending a message within a program D.J.W. van Kooten <public@ic2remove.this.com> - 2012-08-13 09:52 +0200
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-08-07 15:50 +0100 |
| Subject | Sending a message within a program |
| Message-ID | <YW9Ur.979750$LY3.262050@fx22.am4> |
Not sure how to do this, but I run screen 1, then when I return to screen 2 it does something depending on the message from screen 1. Ideas are 1) Store objects in a global array and set flag on that 2) Store objects in a global array and directly run them 3) Send a message somewhere. 4) Set a global flag and the other screen process is triggered by it. This is a bit new to me so please help Thanks Martin
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2012-08-07 15:00 +0000 |
| Message-ID | <a8cos3F7t1U1@mid.individual.net> |
| In reply to | #3900 |
Hi Martin, > Not sure how to do this, but I run screen 1, then when I return to > screen 2 it does something depending on the message from screen 1. it depends if screen 2 should make his actions only on return, or also in the background. In the first case I would send message directly from screeen 1 to screen 2, in the second one I would store the messages in a global array. I'm doing a similar thing not only in the same app, and on the same computer, but on different machines onthe same database, so I need to store the messages in a database table. Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-08-07 16:59 +0100 |
| Message-ID | <mXaUr.689239$gC5.239374@fx10.am4> |
| In reply to | #3901 |
Sorry it has taken a while to reply as the reply button has gone!!!! In the INITs of the screens I want to run a method on I am saving their objects in a global array and remove on close. The screen which does changes will run the reload options on the other screens. As to network - not bothered, it is price uplift and the person who needs to know now is the person doing the uplifts. On 07/08/2012 16:00, Wolfgang Riedmann wrote: > Hi Martin, > >> Not sure how to do this, but I run screen 1, then when I return to >> screen 2 it does something depending on the message from screen 1. > > it depends if screen 2 should make his actions only on return, or also > in the background. > > In the first case I would send message directly from screeen 1 to > screen 2, in the second one I would store the messages in a global > array. > > I'm doing a similar thing not only in the same app, and on the same > computer, but on different machines onthe same database, so I need to > store the messages in a database table. > > Wolfgang >
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <k.faller_withoutthat_@onlinehome.de> |
|---|---|
| Date | 2012-08-07 17:10 +0200 |
| Message-ID | <krb2281c25lbpl14ci4lefjjc77muggklr@4ax.com> |
| In reply to | #3900 |
Martin, should this really only happen, when you enter screen2? Any case, you might study the help re Notifications. Karl >Not sure how to do this, but I run screen 1, then when I return to >screen 2 it does something depending on the message from screen 1. > >Ideas are > >1) Store objects in a global array and set flag on that >2) Store objects in a global array and directly run them >3) Send a message somewhere. >4) Set a global flag and the other screen process is triggered by it. > >This is a bit new to me so please help > >Thanks > >Martin
[toc] | [prev] | [next] | [standalone]
| From | dlzc <dlzc1@cox.net> |
|---|---|
| Date | 2012-08-07 08:41 -0700 |
| Message-ID | <67bd6680-0218-4c71-99da-0ac9d6b88f95@googlegroups.com> |
| In reply to | #3900 |
Dear Martin: On Tuesday, August 7, 2012 7:50:41 AM UTC-7, Martin wrote: > Not sure how to do this, but I run screen 1, > then when I return to screen 2 it does something > depending on the message from screen 1. You might overload screens, or see if they have a "payload" that you can use. Alternatively, you might have an array / hash of data items, each "row" for a screen. You could have screen 2 see what screen 1 returned as a message in its array entry. You could have screen 2 see what screen last surrendered control, then see what that screen returned as a message in its array entry. Not sure I'd push data from screen 1 into storage for screen 2, as a long term solution. David A. Smith
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <public@ic2remove.this.com> |
|---|---|
| Date | 2012-08-13 09:52 +0200 |
| Message-ID | <5ich28dbqisqun94oj739rgtssd0alfflh@4ax.com> |
| In reply to | #3900 |
On Tue, 07 Aug 2012 15:50:41 +0100, Martin <spam@spam.spam> wrote: Hello Martin, >Not sure how to do this, but I run screen 1, then when I return to >screen 2 it does something depending on the message from screen 1. Probably this helps you. From the window where you make a change, you call something like this BroadcastMessage( SELF, #REDISPLAY,oServer:name ) In any window where you want things changed when this broadcast is sent, you add this method: METHOD ReceiveBroadcastMessage( symMessage ,uValue ,cTxt ) CLASS MyWindow //#s Reacts on Broadcastmessage that txtobject has been added IF symMessage == #REDISPLAY // do something; you can use the paramater uValue endif FUNCTION BroadcastMessage(oSender,symMessage,uExtra,uextra2) LOCAL i AS DWORD LOCAL oCurrentChild AS OBJECT LOCAL lIsMethod AS LOGIC Default(@uExtra,"") Default(@uextra2,"") FOR i := 1 TO Len( aChildWindows ) oCurrentChild := aChildWindows[i] IF oSender != oCurrentChild lIsMethod:=IsMethod( aChildWindows[ i] ,#ReceiveBroadcastMessage ) IF lIsMethod oCurrentChild:ReceiveBroadcastMessage(symMessage,uExtra,uextra2) ENDIF ENDIF NEXT RETURN lIsMethod Dick
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web