topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Acompañemos a William esta en una dificil situacion
|
Me alegro mucho de que todo se vaya solucionando poco.
Dios aprieta pero no ahoga. Aunque, a veces podría apretar un poco menos. <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->
|
Acompañemos a William esta en una dificil situacion
|
William,
Me alegra que todo halla salido bien,
Albeiro,
|
Acompañemos a William esta en una dificil situacion
|
Familia,
Mi hijo está en casa ya en recuperación, nos falta las terapias, pero lo importante es que ya está en casa.
Saludos a todos
|
Acompañemos a William esta en una dificil situacion
|
Bien.....
|
Acompañemos a William esta en una dificil situacion
|
Gracias a Dios !!!
Un abrazo.
Miguel
|
Acompañemos a William esta en una dificil situacion
|
Estimado Willam,
Te acompañamos y que tu hijo tenga una pronta recuperación, un abrazo de aliento para que superes tus problemas
Tu amigo
Arturo
|
Acompañemos a William esta en una dificil situacion
|
William:
Que tu hijo se recupere totalmente y pronto, son mis mejores deseos.
Saludos
|
Acquisire un fattura elettronica
|
Abbiamo visto come si crea una fattura ok
Ma Voi non acquisite i dati da una fattura elettronica di un vostro fornitore per esempio ?
come possiamo acquisire i dati ?
Avete una vaga idea ?
|
Acquisire un fattura elettronica
|
ciao
mai pensato , e non ci penso nemmeno.
Perche' se gestisco un magazzino non e' detto ( ed al 100% e' cosi ) che i codici articoli che mi arrivano siano uguali ai miei.
la stampi , inserisco il documento per la parte relativa al magazzino
e il documento cartaceo stampato lo dai al contabile per la parte contabile.
fine.
|
Acquisire un fattura elettronica
|
Ah ok.
Ho visto poi che si poteva prendere un xml e fargli riconoscere i vari tag cosi per esempio per avere un archivio delle fatture arrivate. R memorizzarle direttamente nel gestionale.
Per la firma cosa fai tu?
|
Acquisire un fattura elettronica
|
Scusa nel magazzino...
Non metti codice articolo e codice articolo fornitore? Certo se poi un ci ha tanti fornitori è un casino forse con una tabella si può gestire
|
Acquisire un fattura elettronica
|
importare la fattura passiva ? mai.
per la firma :
premesso : io genero il file .xml e mi fermo li. (punto <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> )
poi :
1) cliente che si appoggia a piattaforma del suo commercialista .
2) cliente che si appoggia a piattaforma comprata da se .
quindi il problema non e' mio . ( punto <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> )
ciao
|
Acquisire un fattura elettronica
|
Ciao Silvio ,
fai il processo inverso, invece di creare il file XML ,
lo leggi e da li poi registrare sia la fattura in contabilità e nel caso anche movimentare il magazzino .
Maurizio
<!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
|
Acquisire un fattura elettronica
|
Esatto proprio quello mi serve il carico del Magazzino
quando ci arriva una fattura dovrebbe farlo in automatico
certo che come dice Solving noi dobbiamo avere inserito lo stesso codice articolo del fornitore
ma a pensarci bene nella nostra anagrafica articoli c'è
il campo codice articolo, codice fornitore, e codice articolo del fornitore
quindi non ci dovrebbero essere problemi
al massimo fare in modo di farlo selezionare al momento se non lo trovasse
Per "l"operazione inversa" ho delle perplessità " perchè
ultimamente ho creato la classe TfatturaElettronica
non più con il Fcreate e fclose come all'inizio
ma ho usato le classe TXmlDocument() e TXmlNode()
forse più professionale e posso dividere le parti con vari metodi
Per l'acquisizione pensavo ci fosse un comando per riconoscere i tag inseriti del tipo
If oXmlFile:GetTag('DatiTrasmissione')
..
endif
sto ancora cercando....
|
Acquisire un fattura elettronica
|
[quote="solving":1imn3wiq]importare la fattura passiva ? mai.
per la firma :
premesso : io genero il file .xml e mi fermo li. (punto <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> )
poi :
1) cliente che si appoggia a piattaforma del suo commercialista .
2) cliente che si appoggia a piattaforma comprata da se .
quindi il problema non e' mio . ( punto <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> )
ciao[/quote:1imn3wiq]
[b:1imn3wiq]>Fattura Passiva ?[/b:1imn3wiq]
MA veramente questa fatturazione mi piace sempre più, si dovevano caricare le fatture dei fornitori adesso con la fattura elettronica tu dovresti caricarla e poi automaticamente come dice il Maurizio Ghirardini caricare la contabilità e il Carico Magazzino
Poi diventa una procedura sensata !!!
lo sai che... risparmio di tempo <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
[b:1imn3wiq]ma premesso che il cliente ti dice [/b:1imn3wiq]
1) guarda devo firmare la fattura elettronica ci sarebbe questo servizio con sta DLL me lo fai il collegamento in automatico per la firma direttamente in fattura ?
2) guarda devo inviare la fattura non al mio commercialista ma direttamente al portale ( dove ci sta anche la conservazione) :
[b:1imn3wiq]Agenzie delle Entrate - Fatture e Corrispettivi - Conservazione Sostitutiva[/b:1imn3wiq]
Sito : <!-- m --><a class="postlink" href="https://ivaservizi.agenziaentrate.gov.it/portale/">https://ivaservizi.agenziaentrate.gov.it/portale/</a><!-- m -->
Codice Utente:
Password:
Pin :
tu non gli fai la mascherina con l'inserimento dei codice utente ,password e pin e fai in modo che dopo il logon trasmetti la fattura direttamente ?
oHttp:Open( 'POST', "https://ivaservizi.agenziaentrate.gov.it/portale/ ", .F. )
oHttp:SetRequestHeader( "Content-Type","application/json")
oHttp:Send( '{ "Username": "user@company.com", "Password": "secret"}' )
ovviamente è una prova non l'ho provato anche perchè manca il pin però probabile sia così
[b:1imn3wiq]Ma poi per la Firma[/b:1imn3wiq]
Certo si tratta di leggere scrivere un certificato digitale Che vuoi che sia?
con Fivewin abbiamo fatto cose peggio..
vedrai che prima o poi qualcuno di noi ci riesce ...
|
Acquisire un fattura elettronica
|
I problemi sono due: le codifiche di chi emette le fatture non è detto siano quelle che hai tu, e il tag che identifica dove andranno a mettere il codice è molto variabile e serve almeno un mapping (chi emette la fattura il campo codice articolo può chiamarlo codart, ca, pippuzzo, codice articolo nostro, etc).
La seconda è che nel file che ti arriva non è detto sia chiara la resa, quindi è possibile che non si resca a identificare in maniera univoca chi è che riceve la merce se possiede più punti vendita con stessa partita iva.
|
Acquisire un fattura elettronica
|
[quote="Patrizio":1wfpkmgw]I problemi sono due: le codifiche di chi emette le fatture non è detto siano quelle che hai tu, e il tag che identifica dove andranno a mettere il codice è molto variabile e serve almeno un mapping (chi emette la fattura il campo codice articolo può chiamarlo codart, ca, pippuzzo, codice articolo nostro, etc).
La seconda è che nel file che ti arriva non è detto sia chiara la resa, quindi è possibile che non si resca a identificare in maniera univoca chi è che riceve la merce se possiede più punti vendita con stessa partita iva.[/quote:1wfpkmgw]
Scusate, forse non ho capito di cosa state parlando ma il formato del file XML è codificato piuttosto rigidamente, non si possono aggiungere tag a casaccio.
EMG
|
Acquisire un fattura elettronica
|
Hai mai fatto il carico fatture dei fornitori e conseguente mente devi caricare i prodotti ( carico) in archivio movimenti
fornitore xxx
cod 1 banane qt. 30 4.00 euro ecc
Bene : al posto del cartaceo adesso hai l'elettronico quindi partendo dal file xml uno deve essere in grado di caricare i prodotti ovviamente nell'anagrafe degli articoli ci deve essere un campo tipo codice articolo del fornitore altrimenti la funziona non lo trova e non ti carica niente
|
Acquisire un fattura elettronica
|
Ok, capito. Un bel casino.
EMG
|
Acquisire un fattura elettronica
|
[quote="Enrico Maria Giordano":3am430c0][quote="Patrizio":3am430c0]I problemi sono due: le codifiche di chi emette le fatture non è detto siano quelle che hai tu, e il tag che identifica dove andranno a mettere il codice è molto variabile e serve almeno un mapping (chi emette la fattura il campo codice articolo può chiamarlo codart, ca, pippuzzo, codice articolo nostro, etc).
La seconda è che nel file che ti arriva non è detto sia chiara la resa, quindi è possibile che non si resca a identificare in maniera univoca chi è che riceve la merce se possiede più punti vendita con stessa partita iva.[/quote:3am430c0]
Scusate, forse non ho capito di cosa state parlando ma il formato del file XML è codificato piuttosto rigidamente, non si possono aggiungere tag a casaccio.
EMG[/quote:3am430c0]
Nell'xml puoi definire tanti tag <CodiceArticolo> quanti vuoi, ogni tag a sua volta contiene <CodiceTipo> e <CodiceValore>. <CodiceTipo> è la tipologia, in cui puoi andare a scrivere quello che vuoi (tipo puoi scriverci EAN, ma anche CodiceEAN, ma pure codice articolo, etc), in <CodiceValore> troverai il codice riferito al tipo.
Visto che in realtà non è stata definita una codifica in maniera rigida, chi emette la fattura in <CodiceTipo> scrive quello che vuole non è così immediato o semplice fare il match tra le informazioni.
|
Acquisire un fattura elettronica
|
Ah, buono a sapersi, grazie!
EMG
|
Acrobat - ActiveX support
|
When I try to use the ActiveX (TActiveX) control protocot to call a pdf file, I always get a message telling me that Tactivex external procedure is not found...
Can any one help me on this
Regards
Marc
|
Acrobat - ActiveX support
|
Marc,
FW for Clipper (16 bits) can't manage ActiveX.
You need FWH (32 bits) to use ActiveX.
|
Acrobat activex - problems with old Acrobat versions
|
Hi to all,I have a problem using the activex class to open a pdf file because if the Acrobat Reader installed is an old version my app crash.Is there any way to check the Acrobat Reader version before to call the activex or another way to check if we can use the Acrobat activex in that environment ?Thanks in advance.Sample code (from FWH):function Main() local oWnd, oActiveX DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support" oActiveX = TActiveX():New( oWnd, "AcroPDF.PDF.1" ) oWnd:oClient = oActiveX // To fill the entire window surface oActiveX:Do( "LoadFile", "fwintro.pdf" ) oActiveX:Do( "SetCurrentPage", 1 ) ACTIVATE WINDOW oWnd return nil
|
Acrobat activex - problems with old Acrobat versions
|
if ! PDFActivex(@arq) return(.f.)endifDEFINE WINDOW oWndpdf MDICHILD OF oWnd vscroll icon oico TITLE ALLTRIM(cFile)pdfoActiveX = TActiveX():New( oWndpdf, arq )oWndpdf:oClient = pdfoActiveXpdfoActiveX:Do( "LoadFile", cFile )pdfoActiveX:Do( "SetCurrentPage", 1 )ACTIVATE WINDOW oWndpdf MAXIMIZED valid(oWndpdf:=NIL,pdfoActiveX:end(),.t.)***********************************Function PDFActivex(MyProgID)***********************************LOCAL adretor:=.T.if IsActivex( "PDF.PdfCtrl.1" ); MyProgID := "PDF.PdfCtrl.1"; endifif IsActivex( "PDF.PdfCtrl.2" ); MyProgID := "PDF.PdfCtrl.2"; endifif IsActivex( "PDF.PdfCtrl.3" ); MyProgID := "PDF.PdfCtrl.3"; endifif IsActivex( "PDF.PdfCtrl.4" ); MyProgID := "PDF.PdfCtrl.4"; endifif IsActivex( "PDF.PdfCtrl.5" ); MyProgID := "PDF.PdfCtrl.5"; endifif IsActivex( "PDF.PdfCtrl.6" ); MyProgID := "PDF.PdfCtrl.6"; endifif IsActivex( "PDF.PdfCtrl.7" ); MyProgID := "PDF.PdfCtrl.7"; endifif IsActivex( "acroPDF.PDF.1" ); MyProgID := "acroPDF.PDF.1"; endifif IsActivex( "acroPDF.PDF.2" ); MyProgID := "acroPDF.PDF.2"; endifif Empty( MyProgID ) msg( "PDF Activex não instalado !!!"+CRLF+" É necessário que seja instalado o programa ADOBE READER, consulte o suporte do sistema.",.f.) adretor:=.F.endifreturn(adretor)
|
Acrobat command-line
|
Hi,
Till now I used Robohelp to create help-files. But I was wondering that if I can use PDF-files for help. I know how to open a PDF-file from FWH, but can I open directly a specific page? Does anyone use this?
Thanks,
Marc
|
Acrobat command-line
|
Dear Marc,
Can You open PDF file without Acrobat Reader? If so, How do you do?
Regards,
Dutch
|
Acrobat command-line
|
When you install Acrobat Reader an activex control is installed at the same time. You can access that activex control with the TActiveX Class.
For more information check the ActiveX samples and more information can be found in google.
Regards
|
Acrobat command-line
|
Thanks Juan Carlos Salinas Ojeda,
Regards,
Dutch
|
Acrobat command-line
|
Dutch,
I don't open a PDF without Acrobat Reader. The problem is that I can only open a PDF-file in Acrobat Reader without jumping directly to a specefic page. It open allways with the first page..
Regards,
Marc
|
Acrobat command-line
|
Dear Marc,
I've got it.
Regards,
Dutch
|
Acrobat command-line
|
Juan Carlos Salinas Ojeda,
Do you have a list of commands for activex for acrobat?
I have search google a found some commands, but there was no info how to use them <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Best regards,
Marc
|
Acrobat command-line
|
Marc,
you can use ActiveXXX to get detailed informations about an activeX control.
[url:2ynoxt8s]http://www.winsite.com/bin/Info?4580[/url:2ynoxt8s]
|
Acrobat command-line
|
Thanks Stefan,
That program is working very nice!
Regards,
Marc
|
Acrobat reader
|
Dear friend, the following sample opens a PDF in Acrobat Reader:
[code=fw:217i2f27]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oWnd, oPdf<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> oPdf = TActiveX<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, <span style="color: #ff0000;">"AcroPDF.PDF"</span> <span style="color: #000000;">)</span><br /><br /> oPdf:<span style="color: #000000;">LoadFile</span> = <span style="color: #ff0000;">"E:<span style="color: #000000;">\F</span>W<span style="color: #000000;">\U</span>pdate43-29-sera.pdf"</span><br /><br /> oWnd:<span style="color: #000000;">oClient</span> = oPdf<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br /> <span style="color: #0000ff;">MAXIMIZED</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:217i2f27]
Anybody knows how to open a password protected PDF without user intervention (the program knows the password)?
Thanks in advance.
EMG
|
Acrobat reader
|
Enrico,
This doesn't answer your question exactly, but I use a great library for all kinds of PDF related work, and it definitely allows you to open a secured PDF with ease. You can then resave it with new options or do all kinds of cool stuff. Also, I use the Sumatra PDF reader for super fast display of PDF files.
Check it out:
<!-- m --><a class="postlink" href="http://www.quickpdflibrary.com">http://www.quickpdflibrary.com</a><!-- m -->
<!-- m --><a class="postlink" href="http://blog.kowalczyk.info/software/sumatrapdf">http://blog.kowalczyk.info/software/sumatrapdf</a><!-- m -->
Andy
|
Acrobat reader
|
Thank you anyway.
EMG
|
Acrobat reader
|
Good morning.
[quote:38v5do37]
DEFINE WINDOW oWnd
oPdf = TActiveX():New( oWnd, "AcroPDF.PDF" )
oPdf:LoadFile = "E:\FW\Update43-29-sera.pdf"
[/quote:38v5do37]
I use Foxit freeware instead of Acrobat Reader. While Acrobat reader is bigger than 70 mb, Foxit is only 5 mb and much, much faster to load and to open files. Intregration with Firefox is also better than acrobat. Also I don't like that acrobat reader is looking for upgrades all the time. So my question is: What do I have to put to replace "AcroPDF.PDF" in you code above.
Thank you very much.
Alvaro
|
Acrobat reader
|
Are you sure that Foxit offers an ActiveX object?
EMG
|
Acrobat reader
|
Yes, I just found out:
<!-- m --><a class="postlink" href="http://www.foxitsoftware.com/pdf/sdk/activex/">http://www.foxitsoftware.com/pdf/sdk/activex/</a><!-- m -->
<!-- m --><a class="postlink" href="http://foxit.vo.llnwd.net/o28/pub/foxit/manual/enu/FoxitActiveX30_guide.pdf">http://foxit.vo.llnwd.net/o28/pub/foxit ... _guide.pdf</a><!-- m -->
The reader is freeware, but the ocx is not, I think. I will try it.
Alvaro
|
Acrobat reader
|
I wonder if similar documentation is available for Acrobat reader...
EMG
|
Acrobat reader
|
Dear All,
This function is useful. How can I make it on Top of Window Backgroup? Because when I use this function from the Main window, it will be minimized.
[quote="Enrico Maria Giordano":3qvbzh2p]Dear friend, the following sample opens a PDF in Acrobat Reader:
[code=fw:3qvbzh2p]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oWnd, oPdf<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> oPdf = TActiveX<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, <span style="color: #ff0000;">"AcroPDF.PDF"</span> <span style="color: #000000;">)</span><br /><br /> oPdf:<span style="color: #000000;">LoadFile</span> = <span style="color: #ff0000;">"E:<span style="color: #000000;">\F</span>W<span style="color: #000000;">\U</span>pdate43-29-sera.pdf"</span><br /><br /> oWnd:<span style="color: #000000;">oClient</span> = oPdf<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br /> <span style="color: #0000ff;">MAXIMIZED</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:3qvbzh2p]
Anybody knows how to open a password protected PDF without user intervention (the program knows the password)?
Thanks in advance.
EMG[/quote:3qvbzh2p]
Regards,
Dutch
|
Acrobat reader
|
Try:
[code=fw:1lx8uwik]<div class="fw" id="{CB}" style="font-family: monospace;">SETWINDOWPOS<span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span></div>[/code:1lx8uwik]
EMG
|
Acrobat reader
|
Andy, can you show how you inicialize the activex control with quickpdflibrary?
I get an error with:
::oControl := TActiveX():New( oWnd, "QuickPDFAX0717.PDFLibrary" ) // crash
Thank you very much
Alvaro
|
Acrobat reader
|
Alvaro,
I am not using the ActiveX version so I don't have any experience with it...sorry.
I use the DLL version.
Andy
|
Acrobat reader
|
Hi Andy,
Could you share the code of an example on how to get started with the DLL ?
Thank you,
Alvaro
|
Acrobat reader
|
Hi Enrico,
Maybe you can find your answer here:
[url:1x3p3qst]http://www.adobe.com/devnet/acrobat/?view=documentation[/url:1x3p3qst]
|
Acrobat reader
|
Hi Enrico,
I found this while searching the net:
[quote:2gkdckok]>To programmatically enter a password and bypass the user
>interface prompt for
>password, you must replace the standard "security handler" for
>Acrobat with your own
>security handler. There is no way to bypass the password prompt with
>the standard
>Acrobat security handler. For an example of a custom security
>handler, see the "Rot13"
>sample plug-in.[/quote:2gkdckok]
Looks like this "Rot13 Sample Plug-in" is supplied with Acrobat 4 SDK
Hope this helps.
|
Acrobat reader
|
Thank you.
EMG
|
Act. FiveHc y FiveHx con XH y Bcc
|
Saludos.
Un cuestion de actualizaciones.
Tengo actualmente FWH 8.11 y requiero saber si puedo actaulizarme a xHarbour 1.2 y bcc 5.8.2 para no tener errorres del PCODE.
E igual, de ser posible, no recuerdo como hacer para recompilar mis lib de fwh.
Fwh 8.11, xH 1.1, bcc 5.5
|
Act. FiveHc y FiveHx con XH y Bcc
|
Noe,
Puedes actualizarte a la versión más reciente de FWH desde <!-- m --><a class="postlink" href="http://www.fivetechsoft.com">http://www.fivetechsoft.com</a><!-- m --> sección pedidos.
Para recompilar las librerias puedes usar este simple fichero bat:
for %%f in (*.prg) do c:\harbour\bin\harbour %%f /n /ic:\fwh\include;c:\harbour\include
for %%f in (*.c) do c:\bcc582\bin\bcc32 -c -Ic:\bcc582\include;c:\harbour\include %%f
for %%f in (*.obj) do c:\bcc582\bin\tlib fiveh.lib -+ %%f /0 /P32,,
|
ActXEvents
|
hi,
i try some ActiveX Sample and saw CLASS TActiveX in c:\fwh\source\classes\activex.prg
there is a Function ActXEvents() but i can't find it <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
|
ActXEvents
|
[code=fw:2ehwodhx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> ACTXEVENTS <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> LPWSTR pW = AnsiToWide<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> char * <span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> ITypeInfo * ptinfo;<br /> ITypeLib * ptlib;<br /> IUnknown * pUnk = hb_oleParam<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> IProvideClassInfo2 * ppci2;<br /> GUID guid;<br /> <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> LoadTypeLib<span style="color: #000000;">(</span> pW, &ptlib <span style="color: #000000;">)</span> != S_OK <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span> <br /> hb_xfree<span style="color: #000000;">(</span> pW <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">return</span>;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> hb_xfree<span style="color: #000000;">(</span> pW <span style="color: #000000;">)</span>; <br /> <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! pUnk->QueryInterface<span style="color: #000000;">(</span> IID_IProvideClassInfo2,<br /> <span style="color: #000000;">(</span> void ** <span style="color: #000000;">)</span> &ppci2 <span style="color: #000000;">)</span> == S_OK <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span>;<br /> <br /> ppci2->GetGUID<span style="color: #000000;">(</span> GUIDKIND_DEFAULT_SOURCE_DISP_IID, &guid <span style="color: #000000;">)</span>;<br /> ppci2->Release<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ptlib->GetTypeInfoOfGuid<span style="color: #000000;">(</span> guid, &ptinfo <span style="color: #000000;">)</span> == S_OK <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span> <br /> FUNCDESC * pfdesc;<br /> BSTR bsName;<br /> LPSTR cName;<br /> LPWSTR pW2;<br /> TYPEATTR * ptattr;<br /> <br /> ptinfo->GetTypeAttr<span style="color: #000000;">(</span> &ptattr <span style="color: #000000;">)</span>;<br /><br /> hb_reta<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>; <br /><br /> <span style="color: #00C800;">for</span><span style="color: #000000;">(</span> WORD w = <span style="color: #000000;">0</span>; w < ptattr->cFuncs; w++ <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> PHB_ITEM pSubarray = hb_itemArrayNew<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> PHB_ITEM pName, pItem;<br /> <br /> ptinfo->GetFuncDesc<span style="color: #000000;">(</span> w, &pfdesc <span style="color: #000000;">)</span>; <br /> ptinfo->GetDocumentation<span style="color: #000000;">(</span> pfdesc->memid, &bsName, <span style="color: #00C800;">NULL</span>, <span style="color: #00C800;">NULL</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span>;<br /> cName = WideToAnsi<span style="color: #000000;">(</span> bsName <span style="color: #000000;">)</span>;<br /> hb_arraySet<span style="color: #000000;">(</span> pSubarray, <span style="color: #000000;">1</span>, hb_itemPutC<span style="color: #000000;">(</span> <span style="color: #00C800;">NULL</span>, cName <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> hb_arraySet<span style="color: #000000;">(</span> pSubarray, <span style="color: #000000;">2</span>, hb_itemPutNL<span style="color: #000000;">(</span> <span style="color: #00C800;">NULL</span>, pfdesc->memid <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> hb_arrayAdd<span style="color: #000000;">(</span> hb_param<span style="color: #000000;">(</span> <span style="color: #000000;">-1</span>, HB_IT_ANY <span style="color: #000000;">)</span>, pSubarray <span style="color: #000000;">)</span>;<br /> hb_xfree<span style="color: #000000;">(</span> cName <span style="color: #000000;">)</span>;<br /> ptinfo->ReleaseFuncDesc<span style="color: #000000;">(</span> pfdesc <span style="color: #000000;">)</span>;<br /> hb_itemRelease<span style="color: #000000;">(</span> pSubarray <span style="color: #000000;">)</span>; <br /> <span style="color: #000000;">}</span> <br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> MessageBox<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"can't read types from ActiveX"</span>, <span style="color: #ff0000;">"error"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>; <br /><span style="color: #000000;">}</span> <br /> </div>[/code:2ehwodhx]
|
ActXEvents
|
hi,
THX very much <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
that was what i miss in ot4xb "AtlAxWin" CLASS.
i will try to implement it and hope i can use it with Xbase++ while AX & Co is running in different Thread.
|
Action em Tree
|
Ola to all…. (I am new in the group)
1) Has as to make one tree (TTreeView) with opcao of ACTION (exactly she will be necessary to change the classroom)?
2) have as to change the source of tree?
I am very been thankful the group for the chance, or possibility of being able to clarify these you doubt!
Thanks a lot
Ola a todos.... (sou novo aki no grupo)
1) Tem como fazer um tree (TTreeView) com opcao de ACTION (mesmo se for preciso mudar a classe) ?
2) tem como mudar a fonte do tree ?
Fico muito agradecido ao grupo pela oportunidade, ou possibilidade de poder esclarecer essas duvidas !
Muito Obrigado
Gilberto
(Brasil - Toledo - PR)
<!-- e --><a href="mailto:giba_f@hotmail.com">giba_f@hotmail.com</a><!-- e -->
|
Action em Tree
|
Gilberto,
Please review samples\TestTree.prg:
oTree:bChanged = { || oWnd:SetText( If( oTree:GetSelected():GetParent() != nil,;
oTree:GetSelected():GetParent():cPrompt + " + ", "" ) + ;
oTree:GetSelText() ) }
|
Action em Tree
|
First, thanks for the reply.
Had seen and tested, but not was exatament what I am needing… The ACTION would be the idea!
Nor changing the classroom?
Thanks a lot!
OBS: sorry my ingles (hehehehe)
|
Action em Tree
|
Still I am needing. If they any person to souper and will be able to inform, I am been thankful to me!
|
Action em Tree
|
Enter key is used to open and close a tree branch, so you should not use it to fire an action. You may use mouse double click event oTree:bLDblClick = { || MsgInfo( "double click" ) }
|
Action en Ribbon
|
Amigos
Porque no se puede ejecutar la acción en un botón en Ribbon cuando no ha terminado la primera.
[code=fw:o2qkph8p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ADD GROUP oGr3 RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #00C800;">Nil</span> WIDTH <span style="color: #000000;">60</span> <br /> @<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn3 GROUP oGr3 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Play"</span> BITMAP <span style="color: #ff0000;">"B-PLAY"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">59</span>,<span style="color: #000000;">30</span> MOSTLEFT <span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">Action</span> PlayMusic<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:o2qkph8p]
Con TActiveX está tocando un audio quiero otro y no da, pero con doble click funciona.
Gracias por la ayuda
Saludos,
Adhemar
|
Action en Ribbon
|
Prueba asi:
@1,1 ADD BUTTON oBtn3 GROUP oGr3 PROMPT "Play" BITMAP "B-PLAY" SIZE 59,30 MOSTLEFT ROUND Action ( oBtn3:lProcessing := .F., PlayMusic() )
|
Action en Ribbon
|
Gracias Distinguido Antonio
Funcionó perfecto.
Saludos,
Adhemar
|
Action execute when at bottom of xbrowse
|
Hello,
Is it possible to execute an action when the last row is selected in xbrowse?
I want to load a some data from the server and add them to the current file to improve network-speed.
Thanks,
Marc
[quote:6wq8m9ai]
Hello,
I'm using SQlite, and for browsing the data I make a query or the database that is located on the server, and store the fields I want browse, in a temporary dbf-file on the a local path.
Untill now I had no problems, but I created a testtable of 120000 records and the proces to read the data from the server into a temporary file takes a long time.
Is there a faster way to do it? I was thinking first read only 100 records, show them, and then reading the rest into the background and add them to the temporary database. Does anyone created something like that already?
Thanks,
Marc
[/quote:6wq8m9ai]
|
Action execute when at bottom of xbrowse
|
Marc
Just a quick thought .. would it be possible or practical to have a server side task that goes out every hour or so and builds\re-builds your .dbf temp table for your application to access ?
This would solve your 'on-demand' client side software to build each time .. and give you a near time access to your records?
.............
As far as a routine to build your records in real time I would do something like this :
create a temp .dbf
Open your sql-lite recordset using ADO .. something like this
cSQL := "SELECT * FROM YourTable"
oRs := TOleAuto():New( "ADODB.Recordset" )
oRs:CursorType := 1 // opendkeyset
oRs:CursorLocation := 3 // local cache
oRs:LockType := 3 // lockoportunistic
TRY
oRs:Open(cSQL,< sql-lite connection string > )
CATCH oErr
Close Temp
MsgInfo( "Error in Opening YourTable table" )
RETURN(.F.)
END TRY
select 1
Use temp excl
zap
oRs:MoveFirst()
Do while .not. oRs:eof
Select temp
append blank
temp->field1 := oRs:Fields("field1"):Value
temp->field2 := oRs:Fields("field2"):Value
...
...
oRs:MoveNext()
Enddo
select temp
dbCommit()
oRs:Close()
select temp //// use in your app
Rick Lipkin
|
Action execute when at bottom of xbrowse
|
Rick,
Thanks for your reply.
The routine to read the SQL-database into a local temporay datebase was already working fine.
The problem was that it take a long time to read them,if there are a lot of records.
That was the reason that I first wanted to load only the first 100 records, and read only the rest I they want to show the rest.
That piece of the program shows all the orders of a company. Normaly the customer in only intrested in the last orders, but sometimes he want to go more back in time.
I can also make a setting of how many orders must be displayed, and he want more, he can change it.
But I thought it would be nice that the are automaticly will be loaded if he is at the end of the browse.
Regards,
Marc
|
Action execute when at bottom of xbrowse
|
I have thought about some changes to the browse scroll bar for some time.
If you are scrolling through a large amount of filtered/scoped data, it takes time to get the #records and position.
I think there should be an option that allows for page scrolling only.
The thumb portion stays in the middle until you reach the bof or eof.
You can click on the bottom section to page down or the top section to page up. I think this would accomplish what you want.
You would just have to add your code the the skip routine.
In addition, the browse would not have to calculate the # records and the position in the database all of the time.
This would speed up the creation and updating of the browse.
|
Action execute when at bottom of xbrowse
|
Marc
I appreciate your answer .. are you using ADO to connect to your Sql-Lite database ? If so, I would HIGHLY recommend using the 'local cache' option when you create your recordset object. You might find you will not need to create a .dbf copy on the client.
[code=fw:39yezy3s]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRs:<span style="color: #000000;">CursorLocation</span> := <span style="color: #000000;">3</span> <span style="color: #B900B9;">// local cache</span><br /> </div>[/code:39yezy3s]
You will be absolutely amazed at how quickly you can scroll thru and page up and down using the local cache option .. If you do not specify Local cache you will be thrashing through records on the database side and that can be 'BRUTAL' .
Rick Lipkin
|
Action execute when at bottom of xbrowse
|
Rick,
I'm not using ADO to connect to my SQLIite database but the library [url:ba2al2pv]http://www2.zzz.com.tw/phpbb2/viewforum.php?f=1&sid=7353c3fdd171bd916f2b8599265acf02[/url:ba2al2pv]
I had not noticed that the 'oRs:CursorLocation := 3 // local cache'-line in your example was for caching.
I don't know that there is also a cache-option in the library I'm using. I will verify that.
Regards,
Marc
|
Action execute when at bottom of xbrowse
|
Assuming nTotRecs is already assigned with total number of records in the server database,
Please try including this function inside oBrw:bChange codeblock or in a timer.
[code=fw:1shib0sq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> oBrw:<span style="color: #000000;">nLen</span> < nTotRecs .and. ;<br /> oBrw:<span style="color: #000000;">BookMark</span> + <span style="color: #000000;">2</span> * oBrw:<span style="color: #000000;">nDataRows</span> - oBrw:<span style="color: #000000;">nRowSel</span> - <span style="color: #000000;">1</span> > oBrw:<span style="color: #000000;">nLen</span><br /> ReadAndAddNextChunk<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// This is your function</span><br /> oBrw:<span style="color: #000000;">KeyCount</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span></div>[/code:1shib0sq]
I have not tested this code but I hope it works.
|
Action execute when at bottom of xbrowse
|
Thanks Rao,
I will try it.
Regards,
Marc
|
Action mientras se mantiene presionado un boton
|
Hola amigos, como dice el titulo.
Necesito saber si x boton se mantiene presionado, para ejecutar una accion mientras se mantenga presionado. (valga la redundancia).
Agradeceré algún ejemplo.
Saludos.
|
Action mientras se mantiene presionado un boton
|
Puedes explicar ó poner un ejemplo acerca de lo que deseas hacer ?
|
Action mientras se mantiene presionado un boton
|
Antonio, gracias por contestar.
Lo que quiero hacer es que se lance una accion contínua mientras el boton se mantenga presionado (como el GoDown() del xbrowse) y que el ACTION finalice al dejar de presionar el boton.
Algo asi:
While oBtn:lPressed
oBrw:GoDown()
Enddo
Es decir, desde el ACTION del oBtn quiero hacer exactamente lo que hace la tecla-abajo en un xbrowse, en el cual se va recorriendo sus registros hasta soltar la tecla.
Espero haber sabido explicarme.
Saludos, y gracias nuevamente.
|
Action mientras se mantiene presionado un boton
|
Francisco,
[quote:1apkvm3m]
Lo que quiero hacer es que se lance una accion contínua mientras el boton se mantenga presionado (como el GoDown() del xbrowse) y que el ACTION finalice al dejar de presionar el boton.
Algo asi:
While oBtn:lPressed
oBrw:GoDown()
Enddo
Es decir, desde el ACTION del oBtn quiero hacer exactamente lo que hace la tecla-abajo en un xbrowse, en el cual se va recorriendo sus registros hasta soltar la tecla.
[/quote:1apkvm3m]
Suena a desarrollo touch <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
En el pasado me hubiera gustado tener eso mismo...
El problema es que el action se lanza al finalizar un click ( down + up).
Seria necesario un action en el momento del ::Down(). Pero ahora viene el problema ¿ pero como lanzar un evento ::Down() si el boton despues de pulsarlo no ha sido nuevamente pulsado ?
Una idea que se me ocurrio entonces, y que no puse en practica, no se por que, fue establecer un timer en el metodo ::Down(). El timer estaria llamando a la action hasta que al ser llamado el metodo ::Up(), porque se solto el boton, se apague el timer.
Esta es una de esas cosas en el desarrollo touch que no pude con ella o no supe encararla correctamente. Quizá Antonio o Mr. Rao si lo puedan abarcar.
Saludos
|
Action mientras se mantiene presionado un boton
|
hmpaquito.
Efectivamente, estoy desarrollando un comandero touch.
[quote:1sms8o2x]Una idea que se me ocurrio entonces, y que no puse en practica, no se por que, fue establecer un timer en el metodo ::Down(). El timer estaria llamando a la action hasta que al ser llamado el metodo ::Up(), porque se solto el boton, se apague el timer.
Esta es una de esas cosas en el desarrollo touch que no pude con ella o no supe encararla correctamente. Quizá Antonio o Mr. Rao si lo puedan abarcar.[/quote:1sms8o2x]
Voy a hacer pruebas con lo que mencionas. Me parece factible.
Gracias.
Saludos.
|
Action mientras se mantiene presionado un boton
|
No sería parecido a un drag&drop ?
------------------------- Edito ---------------------------
O a la accion de mover un control en una edicion, ahí estamos controlando también si el control está pulsado
|
Action mientras se mantiene presionado un boton
|
Gracias, Cristóbal.
También voy a revisar esa opción.
Saludos.
|
Action mientras se mantiene presionado un boton
|
Me acabo de acordar que en aquel entonces intenté también que la llamada al action fuera mas continua cuanto mas tiempo llevara pulsado el boton. Intente simular el comportamiento Android en sus listas.
Todo fue un fracaso: volví, después de muchas horas, al sistema un click una fila up/down. Lamentable.
Lo más seguro es que se pueda hacer con fwh... pero me quedó una idea... "no se puede... no se puede... al menos con los eventos que ahora mismo recoge fwh".
|
Action mientras se mantiene presionado un boton
|
[quote="hmpaquito":1vudbunq]Me acabo de acordar que en aquel entonces intenté también que la llamada al action fuera mas continua cuanto mas tiempo llevara pulsado el boton. Intente simular el comportamiento Android en sus listas.
Todo fue un fracaso: volví, después de muchas horas, al sistema un click una fila up/down. Lamentable.
[b:1vudbunq]Lo más seguro es que se pueda hacer con fwh... pero me quedó una idea... "no se puede... no se puede... al menos con los eventos que ahora mismo recoge fwh[/b:1vudbunq]".[/quote:1vudbunq]
Mira esto
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=16&t=31751&sid=a034192f3d0b9aa3efb08a583949d01a#p185339">viewtopic.php?f=16&t=31751&sid=a034192f3d0b9aa3efb08a583949d01a#p185339</a><!-- l -->
|
Action mientras se mantiene presionado un boton
|
Es cierto Cristóbal, habría que ver si con las mejoras táctiles de fwh se podría hacer.
Yo por mi parte, desgraciadamente, tengo el focus del trabajo en otras tareas.
|
Action mientras se mantiene presionado un boton
|
Yo creo que usar un timer sería una posible solución
|
Action mientras se mantiene presionado un boton
|
Una idea sería colocar una data lPressed en la TButton
y que se activa con el metodo LButtonDown y se desactava com el metodo LButtonUp,
con esto el programador controlaría si el button esta presionado en el bAction con un bucle.
|
Action on Get bypass other get's valid
|
I noticed that when you press the button on a get that has action clause it does not fire the valid when you are on other gets.
It seems that it should skip the valid only on it's own get.
Maybe the lCancel for the button should be set when the tget gets the focus from another control and turned off when the tget loses focus to another control.
|
Action when closing a window
|
Hello,how can i assign a action to closing a window, someting like ON CLOSE ?Can i decide with the return value of this action to close the window or to stay in the window ?
|
Action when closing a window
|
Wolfang,Use the VALID clause:ACTIVATE WINDOW oWnd VALID MsgYesNo( "Want to end ?" )the expression used with VALID has to return a logical value
|
Action when closing a window
|
Hello Antonio,thanks, that it so easy that it don't came in my mind <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
Activacion de button clausula when
|
Hola amigos:
En la opcion de salida de la aplicacion quiero controlar que no hay ventanas abiertas antes de cerrar , y utilizo
esto.
[code=fw:7x79ulc9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">WHEN</span> Len<span style="color: #000000;">(</span>oWndMain:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">aWnd</span><span style="color: #000000;">)</span> == <span style="color: #000000;">0</span> <br /> </div>[/code:7x79ulc9]
Tanto en la opcion de cierre del menu como en un boton.
En el menu el comportamiento es correcto, cuando hay una ventana abierta se desabilita , aparece en gris difuminado
pero en el boton en cuanto abres una ventana se desabilita pero no aparece en gris difuminado y ya no se vuelve a activar
aunque no haya ninguna ventana abierta no funciona la opcion del boton.
¿Alguna idea de como resolverlo, ?
Saludos y gracias anticipadas.
Jose
|
Activacion de button clausula when
|
Before activating every child window add this line
[code=fw:3et6f4vt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oChildWnd:<span style="color: #000000;">bPostEnd</span> := <span style="color: #000000;">{</span> || WndMain<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">oBar</span>:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oChildWnd<br /> </div>[/code:3et6f4vt]
|
Activacion de button clausula when
|
Hi Mr. Rao.
Thanks for the support
Yes works fine with this modification
[code=fw:noew6crg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oWndChild:<span style="color: #000000;">bPostEnd</span> := <span style="color: #000000;">{</span> || oWndMain:<span style="color: #000000;">oBar</span>:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> </div>[/code:noew6crg]
but how to disable the button in the oBar same menu behavoir ?
[url=https://ibb.co/FXwQp95:noew6crg][img:noew6crg]https://i.ibb.co/xYjnZy1/Button-When.png[/img:noew6crg][/url:noew6crg]
Regards
|
Activacion de button clausula when
|
[code=fw:8asp0dfw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTIVATE</span> oChildWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> WndMain<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">oBar</span>:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> .....</div>[/code:8asp0dfw]
|
Activacion de button clausula when
|
[quote="nageswaragunupudi":21cf0cof][code=fw:21cf0cof]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTIVATE</span> oChildWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> WndMain<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">oBar</span>:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> .....</div>[/code:21cf0cof][/quote:21cf0cof]
Hi Mr. Rao,
Unfortunately, this solution does not work.
Nor is it such a serious problem, just to know more about Fivewin .
Thanks for your support.
Jose.
|
Activar Bluetooth
|
Saludos,
Alguna forma que desde FWPCC se pueda activar el bluetooth si este se encuentra apagado
[code=fw:1kp10sp7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">public</span> <span style="color: #00C800;">class</span> BlueTooth<br /><br /><span style="color: #000000;">{</span><br /><br /><span style="color: #00C800;">private</span> enum BluetoothMode : <span style="color: #000000;">int</span><br /><br /><span style="color: #000000;">{</span><br /><br />Off = <span style="color: #000000;">0</span>, <span style="color: #B900B9;">//Turn off the Bluetooth radio.</span><br /><br />Connectable = <span style="color: #000000;">1</span>, <span style="color: #B900B9;">//Turn on the Bluetooth radio, and make it connectable.</span><br /><br />Discoverable = <span style="color: #000000;">2</span> <span style="color: #B900B9;">//Turn on the Bluetooth radio, and make it both connectable and discoverable.</span><br /><br /><span style="color: #000000;">}</span>;<br /><br /><span style="color: #000000;">[</span>DllImport<span style="color: #000000;">(</span><span style="color: #ff0000;">"BthUtil.dll"</span><span style="color: #000000;">)</span><span style="color: #000000;">]</span><br /><br /><span style="color: #00C800;">private</span> <span style="color: #00C800;">static</span> extern int BthSetMode<span style="color: #000000;">(</span>BluetoothMode mode<span style="color: #000000;">)</span>;<br /><br /><span style="color: #00C800;">public</span> <span style="color: #00C800;">static</span> bool EnableBT<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #000000;">{</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">(</span>BthSetMode<span style="color: #000000;">(</span>BluetoothMode.Connectable<span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><span style="color: #000000;">)</span>;<br /><br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">public</span> <span style="color: #00C800;">static</span> bool DisableBT<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #000000;">{</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">(</span>BthSetMode<span style="color: #000000;">(</span>BluetoothMode.Off<span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><span style="color: #000000;">)</span>;<br /><br /><span style="color: #000000;">}</span><br /><br /><span style="color: #000000;">}</span></div>[/code:1kp10sp7]
|
Activar Bluetooth
|
Añadir esta libreria
[quote:2ljta138]
echo $(VCDIR)\lib\arm\BthUtil.lib >> msvc.tmp
[/quote:2ljta138]
Este es el codigo
[code=fw:2ljta138]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />Funciones para activar el Bluetooth desde FWPPC<br />Pablo Vidal<br />*/</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #B900B9;">/*Enciende el Bluetooch para conectarse*/</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LBTON <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br />hb_retl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>BthSetMode<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">/*Enciende y activa Bluetooch en modo descubierto*/</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LBTOPEN <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br />hb_retl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>BthSetMode<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">/*Apaga el Bluetooth*/</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> LBTOFF <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br />hb_retl<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>BthSetMode<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /> </div>[/code:2ljta138]
|
Activar Bluetooth
|
Pablo,
Muchas gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
En solo unos pocos dias, ya eres un gran experto de FWPPC. Enhorabuena <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Activar Bluetooth
|
Gracias Antonio
Un Experto Noooooooo, si no que trato de buscar las solucion a los problemas,
y todo esta en la red...
|
Activar Insert
|
Como puedo activar por defecto el Insert a la entrada de una aplicacion.
(manias de clientes)
Gracias.
|
Activar Insert
|
Garbi,
Prueba con:
#define VK_INSERT 45 // 0x2D
___Keyboard( VK_INSERT )
|
Activar Insert
|
Me da el siguiente error al ejecutar:
__KEYBOARD(0) Error Interno 5333
|
Activar Insert
|
Parece que te está enlazando la de Clipper y no la de FW
El codigo de la función está en source\winapi\keybrd.c , prueba a llamarla de otra manera y compila el fichero C de nuevo
|
Activar RTS en la Comunicacion COM
|
Muy buenas foro, estoy utilizando las funciones:OpenComm( "COM1", 1024, 128 )BuildCommDcb( "COM1:9600,n,8,1", @cDcb )para conectarme con el COM pero necesito activar el RTS, ¿ me podrían decir como puedo activarlo?Un Saludo.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.