|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
setting the top formHI,
Wow I go on vacation and you guys go nuts on the updates. I have an interesting behavior that is a little tuff to explain. I have an open form and from the menu of the open form I call a new form. I'll call the new form "form B" and the first form "form A". I ask "form B" to open a modal dialog (a lookup dialog). Then after making a selection from the dialog (it should return the data to "form B" and "form B" should be the top form. But what happens is the data is returned to 'form B' but "form A" is the the top form. So the question is what is telling Dabo which of the forms is the top form (active form?)? And why would the modal dialog change anything. To be honest I don't recall if the behavior was present in the past or is something new. -- John Fabiani _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/200807190805.49184.jfabiani@... |
|
|
Re: setting the top formjohnf wrote:
> To be honest I don't recall if the behavior was present in the past or is > something new. This type of question is easily answered by going back in time with Dabo. For example: cd dabo svn up -r 4112 svn up -r {2008-06-01} Paul _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/488206DC.7060402@... |
|
|
Re: setting the top formOn Saturday 19 July 2008 08:23:08 am Paul McNett wrote:
> johnf wrote: > > To be honest I don't recall if the behavior was present in the past or is > > something new. > > This type of question is easily answered by going back in time with > Dabo. For example: > > cd dabo > svn up -r 4112 > svn up -r {2008-06-01} > > Paul I'm not suggesting that the behavior had anything to do with the recent changes. As I suggested I don't know if the behavior started recently or was always present and I just didn't notice it during my testing. So I am asking what/ how/ where does Dabo determine the top form. -- John Fabiani _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/200807190828.26105.jfabiani@... |
|
|
Re: setting the top formjohnf wrote:
> On Saturday 19 July 2008 08:23:08 am Paul McNett wrote: >> johnf wrote: >>> To be honest I don't recall if the behavior was present in the past or is >>> something new. >> This type of question is easily answered by going back in time with >> Dabo. For example: >> >> cd dabo >> svn up -r 4112 >> svn up -r {2008-06-01} >> >> Paul > > I'm not suggesting that the behavior had anything to do with the recent > changes. As I suggested I don't know if the behavior started recently or was > always present and I just didn't notice it during my testing. So I am asking > what/ how/ where does Dabo determine the top form. I'm not clear what you mean by 'top form'. There can be any number of top-level forms. If you use MDI=True on Windows then there is indeed only one top form (the mdi parent form) but otherwise there is no single top-level form. In your case, what control are you sending to your modal dialog to be the parent? Paul _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/488209C4.1070304@... |
|
|
Re: setting the top formOn Jul 19, 2008, at 10:05 AM, johnf wrote:
> Wow I go on vacation and you guys go nuts on the updates. I have an > interesting behavior that is a little tuff to explain. I have an > open form > and from the menu of the open form I call a new form. I'll call the > new > form "form B" and the first form "form A". I ask "form B" to open a > modal > dialog (a lookup dialog). Then after making a selection from the > dialog (it > should return the data to "form B" and "form B" should be the top > form. But > what happens is the data is returned to 'form B' but "form A" is the > the top > form. So the question is what is telling Dabo which of the forms is > the top > form (active form?)? And why would the modal dialog change anything. I don't know why the active form would change, but you can always try calling formB.bringToFront() to make it the frontmost form. -- Ed Leafe _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/2A996BDC-6361-4C4A-A0DF-C6B366610491@... |
|
|
Re: setting the top formOn Saturday 19 July 2008 08:35:32 am Paul McNett wrote:
> johnf wrote: > > On Saturday 19 July 2008 08:23:08 am Paul McNett wrote: > >> johnf wrote: > >>> To be honest I don't recall if the behavior was present in the past or > >>> is something new. > >> > >> This type of question is easily answered by going back in time with > >> Dabo. For example: > >> > >> cd dabo > >> svn up -r 4112 > >> svn up -r {2008-06-01} > >> > >> Paul > > > > I'm not suggesting that the behavior had anything to do with the recent > > changes. As I suggested I don't know if the behavior started recently or > > was always present and I just didn't notice it during my testing. So I > > am asking what/ how/ where does Dabo determine the top form. > > I'm not clear what you mean by 'top form'. There can be any number of > top-level forms. If you use MDI=True on Windows then there is indeed > only one top form (the mdi parent form) but otherwise there is no single > top-level form. > > In your case, what control are you sending to your modal dialog to be > the parent? > > Paul suggested mostly because it sounds easy. -- John Fabiani _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/200807190843.24585.jfabiani@... |
|
|
Re: setting the top formOn Saturday 19 July 2008 08:37:08 am Ed Leafe wrote:
> formB.bringToFront() That worked but Paul question made me watch the screen more closely and the active form does change before the modal dialog appears. I'm guessing that I'm doing something to cause that behavior. I'll check into it. -- John Fabiani _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/200807190851.18576.jfabiani@... |
|
|
Re: setting the top formjohnf wrote:
> On Saturday 19 July 2008 08:37:08 am Ed Leafe wrote: >> formB.bringToFront() > > That worked but Paul question made me watch the screen more closely and the > active form does change before the modal dialog appears. I'm guessing that > I'm doing something to cause that behavior. I'll check into it. If the parent of the dialog is on the other form, then that form could come forward when the focus switches to the dialog. Which is why I asked about the parent of the dialog... Paul _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/48821020.3030609@... |
|
|
Re: setting the top formOn Saturday 19 July 2008 09:02:40 am Paul McNett wrote:
> johnf wrote: > > On Saturday 19 July 2008 08:37:08 am Ed Leafe wrote: > >> formB.bringToFront() > > > > That worked but Paul question made me watch the screen more closely and > > the active form does change before the modal dialog appears. I'm > > guessing that I'm doing something to cause that behavior. I'll check > > into it. > > If the parent of the dialog is on the other form, then that form could > come forward when the focus switches to the dialog. Which is why I asked > about the parent of the dialog... > > Paul I haven't checked yet - but what you say makes sense. But I wonder why "form B" the calling form in this case would not be the parent. John Fabiani _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/200807191343.45520.jfabiani@... |
|
|
Re: setting the top formjohnf wrote:
> On Saturday 19 July 2008 09:02:40 am Paul McNett wrote: >> If the parent of the dialog is on the other form, then that form could >> come forward when the focus switches to the dialog. Which is why I asked >> about the parent of the dialog... > > I haven't checked yet - but what you say makes sense. But I wonder why > "form > B" the calling form in this case would not be the parent. It isn't dependent on who is the "calling form", it is dependent on who gets set as the parent object by sending the parent argument. So you could have this code in FormB: dlg = dabo.ui.dDialog(formA) dlg.show() Indeed, you could even have the parent not be a form: dlg = dabo.ui.dDialog(formA.lblFirstName) dlg.show() Not that you'd want to do that, the point being that it isn't who creates the dialog, but who is explicitly set as the parent... Normally, they'd be equal because you'd have: dlg = dabo.ui.dDialog(self) dlg.show() Paul _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/53953.209.125.109.190.1216501438.squirrel@... |
|
|
Re: setting the top formOn Saturday 19 July 2008 02:03:58 pm Paul McNett wrote:
> johnf wrote: > > On Saturday 19 July 2008 09:02:40 am Paul McNett wrote: > >> If the parent of the dialog is on the other form, then that form could > >> come forward when the focus switches to the dialog. Which is why I asked > >> about the parent of the dialog... > > > > I haven't checked yet - but what you say makes sense. But I wonder why > > "form > > B" the calling form in this case would not be the parent. > > It isn't dependent on who is the "calling form", it is dependent on who > gets set as the parent object by sending the parent argument. So you could > have this code in FormB: > > dlg = dabo.ui.dDialog(formA) > dlg.show() > > Indeed, you could even have the parent not be a form: > > dlg = dabo.ui.dDialog(formA.lblFirstName) > dlg.show() > > Not that you'd want to do that, the point being that it isn't who creates > the dialog, but who is explicitly set as the parent... > > Normally, they'd be equal because you'd have: > > dlg = dabo.ui.dDialog(self) > dlg.show() > > Paul I'm sorry I have not checked this out yet. Getting back from a vacation and need to fix a bunch of minor damages from wind and smoke. -- John Fabiani _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/200807200946.48936.jfabiani@... |
|
|
Re: setting the top formOn Saturday 19 July 2008 09:02:40 am Paul McNett wrote:
> johnf wrote: > > On Saturday 19 July 2008 08:37:08 am Ed Leafe wrote: > >> formB.bringToFront() > > > > That worked but Paul question made me watch the screen more closely and > > the active form does change before the modal dialog appears. I'm > > guessing that I'm doing something to cause that behavior. I'll check > > into it. > > If the parent of the dialog is on the other form, then that form could > come forward when the focus switches to the dialog. Which is why I asked > about the parent of the dialog... > > Paul On review of my code I was not passing 'self' (the form) to my sub-class. All is working now. Thanks for the help. -- John Fabiani _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/200807211058.27249.jfabiani@... |
| Free Forum Powered by Nabble | Forum Help |