Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4320 > unrolled thread
| Started by | donsummario@gmail.com |
|---|---|
| First post | 2012-10-25 05:42 -0700 |
| Last post | 2012-10-26 02:19 -0700 |
| Articles | 8 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Windows iconized when gone on second place donsummario@gmail.com - 2012-10-25 05:42 -0700
Re: Windows iconized when gone on second place "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-10-25 15:40 +0000
Re: Windows iconized when gone on second place donsummario@gmail.com - 2012-10-25 13:12 -0700
Re: Windows iconized when gone on second place Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2012-10-25 23:24 +0200
Re: Windows iconized when gone on second place "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-10-26 06:24 +0000
Re: Windows iconized when gone on second place donsummario@gmail.com - 2012-10-26 00:31 -0700
Re: Windows iconized when gone on second place "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-10-26 07:51 +0000
Re: Windows iconized when gone on second place donsummario@gmail.com - 2012-10-26 02:19 -0700
| From | donsummario@gmail.com |
|---|---|
| Date | 2012-10-25 05:42 -0700 |
| Subject | Windows iconized when gone on second place |
| Message-ID | <69482a60-7ea3-4d4b-97fa-20cb7905f4c1@googlegroups.com> |
Hi people, I have a problem in V.O. 2.7b with windows opened from a primary window and used for a search of data used in a primary window just opened.... but the window used for a search is iconized on task bar ...!!! I need to have this window not iconized, but on second order for consulting and verify data used or a new search. Tia in advance. Mario
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2012-10-25 15:40 +0000 |
| Message-ID | <aet4r6Forf9U1@mid.individual.net> |
| In reply to | #4320 |
Hi Mario, I don't think someone can help you without seeing your sourcecode. Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | donsummario@gmail.com |
|---|---|
| Date | 2012-10-25 13:12 -0700 |
| Message-ID | <ad614136-6787-4de7-9d0d-5d9828d7e96d@googlegroups.com> |
| In reply to | #4320 |
Il giorno giovedì 25 ottobre 2012 14:42:50 UTC+2, donsu...@gmail.com ha scritto: > Hi people, > > I have a problem in V.O. 2.7b with windows opened from a primary window and used for a search of data used in a primary window just opened.... but the window used for a search is iconized on task bar ...!!! I need to have this window not iconized, but on second order for consulting and verify data used or a new search. > > Tia in advance. > > > > Mario Ok, I thing that my problem is: how use the "Self:owner" to open a window Upon another window just opened on Desktop ?? And not iconize the first window ??? I hope be simple now. Tia Mario
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <k.faller_withoutthat_@onlinehome.de> |
|---|---|
| Date | 2012-10-25 23:24 +0200 |
| Message-ID | <sgbj88dn9guc55s4qjtg7pe0iimtn05e3q@4ax.com> |
| In reply to | #4322 |
Mario, sorry, but that's still to little. >Ok, I thing that my problem is: how use the "Self:owner" to open a window Upon another window just opened on Desktop ?? And not iconize the first window ??? * Desktop? "Really" Windows desktop, or do you mean Vo's MDI Shell? * what type is your starting window? * what type your search window? * how do initiate the opening of the search window, with a menu, a button, who's owner i can only say i open search dialogs from my datawindow for years without any problem... As Wolfgang said: show us the code, which calls the search window, please. Karl
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2012-10-26 06:24 +0000 |
| Message-ID | <aeuolhF5k07U1@mid.individual.net> |
| In reply to | #4322 |
Ciao Mario, > Ok, I thing that my problem is: how use the "Self:owner" to open a > window Upon another window just opened on Desktop ?? And not iconize > the first window ??? I hope be simple now. what the owner of a window depends: normally: - if the owner of a datawindow is the shell window, then you have normal MDI - if the owner of a datawindow is another datawindow, you have a subdatawindow or maybe a tabpage - the owner of a dialog window is usable onyl if the dialog window is modeless, otherwise the use of the owner can proceed only if the datawindow is closed. I suppose you have a modeless dialog window or a data window for the search input, and then open another datawindow for the results. Then both need the shell as owner, and you can shift the focus to the other window by :SetFocus() or :ToTop(). But your original message was that you had changed apparently nothing, and the window behaved in a strange manner. And you haven't answered to my offer to look into your problem. Wolfgang --
[toc] | [prev] | [next] | [standalone]
| From | donsummario@gmail.com |
|---|---|
| Date | 2012-10-26 00:31 -0700 |
| Message-ID | <a9195b06-c6f9-41aa-af51-459e314ed58a@googlegroups.com> |
| In reply to | #4324 |
Il giorno venerdì 26 ottobre 2012 08:24:51 UTC+2, Wolfgang Riedmann ha scritto:
> Ciao Mario,
>
>
>
> > Ok, I thing that my problem is: how use the "Self:owner" to open a
>
> > window Upon another window just opened on Desktop ?? And not iconize
>
> > the first window ??? I hope be simple now.
>
>
>
> what the owner of a window depends:
>
>
>
> normally:
>
> - if the owner of a datawindow is the shell window, then you have
>
> normal MDI
>
> - if the owner of a datawindow is another datawindow, you have a
>
> subdatawindow or maybe a tabpage
>
> - the owner of a dialog window is usable onyl if the dialog window is
>
> modeless, otherwise the use of the owner can proceed only if the
>
> datawindow is closed.
>
>
>
> I suppose you have a modeless dialog window or a data window for the
>
> search input, and then open another datawindow for the results. Then
>
> both need the shell as owner, and you can shift the focus to the other
>
> window by :SetFocus() or :ToTop().
>
>
>
> But your original message was that you had changed apparently nothing,
>
> and the window behaved in a strange manner.
>
>
>
> And you haven't answered to my offer to look into your problem.
>
>
>
> Wolfgang
>
>
>
>
>
>
>
>
>
>
>
> --
I Wolfgang
Here are the method for open the first window ( the window of search)
METHOD GesPnFor CLASS PlaShellWindow
LOCAL oGesPnfor AS GesPnfor //Ricerca e gestione delle Prime Note Passive
IF !OkPassword("Amministra")
IF OkPassword("PNFNUO") .and. OkPassword("PNFMOD")
oGesPnfor := GesPnfor{SELF:Owner,,,}
oGesPnfor:show()
ELSE
WarningBox{SELF,"ATTENZIONE !!!","L'Operatore "+Pla_nome+CRLF+;
" non è abilitato alla gestione dela gestione delle registrazioni di P.N. Fornitori"}:Show()
RETURN
ENDIF
ELSE
oGesPnfor := GesPnfor{SELF:Owner,,,}
oGesPnfor:show()
ENDIF
And this is the Method that open the secondary window with the detail selected from the primary.
METHOD ButtonSel() CLASS Gespnfor
// LOCAL oTstpnFOR AS TstpnFOR
LOCAL oTespnFOR AS TespnFOR
LOCAL Modo := "MODIFICA" AS STRING
SELF:Pointer := Pointer{ POINTERHOURGLASS }
NumerofapnFor := Str(SELF:oDCbGesFafopn:Server:NUREG,10)
DataFaPnFor := DToS(SELF:oDCbGesFafopn:Server:DTREG)
oTespnFOR := TespnFOR{ SELF:owner,,SELF:oDCbGesFafopn:Server,modo }
oTespnFOR:Setup()
oTespnFOR:Prereg()
//SELF:Pointer := Pointer{ POINTERARROW }
oTespnFOR:Show()
And this is the method that complete the fields in a window called from the above method
METHOD Setup() CLASS Tespnfor
//LOCAL oFornitori AS Fornitori
LOCAL oscadenze := scadenze{} AS OBJECT
IF SELF:sModo == "INSERIMENTO" //se sono in inserimento
//omitted
ELSEIF SELF:sModo == "MODIFICA" //se sono in modifica
SELF:oDCmDasca1:Enable()
SELF:oDCmDasca2:Enable()
SELF:oDCmDasca3:Enable()
SELF:oDCmDasca4:Enable()
SELF:oDCmDasca5:Enable()
SELF:oDCmDasca6:Enable()
SELF:oCCButtonNriga:Enable()
SELF:oCCButtonMriga:Enable()
SELF:oCCButtonAriga:Enable()
SELF:oDCmRata1:Disable()
SELF:oDCmRata2:Disable()
SELF:oDCmRata3:Disable()
SELF:oDCmRata4:Disable()
SELF:oDCmRata5:Disable()
SELF:oDCmRata6:Disable()
SELF:mNureg := SELF:server:Nureg
SELF:mDtreg := SELF:server:Dtreg
SELF:Dataregold := SELF:server:Dtreg
SELF:mTipo := SELF:server:Tipo
SELF:mData := SELF:server:Data
SELF:mNume := SELF:server:Nume
SELF:mGenere := SELF:server:Genere
IF Upper(SELF:server:Genere) == "F"
SELF:oTPFabbisogno:mCocli := SELF:server:Cocli
SELF:oTPFabbisogno:mPaga := SELF:server:Paga
SELF:oTPFabbisogno:mIva1 := SELF:server:Iva1
SELF:oTPFabbisogno:mIva2 := SELF:server:Iva2
SELF:oTPFabbisogno:mTimp1 := SELF:server:Timp1
SELF:oTPFabbisogno:mTimp2 := SELF:server:Timp2
SELF:oTPFabbisogno:mTIva1 := SELF:server:Tiva1
SELF:oTPFabbisogno:mTIva2 := SELF:server:Tiva2
SELF:oTPFabbisogno:mSconca := SELF:server:Sconca
SELF:oTPFabbisogno:mSpetra := SELF:server:Spetra
SELF:oTPFabbisogno:mImballo := SELF:server:Imballo
SELF:oTPFabbisogno:mTotmerce := ((SELF:server:Timp1 + SELF:server:Timp2)-(SELF:server:Imballo + SELF:server:Spetra)- SELF:server:Sconca)
SELF:ImportoVecchio := ((SELF:server:Timp1 + SELF:server:Tiva1)+(SELF:server:Timp2 + SELF:server:Tiva2) - SELF:server:Sconca)
SELF:oTPFabbisogno:mtotalepn := ((SELF:server:Timp1 + SELF:server:Tiva1) + (SELF:server:Timp2 + SELF:server:Tiva2))// - SELF:server:Sconca)
SELF:oTPFabbisogno:mtotale := ((SELF:server:Timp1 + SELF:server:Tiva1) + (SELF:server:Timp2 + SELF:server:Tiva2))
ELSE
SELF:oTPServizi:mCocli := SELF:server:Cocli
SELF:oTPServizi:mPaga := SELF:server:Paga
SELF:oTPServizi:mIva1 := SELF:server:Iva1
SELF:oTPServizi:mTimp := (SELF:server:Timp1 - (SELF:server:TotSepa + SELF:server:Totprev + SELF:server:TOtcna))
SELF:oTPServizi:mImpve := (SELF:server:Timp1 - (SELF:server:TotSepa + SELF:server:Totprev + SELF:server:TOtcna))
SELF:oTPServizi:mTimp1 := SELF:server:Timp1
SELF:oTPServizi:mTIva1 := SELF:server:Tiva1
SELF:oTPServizi:mTotrite := SELF:server:Totrite
SELF:oTPServizi:mTotSepa := SELF:server:TotSepa
SELF:oTPServizi:mTotprev := SELF:server:Totprev
SELF:oTPServizi:mSpeanti := SELF:server:Speanti
SELF:oTPServizi:mTotcna := SELF:server:Totcna
SELF:oTPServizi:mCascna := SELF:server:Cascna
SELF:oTPServizi:mCasprev := SELF:server:casprev
SELF:oTPServizi:mGesepa := SELF:server:Gesepa
SELF:oTPServizi:mRitacco := SELF:server:Ritacco
SELF:ImportoVecchio := (SELF:server:Timp1 + SELF:server:Tiva1 + SELF:server:Speanti)
SELF:oTPServizi:mtotalepn := (SELF:server:Timp1 + SELF:server:Tiva1 + SELF:server:Speanti)
SELF:oTPServizi:mtotale := ((SELF:server:Timp1 + SELF:server:Tiva1 + SELF:server:Speanti) - SELF:server:Totrite)
ENDIF
SELF:mDasca1 := SELF:server:Dasca1
SELF:mRata1 := SELF:server:Rata1
SELF:mDasca2 := SELF:server:Dasca2
SELF:mRata2 := SELF:server:Rata2
SELF:mDasca3 := SELF:server:Dasca3
SELF:mRata3 := SELF:server:Rata3
SELF:mDasca4 := SELF:server:Dasca4
SELF:mRata4 := SELF:server:Rata4
SELF:mDasca5 := SELF:server:Dasca5
SELF:mRata5 := SELF:server:Rata5
SELF:mDasca6 := SELF:server:Dasca6
SELF:mRata6 := SELF:server:Rata6
SELF:oDCmEsitopa:Enable()
SELF:oDCmDatapa:Enable()
//Rilevamento Righe da Trascrivere Sul file Temporaneo
//Sospendi la relazione
SELF:oSFTstpnfo_DETAIL:Server:SuspendNotification()
//Rilevamento dei movimenti di bolla e assegno il record al file temp
oscadenze := scadenze{}
oscadenze:SetOrder(2)
oscadenze:gotop()
IF oscadenze:Seek("F"+DToS(SELF:mDTREG) + Str(SELF:mnuREG, 10))
DO WHILE !oscadenze:EOF .AND. ((DToS(oscadenze:SC_DREG) + Str(oscadenze:SC_NREG, 10)) == ;
(DToS(SELF:mDTREG) + Str(SELF:mnuREG, 10)))
IF NetAppend(SELF,SELF:oSFTstpnfo_DETAIL:Server,200)
SELF:oSFTstPNFO_DETAIL:Server:SC_TIPO := oscadenze:SC_TIPO
SELF:oSFTstpnfo_DETAIL:Server:SC_TREG := oscadenze:SC_TREG
SELF:oSFTstpnfo_DETAIL:Server:SC_DREG := oscadenze:SC_DREG
SELF:oSFTstpnfo_DETAIL:Server:SC_NREG := oscadenze:SC_NREG
SELF:oSFTstpnfo_DETAIL:Server:SC_DDOC := oscadenze:SC_DDOC
SELF:oSFTstpnfo_DETAIL:Server:SC_NDOC := oscadenze:SC_NDOC
SELF:oSFTstpnfo_DETAIL:Server:SC_CODI := oscadenze:SC_CODI
SELF:oSFTstpnfo_DETAIL:Server:SC_DESC := oscadenze:SC_DESC
SELF:oSFTstpnfo_DETAIL:Server:SC_ESIT := oscadenze:SC_ESIT
SELF:oSFTstpnfo_DETAIL:Server:SC_DSCA := oscadenze:SC_DSCA
SELF:oSFTstpnfo_DETAIL:Server:SC_DPAG := oscadenze:SC_DPAG
SELF:oSFTstpnfo_DETAIL:Server:SC_IMPO := oscadenze:SC_IMPO
SELF:oSFTstpnfo_DETAIL:Server:PAGATO := oscadenze:PAGATO
SELF:oSFTstpnfo_DETAIL:Server:CLIFOR := oscadenze:CLIFOR
SELF:oSFTstpnfo_DETAIL:Server:ANNO := oscadenze:ANNO
SELF:oSFTstpnfo_DETAIL:Server:AZIENDA := oscadenze:AZIENDA
SELF:oSFTstpnfo_DETAIL:Server:Commit()
SELF:oSFTstpnfo_DETAIL:Server:Unlock()
//SELF:prgid := (SELF:prgid + 1)
ENDIF
oscadenze:Skip()
ENDDO
ELSE
WarningBox{SELF,"ATTENZIONE","MANCA IL DETTAGLIO A QUESTA PRIMA NOTA!!!"}:Show()
ENDIF
oscadenze:Close()
//Riprendi la relazione
SELF:oSFTstpnfo_DETAIL:Server:ResetNotification()
SELF:oSFTstpnfo_DETAIL:Server:Refresh()
SELF:oSFTstpnfo_DETAIL:Server:Notify(NOTIFYFILECHANGE)
ENDIF
SELF:mTipo:SetFocus()
RETURN NIL
At the end of this Method, the window of search is iconized on status bar of the system (win. seven or XP is the same). But is dangerouse for the operator, because easy forget the icon of the primary window of search and open more window search ...
I need that this window of search standing on video open and take a focus when is close the window of details.
Can you help me ???
TIA, Mario
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2012-10-26 07:51 +0000 |
| Message-ID | <aeutnoF6nh1U1@mid.individual.net> |
| In reply to | #4325 |
Ciao Mario, this seems a little bit strange: > METHOD Setup() CLASS Tespnfor > SELF:mTipo := SELF:server:Tipo > SELF:mTipo:SetFocus() if I understand your code correctly, self:mTipo is the content of a database field, but you cannot set the focus to the content of a field, only to a control, so this should be oDCmTipo:SetFocus() Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | donsummario@gmail.com |
|---|---|
| Date | 2012-10-26 02:19 -0700 |
| Message-ID | <867a3065-f458-4d65-a747-7273ff623788@googlegroups.com> |
| In reply to | #4326 |
Il giorno venerdì 26 ottobre 2012 09:51:22 UTC+2, Wolfgang Riedmann ha scritto: > Ciao Mario, > > > > this seems a little bit strange: > > > > > > > METHOD Setup() CLASS Tespnfor > > > > > > > SELF:mTipo := SELF:server:Tipo > > > > > SELF:mTipo:SetFocus() > > > > > > if I understand your code correctly, self:mTipo is the content of a > > database field, but you cannot set the focus to the content of a field, > > only to a control, so this should be > > > > oDCmTipo:SetFocus() > > > > Wolfgang I Wolfgang, my Good, how deep is difficult to catch bugs not in evidence from compilation !!! Thanks for your attention and suggest, now work fine. Mario
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web