topic
stringlengths
1
63
text
stringlengths
1
577k
clase txtprev
Saben sii esta función trabaja con xharbour, ya que presenta el preview pero vacío Luis
clase txtprev
Hola Yo la utilizo y funciona perfectamente Una vez tuve un problema parecido, y el error era que la carpeta donde estaba tenia mas de 8 caracteres, eso es por que hay un archivo bat que entra un commando DOS Saludos Patricio
clase txtprev
Gracias Patricio, no era ese el error, pero tu comentario me hizo revisar el código, y ahí me dí cuenta que había cambiado la clase tdosprn (modificada por Hernán Cicarelli) por la original de fivewin y dambié los parámetros y funcionó bien Luis
clase wcapture
Hola foro, 1.alguien que me pudiera facilitar esta clase twcapture, 2. hace tiempo vi una funcion (creo en superlib) que me permitia de un texto dividirlo con algun caracter especifico, por ej: "francisco" y me lo ponia "f.r.a.n.c.i.s.c.o." o alguna idea salu2 paco
clase wcapture
Paco: Aquí en utilidades esta la clase tCapture de Rafa Carmona quizás sea la que buscas. Saludos Ruben Fernandez.
clase wcapture
gracias ruben, pero esta no es la clase, esta es tcapcapture, y yo busco twcapture, para capturar las ventanas abiertas salu2 paco
clase wcapture
Paco: Aqui en el foro hay un link para una clase wcapture Espero te sirva, no se si es para 32 bits. <!-- m --><a class="postlink" href="http://hyperupload.com/download/012fe51f35/wcapture.zip.html">http://hyperupload.com/download/012fe51 ... e.zip.html</a><!-- m --> Saludos. Ruben Fernandez
clase wcapture
perfecto ruben,, gracias paco
clases...
hola necesito completar estos datos y acceder a ellos desde varias clases (para no usar variables globales) [code=fw:32iyjb6x]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">class</span> TDatos<br />&nbsp; &nbsp;<span style="color: #00C800;">data</span> nId<br />&nbsp; &nbsp;<span style="color: #00C800;">data</span> cDomicilio<br />&nbsp; &nbsp;<span style="color: #00C800;">data</span> cPais<br />end <span style="color: #00C800;">class</span></div>[/code:32iyjb6x] Estando dentro de la clase TPrimera poder hacer esto [code=fw:32iyjb6x]<div class="fw" id="{CB}" style="font-family: monospace;">o:= TDatos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />o:<span style="color: #000000;">nId</span>:= <span style="color: #000000;">1</span><br />o:<span style="color: #000000;">cDomicilio</span>:= <span style="color: #ff0000;">"aaaa"</span><br />o:<span style="color: #000000;">cPais</span>:= <span style="color: #ff0000;">"Argentina"</span></div>[/code:32iyjb6x] y desde la clase TSegunda poder acceder a esos datos e incluso poder cambiarlos [code=fw:32iyjb6x]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>nId<span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>cDomicilio<span style="color: #000000;">&#41;</span><br />cPais:= <span style="color: #ff0000;">"nuevo pais"</span><br />&nbsp;</div>[/code:32iyjb6x] Como lo hago? para no usar variables globales.
clases...
les dejo un proyecto vacio [url:1hv67fjt]https&#58;//drive&#46;google&#46;com/file/d/15z0bbDLeG0844KWZp2LVy1UNAhftmJD-/view?usp=sharing[/url:1hv67fjt]
clases...
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=231817#p231817">viewtopic.php?p=231817#p231817</a><!-- l -->
clases...
password.prg [code=fw:1188qt5b]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"Objects.ch"</span><br /><br />create <span style="color: #00C800;">class</span> PassWord<br />   <span style="color: #00C800;">data</span> cFile<br />   <span style="color: #00C800;">data</span> cRuta<br />   <span style="color: #00C800;">data</span> nIntento<br />   <span style="color: #00C800;">data</span> cMsje<br /><br />   <span style="color: #00C800;">method</span> <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br /><span style="color: #00C800;">endclass</span><br /><br /><span style="color: #B900B9;">/* --------------------------------------------------------- */</span><br /><span style="color: #00C800;">method</span> <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> PassWord<br /><br /><br />   ::<span style="color: #000000;">cPath</span>    := <span style="color: #ff0000;">"ruta default"</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">self</span><br /> </div>[/code:1188qt5b] main.prg [code=fw:1188qt5b]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> oPassWord := PassWord<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oPassWord:<span style="color: #000000;">cPath</span>:=<span style="color: #ff0000;">"c:<span style="color: #000000;">\t</span>uruta"</span><br /><br /> </div>[/code:1188qt5b]
class Outlook 2003
Dear Antonio, I saw your outlook 2003 class and I want ask you if is possible to insert a splitter here : [img:2tfsyyer]http&#58;//img160&#46;imageshack&#46;us/img160/4180/outlook2003bu6&#46;jpg[/img:2tfsyyer] because I saw another VB class with splitter
class Outlook 2003
Silvio, We may simulate it, because if we use a real splitter control then we may need two controls: one for the top side and another for the bottom side.
class Outlook 2003
Antonio, the top control must be link to the bottom control if i click a menu must open the components of this option. it is difficult add a splitter into your control? why you not try to see vb and dElphi oulook controls to see how run it?
class Outlook 2003
Silvio, We don't need a real splitter there. We need a "simulated" one, same as we resize a browse columns.
class Outlook 2003
ok, but I not Know how make it ...
class Outlook 2003
Silvio, Please review source\classes\wbrowse.prg and see how columns are resized
class Outlook 2003
Antonio i saw you can insert dialog on outlook2003 but i want insert on the right a Xbrowse with a tab (on bottom) it'is possible to create it ?
class Outlook 2003
Silvio, Yes, or course. Is it a MDI or SDI environment ?
class Outlook 2003
I wanted make a Mdi
class Outlook 2003
i try but it make error [code:15x5ik90] Error description&#58; Error BASE/1004 Message not found&#58; TXBROWSE&#58;AWND Called from&#58; tobject&#46;prg => TXBROWSE&#58;ERROR&#40;172&#41; Called from&#58; tobject&#46;prg => TXBROWSE&#58;MSGNOTFOUND&#40;205&#41; Called from&#58; tobject&#46;prg => TXBROWSE&#58;AWND&#40;0&#41; Called from&#58; WINDOW&#46;PRG => TMDIFRAME&#58;SYSCOMMAND&#40;0&#41; Called from&#58; => TMDIFRAME&#58;HANDLEEVENT&#40;0&#41; Called from&#58; WINDOW&#46;PRG => _FWH&#40;0&#41; Called from&#58; test2003&#46;prg => NOGPF&#40;0&#41; Called from&#58; test2003&#46;prg => WINRUN&#40;167&#41; Called from&#58; WINDOW&#46;PRG => TMDIFRAME&#58;ACTIVATE&#40;0&#41; Called from&#58; test2003&#46;prg => MAIN&#40;126&#41; [/code:15x5ik90] [code:15x5ik90] // FWH Class TOutLook2003 #include "FiveWin&#46;ch" #include "Splitter&#46;ch" #include "xbrowse&#46;ch" static lExit &#58;= &#46;F&#46; //----------------------------------------------------------------------------// function Main&#40;&#41; local oWnd, oOutLook2003, oStatusBar, oSplit, cCombo, oRad, nValue &#58;= 1 local oFont local nFor, oBrw REQUEST DBFCDX rddsetdefault&#40; "DBFCDX" &#41; DEFINE WINDOW oWnd TITLE "FWH new Class TOutLook2003 with Xbrowse" MDI // ; // MENU BuildMenu&#40;&#41; DEFINE OUTLOOK2003 oOutLook2003 OF oWnd ; PROMPTS "Mail", "Calendar", "Contacts", "" ; BITMAPS "&#46;&#46;\bitmaps\mail&#46;bmp", "&#46;&#46;\bitmaps\calendar&#46;bmp", "&#46;&#46;\bitmaps\notes&#46;bmp" oWnd&#58;oLeft = nil // Because the splitter is going to control the resize @ 1, 2 BUTTON "New" OF oOutLook2003&#58;aDialogs&#91; 1 &#93; SIZE 80, 22 ACTION BuildDlg&#40;&#41; @ 3, 2 BUTTON "Edit" OF oOutLook2003&#58;aDialogs&#91; 1 &#93; SIZE 80, 22 ACTION MsgInfo&#40; "Edit" &#41; @ 5, 2 BUTTON "Search" OF oOutLook2003&#58;aDialogs&#91; 1 &#93; SIZE 80, 22 ACTION MsgInfo&#40; "Search" &#41; @ 1, 1 COMBOBOX cCombo ITEMS &#123; "January", "February", "March", "April", "May" &#125; ; OF oOutLook2003&#58;aDialogs&#91; 2 &#93; SIZE 170, 100 DEFINE FONT oFont NAME "Arial" SIZE 0, -10 @ 12, 10 SAY Date&#40;&#41; OF oOutLook2003&#58;aDialogs&#91; 2 &#93; SIZE 80, 20 FONT oFont @ 3, 1 RADIO oRad VAR nValue OF oOutLook2003&#58;aDialogs&#91; 2 &#93; ; ITEMS "&Day", "&Week", "&Month" SIZE 100, 20 oRad&#58;SetFont&#40; oFont &#41; #ifndef __CLIPPER__ DEFINE STATUSBAR oStatusBar PROMPT " FWH Class TOutLook2003" OF oWnd #else DEFINE MESSAGE oStatusBar PROMPT " FWH Class TOutLook2003" OF oWnd #endif SetParent&#40; oOutLook2003&#58;hWnd, oWnd&#58;hWnd &#41; oWnd&#58;oClient = nil /* ############################################################################## # TXBrowse Demo # ############################################################################## */ USE CUSTOMER NEW INDEX ON field->first to "name" SET INDEX TO "name" ORDSETFOCUS&#40; "name" &#41; GO TOP oBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40; oWnd&#58;oWndClient &#41; oBrw&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLCELL oBrw&#58;nColDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;nRowDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;lColDividerComplete &#58;= &#46;t&#46; oBrw&#58;nHeaderLines &#58;= 2 oBrw&#58;nFooterLines &#58;= 1 oBrw&#58;nDataLines &#58;= 2 oBrw&#58;lFooter &#58;= &#46;t&#46; oBrw&#58;SetRDD&#40;&#41; for nFor &#58;= 1 to Fcount&#40;&#41; oBrw&#58;aCols&#91; nFor &#93;&#58;cHeader &#58;= "Field&#58; " + ltrim&#40; str&#40; nFor &#41; &#41; + CRLF + FieldName&#40; nFor &#41; oBrw&#58;aCols&#91; nFor &#93;&#58;cFooter &#58;= FieldName&#40; nFor &#41; oBrw&#58;aCols&#91; nFor &#93;&#58;bRClickHeader &#58;= &#123;|r,c,f,o| Msginfo&#40;"Right click on column header " + o&#58;cHeader, "TXBrowse power"&#41; &#125; oBrw&#58;aCols&#91; nFor &#93;&#58;bLClickFooter &#58;= &#123;|r,c,f,o| Msginfo&#40;"Left click on column footer " + o&#58;cHeader, "TXBrowse power"&#41; &#125; oBrw&#58;aCols&#91; nFor &#93;&#58;bRClickFooter &#58;= &#123;|r,c,f,o| Msginfo&#40;"Right click on column footer " + o&#58;cHeader, "TXBrowse power"&#41; &#125; oBrw&#58;aCols&#91; nFor &#93;&#58;blDClickData &#58;= &#123;|r,c,f,o| Msginfo&#40;"Left double click on column data " + o&#58;cHeader, "TXBrowse power"&#41; &#125; oBrw&#58;aCols&#91; nFor &#93;&#58;bRClickData &#58;= &#123;|r,c,f,o| Msginfo&#40;"Right click on column data " + o&#58;cHeader, "TXBrowse power"&#41; &#125; next oBrw&#58;CreateFromCode&#40;&#41; oWnd&#58;oWndClient &#58;= oBrw //splitter @ 0, 191 SPLITTER oSplit ; VERTICAL _3DLOOK ; PREVIOUS CONTROLS oOutLook2003 ; HINDS CONTROLS oWnd&#58;oWndClient ; SIZE 4, oWnd&#58;nHeight - 70 PIXEL ; OF oWnd SetParent&#40; oSplit&#58;hWnd, oWnd&#58;hWnd &#41; ACTIVATE WINDOW oWnd ; ON RESIZE oSplit&#58;Adjust&#40;&#41; ; VALID lExit &#58;= &#46;T&#46; return nil[/code:15x5ik90] there ie something not run ok
class Outlook 2003
Silvio, If you are going to use a MDI environment, it has no sense to place a browse on top of the main screen. Instead you should use a MDICHILD window. Please review samples\Test2003.prg
class Outlook 2003
I not understand
class Outlook 2003
Silvio, Where are you going to place the OutLook control ? On the main window or on a MdiChild window ?
class Outlook 2003
sorry I saw...
class TDatabase and ADO
Hello, Works this class with ADO?. I have to convert an old program that uses TDatabase. Thank you very much.
class TDatabase and ADO
Lucas, Class TDataBase does not provide ADO support currently, but it would be quite easy to create an inherited Class from TDataBase to support ADO. As I commented you, I am working on a project using ADO only, so actually I am focused on testing everything to get it working fine, and once the ADO code is fine, we could use it to build a Class TAdoDb <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Also, we have been publishing new ADO functions recently that could be used from such new Class.
class TDatabase and ADO
Thank you Antonio. The presence of the method Execute for SQL confused me. Anyway, I will rewrite the code using TDataRow, which is beautiful and very powerful and easy to use. It would be interesting to update the ADO topic in the wiki adding the post from Elvira and latest samples provided by Mr. Nages. Thank you.
class TDatabase and ADO
Lucas, Would you like to update the wiki yourself ? thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:2kybgt63]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=ado-related_stuffs[/url:2kybgt63]
class TDatabase and ADO
Lucas, You are right, Rao enhanced the Class TDataBase to have some ADO support, but it is not fully ADO compatible yet.
class TDatabase and ADO
Antonio, What is the problema with TDataRow class?. It is finished and it Works perfect. It is not a replacement for TDatabase, but it helps very much introducing data to the Recordset and with the use of dialogs too: The class is very powerfull and saves a lot of coding. For example: [code=fw:34y8v854]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lAppend &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Si hay que a¤adir</span><br />&nbsp; &nbsp; &nbsp; oData := TDataRow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oRs, <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; oRs:<span style="color: #000000;">AbsolutePosition</span> := nRegistro &nbsp;<span style="color: #B900B9;">// Goto</span><br />&nbsp; &nbsp; &nbsp; oData := TDataRow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oRs <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br /><br /><br />&nbsp; <span style="color: #00C800;">IF</span> lAppend<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"USUARIOS"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Añadir un nuevo USUARIO"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"USUARIOS"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Modificar un USUARIO"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oData:<span style="color: #000000;">USUARIO</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oData:<span style="color: #000000;">CLAVE</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> &nbsp;<span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">701</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> lSave := .T., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">702</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> lSave := .F., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lSave<br /><br />&nbsp; &nbsp; &nbsp; oData:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// ---------------------------------------------------------------------</span><br /><br />&nbsp;</div>[/code:34y8v854]
class TDatabase and ADO
Lucas, No hay ningún problema con ella <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Lo que ocurre es que Rao lleva más tiempo usando ADO y ya está encapsulando funcionalidad en las nuevas funciones de ADO y en esa clase, pero para mis pruebas con ADO de momento prefiero que no haya ninguna capa intermedia, para asi poder hacer cualquier prueba que me pueda interesar. De todas formas, en mi código ya estoy usando algunas de las funciones nuevas.
class TDatabase and ADO
TDataRow class was not meant to be just for ADO. It is also not meant to serve the purpose of TDatabase class for ADO. TDataRow is completely generic for any datasource, be it DBF, Ado, etc. It is basically a class to handle Gather/Scatter mechanism to edit existing or new records and can be used transparently without regard to the underlying datasource. Lucas, actually while using TDataRow it is not necessary to save and restore the record pointer. TDataRow itself takes care of it. Antother feature of TDataRow is that we can use even XBrowse itself as its datasource. Also both XBrowse and TDataRow make certain complex things simple. Like its much easier to handle BLOB data like photos and images. eg; oRec:Photo := MemoRead( "photo.jpg" ). This works with DBF memo fields as well as ADO blob fields without the need for specific coding. With both XBrowse and TDataRow we can write "single code" to work with any datasource. Just change the datasource and the same code works. I shall follow it up with a small sample.
class TDatabase and ADO
Rao, I think that the Class TDataRow name is little confusing, as James commented about it (not sure if he was who did it) Maybe TRecord would be easier to understand it ? I admit that I am not used to this great Class from Rao yet
class TDatabase and ADO
Sample: [code=fw:pbwzjozu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />* tstdrow.prg<br />* test TDataRow usage<br />*<br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"adodef.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> uDataSource<br /><br />   SET DATE ITALIAN<br />   SET CENTURY <span style="color: #0000ff;">ON</span><br />   SET DELETED <span style="color: #0000ff;">ON</span><br />   FWNumFormat<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A"</span>, .t. <span style="color: #000000;">&#41;</span><br /><br />   uDataSource := OpenData<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   BrowseData<span style="color: #000000;">&#40;</span> uDataSource <span style="color: #000000;">&#41;</span><br />   CloseData<span style="color: #000000;">&#40;</span>  uDataSource <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// TESTING XBROWSE WITH TDATAROW</span><br /><span style="color: #B900B9;">// Both XBrowse and TDataRow Code is the same for all Data Sources</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> BrowseData<span style="color: #000000;">&#40;</span> uData <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBrw, oFont, oRec<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> GetSysMetrics<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> * <span style="color: #000000;">0.9</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TDataRow test : "</span> + FWVERSION<br />   @ <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      DATASOURCE uData <span style="color: #0000ff;">AUTOCOLS</span> AUTOSORT ;<br />      FOOTERS CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nEditTypes</span>    := EDIT_GET<br />      :<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #B900B9;">//</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br />   @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Edit"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oRec := TDataRow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> uData <span style="color: #000000;">&#41;</span>, oRec:<span style="color: #00C800;">Edit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">10</span>, <span style="color: #000000;">60</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Append"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oRec := TDataRow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> uData, <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">&#41;</span>, oRec:<span style="color: #00C800;">Edit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">10</span>,<span style="color: #000000;">110</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Delete"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">Delete</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> OpenData<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> nChoice, uDataSource<br /><br />   nChoice := Alert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Choose DataSource"</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DBF"</span>, <span style="color: #ff0000;">"TDATABASE"</span>, <span style="color: #ff0000;">"ADO"</span>, <span style="color: #ff0000;">"Quit"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"DATASOURCE"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> nChoice  <= <span style="color: #000000;">2</span><br />      USE C:\FWH\SAMPLES\CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> CUST SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br />      <span style="color: #00C800;">if</span> nChoice == <span style="color: #000000;">1</span><br />         uDataSource    := <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">else</span><br />         DATABASE uDataSource<br />      <span style="color: #00C800;">endif</span><br />   elseif nChoice == <span style="color: #000000;">3</span><br />      uDataSource := FW_OpenRecordSet<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\x</span>brtest.mdb"</span>, <span style="color: #ff0000;">"CUSTOMER"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      QUIT<br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> uDataSource<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CloseData<span style="color: #000000;">&#40;</span> uDataSource <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> uDataSource <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'C'</span><br />      <span style="color: #000000;">&#40;</span> uDataSource <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbCloseArea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   elseif ValType<span style="color: #000000;">&#40;</span> uDataSource <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'O'</span><br />      uDataSource:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> uDataSource:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TOLEAUTO"</span><br />         uDataSource:<span style="color: #000000;">ActiveConnection</span>:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:pbwzjozu] Please use latest FWH release. The entire code to browse, add, edit and delete() work independently of the datasource. The same code works for RDD, TDatabase and ADO This sample also demonstrates the latest feature oBrw:Delete(). New Delete() method of XBrowse deletes the current row in a manner appropriate to the datasource, repositions the current row and refreshes the browse. In the above sample, I used the default Edit() of the TDataRow. Obviously we use custom edit dialog to edit/add the records. We can do this in to ways. oRec := TDataRow():New( Source ) oRec:bEdit := { |oRec| MyEditDlg( oRec ) } oRec:Edit() Or oRec := TDataRow():New( Source ) MyEditDlg( oRec ) Whichever way we edit, please use only built in UnDo() and Save() methods of TDataRow.
class TDatabase and ADO
[quote="Antonio Linares":2lh1gbhv]Rao, I think that the Class TDataRow name is little confusing, as James commented about it (not sure if he was who did it) Maybe TRecord would be easier to understand it ? I admit that I am not used to this great Class from Rao yet[/quote:2lh1gbhv] When I started drafting the class, I named it TRecord instinctively. Latter I changed it as TDataRow for two reasons: 1. I understand that the TData library provided by Mr James Bott contains a TRecord class also. I understood this from his postings. I did not want to use a name that would conflict with his library class, because some users are using his library. 2. The words "Record" and "Field" are used mostly by XBase users and ADO. In many other environments it is usual to refer to them as Rows and Columns. I chose TDataRow name.
class TDatabase and ADO
Rao, many thanks for the explanation <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
class TDatabase and ADO
[quote="lucasdebeltran":gpvcukms]Hello, Works this class with ADO?. I have to convert an old program that uses TDatabase. Thank you very much.[/quote:gpvcukms] You can write a small wrapper class for recordset with methods similar to tdatabase.
class TDatabase and ADO
[quote:7ysxoso8]The presence of the method Execute for SQL confused me. [/quote:7ysxoso8] Please express your confusion. We try to clarify to extent we know.
class TDatabase and ADO
Mr. Nages, Thank you, all is clear by now. The present code uses for example Database:save(), :recno(), or :eof() methods. But I can rewrite the code and use TDataRow, no problem.
class TDatabase and ADO
Antonio, Lucas. Hace unos 2 años intente hacer una tAdoBase, quedo bien adelantada, la use sin problmas en al menos 2 proyectos, deseche su continuacion por problemas de conocimientos y para agunas tareas me era mas comoda la tDolphin que mi propia clase, especialmente la complementacion con xbrowse. Aun tengo los fuentes, ejemplos y hasta una rutina de paginacion. Si le interesa se las reenvio. Saludos
class TDatabase and ADO
Adolfo, Muchas gracias por tu ofrecimiento <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Si eres tan amable de publicarla aqui, asi podremos revisarla entre todos, gracias!
class TDatabase and ADO
Antonio Aqui lo hecho hasta el momento. [url:3qaya4g6]https&#58;//www&#46;dropbox&#46;com/s/r84z8srz4mcee21/ADOBASE&#46;rar[/url:3qaya4g6] Es de uso publico, si alguien la mejora, bienvenido y que solo comente los arreglos. Saludos
class activex
A my friend sad me he in c++ to load an activex use the atl.dll Why we not use this library on tactivex class ?
class activex
Silvio,We don't need it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
class to make Report with tdatabase
Silvio, I was just saying that if you try to print past the margin you could get a page feed, and thus a blank page. Just a thought. Easy to test.
class to make Report with tdatabase
I tried to make a report with tdatabase and I have this error [code=fw:5y2gjnsy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"report.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">STATIC</span> oReport<br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; RDDSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'DBFCDX'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SET DATE FORMAT <span style="color: #ff0000;">"dd/mm/yyyy"</span><br />&nbsp; &nbsp; &nbsp; SET DATE ITALIAN<br />&nbsp; &nbsp; &nbsp; SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp; &nbsp; SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span> DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">50</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br />TRepTariffe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Attivare</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//-------------------------------------------------//</span><br /><br /><span style="color: #00C800;">CLASS</span> TRepTariffe<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cPath <span style="color: #0000ff;">init</span> cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp;+ <span style="color: #ff0000;">"Data<span style="color: #000000;">\"</span><br />&nbsp; &nbsp;DATA oReport<br />&nbsp; &nbsp;DATA oTariffeReport<br />&nbsp; &nbsp;DATA oFont<br /><br />&nbsp; &nbsp;METHOD New() CONSTRUCTOR<br />&nbsp; &nbsp;METHOD Attivare()<br /><br />END CLASS<br /><br />METHOD New() CLASS TRepTariffe<br /><br />&nbsp; &nbsp; &nbsp;::oTariffeReport:= TDatabase():Open( , ::cPath+"</span>TARIFFE<span style="color: #ff0000;">", "</span>DBFCDX<span style="color: #ff0000;">", .t. )<br />&nbsp; &nbsp; &nbsp;::oTariffeReport:setorder(1)<br /><br /><br />&nbsp; &nbsp; &nbsp;/*<br />&nbsp; &nbsp; &nbsp;::oTariffeReport:Exec( < ||<br />&nbsp; &nbsp; &nbsp;SET FILTER TO &nbsp;FIELD->IDLISTINO = strzero(nListino,2)<br />&nbsp; &nbsp; &nbsp; return nil<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; > )<br />&nbsp; &nbsp; &nbsp; &nbsp;*/<br /><br />&nbsp; &nbsp; &nbsp;// xbrowser ::oTariffeReport<br /><br />&nbsp; &nbsp;DEFINE FONT ::oFont NAME "</span>Tahoma<span style="color: #ff0000;">" SIZE 0,-10<br /><br /><br /><br />&nbsp; &nbsp;REPORT ::oReport &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; TITLE &nbsp;"</span>ELENCO TARIFFE<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; FONT &nbsp; ::oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; HEADER "</span><span style="color: #00C800;">Data</span>: <span style="color: #ff0000;">" &nbsp;+ DTOC( DATE() ) &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>stabilimento bagno<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>stabilimento bagno<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><span style="color: #000000;">1234567890</span><span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp;LEFT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; FOOTER "</span>Pagina: <span style="color: #ff0000;">" + STR( ::oReport:nPage, 3 ) RIGHT &nbsp;;<br />&nbsp; &nbsp; &nbsp; PREVIEW<br /><br />&nbsp; &nbsp;COLUMN TITLE "</span>TIPO &nbsp;<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; DATA ::oTariffeReport:tipo<br />&nbsp; &nbsp;COLUMN TITLE "</span>ELEMENTO &nbsp; <span style="color: #ff0000;">" &nbsp;DATA ::oTariffeReport:elemento<br />&nbsp; &nbsp;COLUMN TITLE "</span>SERVIZIO<span style="color: #ff0000;">" &nbsp; &nbsp; DATA ::oTariffeReport:servizio<br />&nbsp; &nbsp;COLUMN TITLE "</span>SETTORE &nbsp;<span style="color: #ff0000;">" &nbsp; &nbsp;DATA ::oTariffeReport:settore<br />&nbsp; &nbsp;COLUMN TITLE "</span>GIORNI<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; DATA ::oTariffeReport:giorni<br />&nbsp; &nbsp;COLUMN TITLE "</span>PREZZO &nbsp; <span style="color: #ff0000;">" &nbsp; &nbsp;DATA ::oTariffeReport:costo &nbsp; &nbsp; PICTURE "</span><span style="color: #000000;">99</span>,<span style="color: #000000;">999.99</span><span style="color: #ff0000;">" RIGHT &nbsp;SHADOW<br /><br />&nbsp; &nbsp;END REPORT<br /><br />&nbsp; &nbsp;RETURN Self<br /><br />//---------------------------------------------------------------//<br /><br />METHOD Attivare() CLASS TRepTariffe<br /><br />&nbsp; &nbsp;::oTariffeReport:GoTop()<br /><br />&nbsp; &nbsp;::oReport:bSkip := { || ::oTariffeReport:Skip(1) }<br />&nbsp; &nbsp;::oReport:Cellview()<br /><br />&nbsp; &nbsp;ACTIVATE REPORT ::oReport &nbsp;WHILE !::oTariffeReport:eof()<br /><br />&nbsp; &nbsp;::oFont:End()<br /><br />&nbsp; &nbsp;::oTariffeReport:Close()<br /><br />RETURN NIL<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></span></div>[/code:5y2gjnsy] Now print one page ok and one blank as you can see here [img:5y2gjnsy]https&#58;//i&#46;postimg&#46;cc/13TBHC2Z/rr&#46;jpg[/img:5y2gjnsy]
class to make Report with tdatabase
Mira si ayuda [code=fw:iczdsy2g]<div class="fw" id="{CB}" style="font-family: monospace;">********************<br />*IMPRIME EN PANTALLA<br />********************<br />PROC pIPCaj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oReport,nLinea := <span style="color: #000000;">1</span>, nHasta := oRsCajaRg:<span style="color: #000000;">RECORDCOUNT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />nBookMark := oRsCajaRg:<span style="color: #000000;">BookMark</span><br />oRsCajaRg:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />uFec:=dtoc<span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />uTim:=subs<span style="color: #000000;">&#40;</span>time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span><br /><br />REPORT oReport CAPTION <span style="color: #ff0000;">"TABLA CONTROL CAJAS"</span>  HEADER <span style="color: #ff0000;">"CIUDADELA"</span>,<span style="color: #ff0000;">"NIT:"</span>+<span style="color: #ff0000;">"-"</span>,<span style="color: #ff0000;">"TABLA CONTROL DE DOCUMENTOS"</span>,<span style="color: #ff0000;">"Página Número: "</span> + STR <span style="color: #000000;">&#40;</span>oReport:<span style="color: #000000;">nPage</span>, <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"Fecha Reporte: "</span>+uFec+<span style="color: #ff0000;">" - Hora: "</span>+uTim;<br /><span style="color: #0000ff;">CENTER</span>  PREVIEW<br />  COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Código"</span> <span style="color: #00C800;">DATA</span> oRsCajaRg:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"kk_codigo"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">value</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">9</span><br />  COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nombre"</span> <span style="color: #00C800;">DATA</span> oRsCajaRg:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"kk_nombre"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">value</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span><br />END REPORT<br /><br />oReport:<span style="color: #000000;">bWhile</span> := <span style="color: #000000;">&#123;</span> || nLinea <= nHasta <span style="color: #000000;">&#125;</span><br />oReport:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oReport:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">lPrvModal</span> := .T.<br /><span style="color: #00C800;">IF</span> oReport:<span style="color: #000000;">lCreated</span><br />  oReport:<span style="color: #000000;">bSkip</span> := <span style="color: #000000;">&#123;</span> | | nLinea++, oRsCajaRg:<span style="color: #000000;">MoveNext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> REPORT oReport ;<br /><span style="color: #0000ff;">ON</span> END oRsCajaRg:<span style="color: #000000;">BookMark</span> := nBookMark<br />oRsCajaRg:<span style="color: #000000;">REQUERY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrwCReg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:iczdsy2g]
class to make Report with tdatabase
STRANGE..... this morning I add DEFINE PEN ::oPen1 WIDTH 1 COLOR CLR_HGRAY DEFINE PEN ::oPen2 WIDTH 1 COLOR CLR_BLACK and REPORT ::oReport ; TITLE "ELENCO TARIFFE LISTINO ALTA STAGIONE" ; FONT ::oFont ; [b:3iivg31u] PEN ::oPen1,; ::oPen2 [/b:3iivg31u] ; HEADER "Data: " + DTOC( DATE() ) ,; "stabilimento bagno" ,; "stabilimento bagno" ,; "1234567890" LEFT ; FOOTER "Pagina: " + STR( ::oReport:nPage, 3 ) RIGHT ; PREVIEW and now seem print ok as you can see here ...very very strange [img:3iivg31u]https&#58;//i&#46;postimg&#46;cc/28WrXbcL/rr&#46;png[/img:3iivg31u] Someone among the Gurus and Masters (Nages, CNavarro, Linares ...) can explain to me why it didn't work before and now with the addition of only the Pen it seems that it prints everything well?
class to make Report with tdatabase
It looks like the top and bottom margins may be set too narrow.
class to make Report with tdatabase
I was not talking about the margins, I was talking about the fact that he first printed a page and a white page, then inserting the pages he printed part of the archive
class tprinter and a dot-matrix printer
is it possible to print in text mode on a dot-matrix printer
class tprinter and a dot-matrix printer
A customer of mine is using a old matrix-printer to print labels Have a look at [color=#0000FF:2tz1srb6]TDOSPRN [/color:2tz1srb6]( source ) The following code will let you print directly to the printer from inside any Fivewin program, like OLD DOS days. Those users that need DOS printing speed can use this class instead of the TPrinter class. This is a little sample of how to use the new class: LOCAL oPrn oPrn := TDosPrn():New("lpt1") oPrn:StartPage() // optional oPrn:Say(10,20, "This goes in line 10, column 20") oPrn:EndPage() // optional oPrn:End() A little description of all the members of this class: DATAs: cPort: Printing port, by default "LPT1" cCompress: String for compressed mode, by default "15" cNormal: String for normal mode, by default "18" cFormFeed: String for EJECT, by default "12" hDC: Printing file Handle (Internal use) nRow: Current printing row nCol: Current pringing column nLeftMargin: Left margin, by default 0 nTopMargin: Top margin, by default 0 lAnsiToOem: If .T. a Ansi to Oem translation is done automatically whe printing, by default is .T. METHODS: New(cPort) Constructor, no comment End() Destructor, no comment StartPage() Begining of a page, this method is optional EndPage() End of page, this method is optional if there is only one page Command(c) Let you send any command to the printer without changing the current row and col. The string to pass as a parameter should content the ascii values of the command separated with commas, for example, the command to reset Epson printers should be: "27,69" SetCoors(r,c) Let you change the current row and col is the equivalent of SetPrc() of Ca-Clipper NewLine() Increments the current row Write(cText) Prints the string cText in the current row and column Say(nRow ,; Prints the string cText in nRow, nCol nCol ,; lAtoO indicates if the string should be transformed to Oem, cText ,; by default is ::lAnsiToOem lAtoO ) SayCmp() The same as the method Say but prints in compressed mode and the row is updated accordly. NOTE: If you try to print on a row before the current one a EJECT will be done automatically. At the end of this class is a little function call WorkSheet that will make the job of DOS printing a lot easier. LKM changed behavior of how EJECT is handled, for real DOS simulation In the same way if you try to print on the same row as the current, but in a previous column from the current one a EJECT will be done automatically TIP: make sure port name (\sharename part) is 8 chars or less, or you'll get a DOS error 5 (Access denied) if printing across the network [code=fw:2tz1srb6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cPORT :=  <span style="color: #ff0000;">"LPT"</span> + ltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>I_VAR<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// port</span><br />oPrn  := TDosPrn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>cPORT<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// !!!!!!</span><br />oPrn:<span style="color: #000000;">SetCoors</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />oPrn:<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span>I_VAR<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// German fonts</span><br />oPrn:<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span>I_VAR<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>       <span style="color: #B900B9;">// Font</span><br />i := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> I_VAR<span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span>          <span style="color: #B900B9;">// returns for distance between labels</span><br />     oPrn:<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span>I_VAR<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// carriage return command</span><br /><span style="color: #00C800;">NEXT</span><br />oPrn:<span style="color: #000000;">SetCoors</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">25</span>, d_Etti<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// Line 1</span><br />oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">25</span>, d_Etti<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// Line 2</span><br />oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span>,<span style="color: #000000;">25</span>, d_Etti<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// Line 3</span><br />oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span>,<span style="color: #000000;">25</span>, d_Etti<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// Line 4</span><br />oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span>,<span style="color: #000000;">25</span>, d_Etti<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// Line 5</span><br />oPrn:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">25</span>, d_Etti<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// Line 6</span><br />i := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> I_VAR<span style="color: #000000;">&#91;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#93;</span>             <span style="color: #B900B9;">// lines</span><br />     oPrn:<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span>I_VAR<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// carriage command</span><br />oPrn:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2tz1srb6] regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
class tprinter and a dot-matrix printer
This is a sample for printing a invoice on a matrix printer. (the old way) Maybe it has any use... [code=fw:14t0h7jb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> druk_Ketting<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> nDruk:=<span style="color: #000000;">0</span>, nDrukafstand:= <span style="color: #000000;">0.5</span>, nDrukstart:= <span style="color: #000000;">12.7</span><br />   cPagtitel = <span style="color: #ff0000;">"GROOT"</span><br />   cDagboek = <span style="color: #ff0000;">"VER"</span><br /><br />   Rec_lock<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"factinfo"</span><span style="color: #000000;">&#41;</span><br />      factinfo->factuur = oTellers:<span style="color: #000000;">factnummer</span><br />      factinfo->toestand = <span style="color: #ff0000;">"Factuur GR="</span>+str<span style="color: #000000;">&#40;</span>oTellers:<span style="color: #000000;">factnummer</span>,<span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span><br />      factinfo->Docstatus = <span style="color: #ff0000;">"A"</span><br />   rec_unlock<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"factinfo"</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Public</span> oPrn<br />   <span style="color: #00C800;">Public</span> oF12,oF12B,oF12I,oF12U,oFlarge<br /><br />   <span style="color: #0000ff;">PRINTER</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Afdruk"</span> <span style="color: #B900B9;">// FROM USER //PREVIEW MODAL</span><br />   oPrn:<span style="color: #000000;">setup</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oPrn:<span style="color: #000000;">setsize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2400</span>,<span style="color: #000000;">3050</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oF12    <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oF12B   <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> BOLD <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oF12I   <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> ITALIC <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oF12U   <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> UNDERLINE BOLD <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFLarge <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> BOLD <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-18</span> <span style="color: #0000ff;">OF</span> oPrn<br /><br />   oPrn:<span style="color: #000000;">startpage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   hoofding<span style="color: #000000;">&#40;</span>oPrn,<span style="color: #ff0000;">"KETTING"</span>,cPagTitel<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// afdruk hoofding</span><br />   nDruk = nDrukstart<br /><br />   dbselectarea<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DETAIL"</span><span style="color: #000000;">&#41;</span><br /><br />   detail-><span style="color: #000000;">&#40;</span>dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   nTotaal := <span style="color: #000000;">0</span><br />   cDrukbon = <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !detail-><span style="color: #000000;">&#40;</span>eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> nDruk >= <span style="color: #000000;">23.5</span><br />         oPrn:<span style="color: #0000ff;">endpage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         oPrn:<span style="color: #000000;">startpage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         hoofding<span style="color: #000000;">&#40;</span>oPrn,<span style="color: #ff0000;">"KETTING"</span>,cPagTitel<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// afdruk hoofding</span><br />         nDruk = nDrukstart<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">If</span> cDrukbon <> alltrim<span style="color: #000000;">&#40;</span>detail->drukdoc<span style="color: #000000;">&#41;</span><br />         cDrukbon = alltrim<span style="color: #000000;">&#40;</span>detail->drukdoc<span style="color: #000000;">&#41;</span><br />         nDruk += +.<span style="color: #000000;">3</span><br />         oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk,<span style="color: #000000;">6.1</span>,<span style="color: #ff0000;">"Leveringsbon  "</span> + cDrukbon,oF12<span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">if</span> factinfo-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span>cDrukbon<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">If</span> !empty<span style="color: #000000;">&#40;</span>factinfo->bestelbon<span style="color: #000000;">&#41;</span><br />               oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk,<span style="color: #000000;">11</span>,<span style="color: #ff0000;">"Uw order "</span> + alltrim<span style="color: #000000;">&#40;</span>factinfo->bestelbon<span style="color: #000000;">&#41;</span>,oF12<span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">EndIF</span><br />            Rec_lock<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"factinfo"</span><span style="color: #000000;">&#41;</span><br />               factinfo->factuur = oTellers:<span style="color: #000000;">factnummer</span><br />               factinfo->toestand = <span style="color: #ff0000;">"Factuur GR="</span>+str<span style="color: #000000;">&#40;</span>oTellers:<span style="color: #000000;">factnummer</span>,<span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span><br />               factinfo->Docstatus = <span style="color: #ff0000;">"A"</span><br />            rec_unlock<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"factinfo"</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">endif</span><br />         factinfo-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span>cDocnummer<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         nDruk += nDrukafstand+.<span style="color: #000000;">3</span><br />      <span style="color: #00C800;">EndIF</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk, <span style="color: #000000;">3.9</span> ,detail->refnummer,oF12<span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk, <span style="color: #000000;">6.1</span> ,detail->benaming,oF12<span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk,<span style="color: #000000;">16.8</span> ,str<span style="color: #000000;">&#40;</span>detail->aantal,<span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span>,oF12,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk,<span style="color: #000000;">18.5</span> ,str<span style="color: #000000;">&#40;</span>detail->eenh_prijs,<span style="color: #000000;">9</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,oF12,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk,<span style="color: #000000;">19.5</span> ,<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>detail->korting <> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"-"</span>+stzero<span style="color: #000000;">&#40;</span>detail->korting,<span style="color: #000000;">3</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>,oF12,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk,<span style="color: #000000;">21.6</span> ,str<span style="color: #000000;">&#40;</span>detail->totaal,<span style="color: #000000;">9</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,oF12,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span>nDruk,<span style="color: #000000;">22.6</span> ,<span style="color: #ff0000;">"21"</span>,oF12,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      nTotaal = nTotaal + detail->totaal<br /><br />      nDruk += nDrukafstand<br />      detail-><span style="color: #000000;">&#40;</span>dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">enddo</span><br />   <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span>factinfo->voldaan<span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">24</span> , <span style="color: #000000;">3</span> ,<span style="color: #ff0000;">"Betaalwijze : "</span>+factinfo->voldaan,oF12<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #B900B9;">//oPrn:cmsay (25   , 3 ,"-2 % korting op de goederenprijs bij betaling",oF12)</span><br />   <span style="color: #B900B9;">//oPrn:cmsay (25.5 , 3 ,"     voor "+dtoc(date()+10)+"  - €"+str( (nTotaal*2/100),6,2),oF12)</span><br /><br />   oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">27.6</span> , <span style="color: #000000;">17.8</span> ,str<span style="color: #000000;">&#40;</span>nTotaal,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,oF12b,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />   oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">27.6</span> , <span style="color: #000000;">18.4</span> ,<span style="color: #ff0000;">"21"</span>,oF12b<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">If</span> upper<span style="color: #000000;">&#40;</span>klant->btwjn<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"N"</span><br />      nNoBtw:= <span style="color: #000000;">0</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">27.6</span> , <span style="color: #000000;">20.6</span> ,str<span style="color: #000000;">&#40;</span>nNoBtw,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,oF12b,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">27.6</span> , <span style="color: #000000;">22.6</span> ,str<span style="color: #000000;">&#40;</span>nTotaal,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,oF12b,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">27.6</span> , <span style="color: #000000;">20.6</span> ,str<span style="color: #000000;">&#40;</span>Btw<span style="color: #000000;">&#40;</span><span style="color: #000000;">21</span>,nTotaal<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,oF12b,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">27.6</span> , <span style="color: #000000;">22.6</span> ,str<span style="color: #000000;">&#40;</span>BtwIncl<span style="color: #000000;">&#40;</span><span style="color: #000000;">21</span>,nTotaal<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,oF12b,,,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      cSom = alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>BtwIncl<span style="color: #000000;">&#40;</span><span style="color: #000000;">21</span>,nTotaal<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      nPos = <span style="color: #00C800;">at</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"."</span>,cSom<span style="color: #000000;">&#41;</span><br />      nSomEuro = val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cSom,<span style="color: #000000;">1</span>,nPos<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      nSomCent = val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cSom,nPos<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      cEuro = Numconv<span style="color: #000000;">&#40;</span>nSomEuro<span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">" EURO EN "</span> + Numconv<span style="color: #000000;">&#40;</span>nSomCent<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" CENT"</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">28.8</span> , <span style="color: #000000;">3</span>,<span style="color: #ff0000;">"Waar en echt verklaard voor de som van"</span>,oF12<span style="color: #000000;">&#41;</span><br />      oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">29.3</span> , <span style="color: #000000;">3</span>,cEuro,oF12<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">EndIF</span><br /><br />   oPrn:<span style="color: #000000;">cmsay</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">28.7</span> , <span style="color: #000000;">19.3</span> ,dtoc<span style="color: #000000;">&#40;</span>vervaldat<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,oFLarge<span style="color: #000000;">&#41;</span><br /><br />   oPrn:<span style="color: #0000ff;">endpage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//oPrn:Preview()</span><br /><br />   oF12:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oF12B:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oF12I:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oF12U:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oFlarge:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;oPrn:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span><br /> </div>[/code:14t0h7jb]
class xbrowse: suggestion for improvement
I have for some time been aware that when using the RddIncrFilter method, it made a preexisting filter be lost when changing the search filter, I made a change in the class I would like to share to check if it is the best solution and suggest that they implement it future versions of fwh. Here is the suggested change that will cause a pre-existing filter to be maintained even if another filter is configured: [code=fw:24uqqjc5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />        <br /> <span style="color: #B900B9;">// new code</span><br />         <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> cExpr <span style="color: #000000;">&#41;</span><br />            cFilter     := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!empty<span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> .and. <span style="color: #ff0000;">'.and. WildMatch'</span>$dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, alltrim<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, ;<br />                           <span style="color: #00C800;">at</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'.and. WildMatch'</span>, dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'!deleted()'</span>, dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// '!deleted()'</span><br />            oBrw:<span style="color: #000000;">gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />         elseif ::<span style="color: #000000;">lSeekWild</span><br />   #ifdef __XHARBOUR__<br />            cFilter     := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!empty<span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> .and. <span style="color: #ff0000;">'.and. WildMatch'</span>$dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, alltrim<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, ;<br />                           <span style="color: #00C800;">at</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'.and. WildMatch'</span>, dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// '!deleted()'</span><br />            cFilter     := cFilter + <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!empty<span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">' .and. '</span>, <span style="color: #ff0000;">''</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'WildMatch("*'</span> + Upper<span style="color: #000000;">&#40;</span> Trim<span style="color: #000000;">&#40;</span> cExpr <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'*",'</span> + cKey + <span style="color: #ff0000;">')'</span><br />   #else<br />            cFilter     := dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!empty<span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">' .and. '</span>, <span style="color: #ff0000;">''</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'HB_WildMatch("*'</span> + Upper<span style="color: #000000;">&#40;</span> Trim<span style="color: #000000;">&#40;</span> cExpr <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'*",'</span> + cKey + <span style="color: #ff0000;">')'</span><br />   #endif<br />         <span style="color: #00C800;">else</span><br />            cFilter     := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!empty<span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> .and. <span style="color: #ff0000;">'.and. WildMatch'</span>$dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, alltrim<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, ;<br />                           <span style="color: #00C800;">at</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'.and. WildMatch'</span>, dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// '!deleted()'</span><br />            cFilter     := cFilter + <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!empty<span style="color: #000000;">&#40;</span>dbfilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">' .and. '</span>, <span style="color: #ff0000;">''</span><span style="color: #000000;">&#41;</span> + cKey + <span style="color: #ff0000;">'="'</span> + Upper<span style="color: #000000;">&#40;</span> Trim<span style="color: #000000;">&#40;</span> cExpr <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'"'</span><br />         <span style="color: #00C800;">endif</span><br /><span style="color: #B900B9;">// end new code</span><br /><br /><span style="color: #B900B9;">/*<br /><br />// old code<br /><br />if Empty( cExpr )<br />            cFilter     := '!deleted()'<br />         elseif ::lSeekWild<br />#ifdef __XHARBOUR__<br />            cFilter     := 'WildMatch("*' + Upper( Trim( cExpr ) ) + '*",' + cKey + ')'<br />#else<br />            cFilter     := 'HB_WildMatch("*' + Upper( Trim( cExpr ) ) + '*",' + cKey + ')'<br />#endif<br />         else<br />            cFilter     := cKey + '="' + Upper( Trim( cExpr ) ) + '"'<br />         endif<br />*/</span><br /><span style="color: #B900B9;">// end old code</span><br /> </div>[/code:24uqqjc5] Any improvements your colleagues might suggest or a better solution, feel free to suggest. Thanks
class xbrowse: suggestion for improvement
Implemented in FWH 1905
class xbrowse: suggestion for improvement
[quote:2dkwiv0v]I have for some time been aware that when using the RddIncrFilter method, it made a preexisting filter be lost when changing the search filter, [/quote:2dkwiv0v] This is an issue. We can not use dbfilter() to combine the existing filter because, if the existing filter contains local variables, evaluation of such filter results in a runtime error.
class xbrowse: suggestion for improvement
With your code, two problems are found. 1) When the filter is cleared backspace, the filter is not reset. 2) Most important is the runtime error when the existing filter contains local variables. Please try this sample: [code=fw:28pshwiz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cState := <span style="color: #ff0000;">"NY"</span><br /><br />&nbsp; &nbsp;USE CUSTOMER<br /><br />&nbsp; &nbsp;SET FILTER <span style="color: #0000ff;">TO</span> FIELD->STATE = cState<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;XBROWSER <span style="color: #ff0000;">"CUSTOMER"</span> AUTOSORT SETUP <span style="color: #000000;">&#40;</span> ;<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">lIncrFilter</span> := .t., ;<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">lSeekWild</span> &nbsp; := .t., ;<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">cFilterFld</span> &nbsp;:= <span style="color: #ff0000;">"FIRST"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:28pshwiz] When we press a key, we get this runtime error [code=fw:28pshwiz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">6</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">02</span><span style="color: #000000;">-06</span><span style="color: #000000;">-2019</span>, <span style="color: #000000;">03</span>:<span style="color: #000000;">00</span>:<span style="color: #000000;">06</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1003</span> &nbsp;Variable does not exist: <span style="color: #000000;">CSTATE</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">GIT</span>\<span style="color: #0000ff;">xbrowse</span>.prg => TXBROWSE:<span style="color: #000000;">RDDINCRFILTER</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">7005</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">GIT</span>\<span style="color: #0000ff;">xbrowse</span>.prg => TXBROWSE:<span style="color: #000000;">RDDINCRSEEK</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6896</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">GIT</span>\<span style="color: #0000ff;">xbrowse</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TXBROWSE_SETRDD<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5427</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">GIT</span>\<span style="color: #0000ff;">xbrowse</span>.prg => TXBROWSE:<span style="color: #000000;">SEEK</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">8434</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">GIT</span>\<span style="color: #0000ff;">xbrowse</span>.prg => TXBROWSE:<span style="color: #000000;">KEYCHAR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3593</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:28pshwiz]
class xbrowse: suggestion for improvement
We can not use DBFILTER() and that is proved in the above sample. DBFILTER() returns the current filter string. What we need is the current filter codeblock. FWH1905 provides a new function FW_DBFILTERBLOCK() which returns the current filter codeblock. Using this new function FWH1905 implements what you are looking for. Incremental filters are in addition to the existing filter. Present filters are not lost.
class xbrowse: suggestion for improvement
Thanks for the answer. Can you implement a better solution for the future version of Fivewin? I think you understood the problem well. I do not feel able to change the class.
class xbrowse: suggestion for improvement
Thank you!
classe BUTTONBMP
Non ho a disposizione l'ultima versione di FIVEWIN (2.<!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> e tra l'altro ho letto che questo problema è stato risolto nell'ultima versione. Semplicemente quando si utilizzano i metodi Enable() e Disable() sulla classe BUTTONBMP, le immagini della classe scompaiono qualcuno mi sa dire come fare per risolvere il problema ?
classe TWord
Feliz Año Nuevo a Todos!! Porque no me funciona, necesito abrir un archivo de Word existente, hago lo siguiente y me arroja el siguiente error: oWord = TOleAuto():New( "Word.Application" ) oWord:OpenDoc("Prueba.Doc") OPENDOC: DISP_E_UNKNOWNNAME y con: oWord := TWord():New() oWord:OpenDoc("Prueba.Doc") oWord:Preview() ocurre un GPF called from OLEINVOKE(0) called from TWORD:PREVIEW(392) FW23, HARBOUR, BCC55 Gracias por su atencion..
classe TWord
Prueba esto oWord:OpenDoc( DirDondeEstaElDocumento+"Prueba.Doc") ó lo que sería lo mismo oWord:OpenDoc( "C:\Docs\Prueba.Doc") o como se quiera que se llame tu directorio donde está el archivo que quieres abrir.
classe TWord
Gracias por tu respuesta fleal, pero no me funciono!!!, y por lo que estuve leyendo, la clase: oWord=TOleAuto():New( "Word.Application" ), es de xHarbour, y yo utilizo Harbour, y no doy con bola, si se trata de crear un nuevo documento, modificarlo, previzualizarlo e imprimirlo, no hay problema, el problema lo tengo cuando el documento ya esta creado y lo quiero modificar desde la clase TWord, cualquier comentario será agradecido. Gracias.
classe TWord
Revisa si el método New de tu clase es similar a este : [code:1mcb5s09]METHOD OpenDoc&#40; cNombreDoc &#41; CLASS TWord local sal &#58;= &#46;t&#46; &#58;&#58;oDocs &#58;= &#58;&#58;oWord&#58;Get&#40; "Documents" &#41; if file&#40; cNombreDoc &#41; &#58;&#58;oActiveDoc &#58;= &#58;&#58;oDocs&#58;Invoke&#40; "Open",cNombreDoc &#41; if valtype&#40;&#58;&#58;oActiveDoc&#41; <> 'O' sal &#58;= &#46;f&#46; endif else sal &#58;= &#46;f&#46; endif &#58;&#58;oTexto &#58;= &#58;&#58;oWord&#58;Get&#40; "Selection" &#41; &#58;&#58;oOptions &#58;= &#58;&#58;oWord&#58;Get&#40;"Options"&#41; // Vikthor &#58;&#58;oMailMerge &#58;= &#58;&#58;oActiveDoc&#58;Get&#40; "MailMerge"&#41; // Vikthor &#58;&#58;oTables &#58;= &#58;&#58;oActiveDoc&#58;Get&#40; "Tables"&#41; // Vikthor &#58;&#58;cNombreDoc &#58;= cNombreDoc &#58;&#58;nLinea &#58;= 0 &#58;&#58;nCol &#58;= 0 &#58;&#58;nPage &#58;= 0 &#58;&#58;nYoffset &#58;= 0 &#58;&#58;nXoffset &#58;= 0 &#58;&#58;oSelection &#58;= &#58;&#58;oActiveDoc &#58;&#58;lstartpag &#58;= &#46;t&#46; &#58;&#58;lsetcm &#58;= &#46;f&#46; &#58;&#58;lOverflowing &#58;= &#46;f&#46; &#58;&#58;nlastrow &#58;= 0 &#58;&#58;ctextoverflow &#58;= '' return sal [/code:1mcb5s09]
classe TWord
Gracias Vickthor por contestar. Pues no, es diferente en las Datas y los Methodos que llama la clase, que veo es modificada por Ti, serias tan amable de decirme si la puedo descargar de alguna parte o pasarmela a mi correo <!-- e --><a href="mailto:fco_ozuna@prodigy.net.mx">fco_ozuna@prodigy.net.mx</a><!-- e -->, te lo agradeceria mucho. Gracias....
classe TWord
¡listo el pollo!... Enviada a tu cuenta de correo.
classe TWord
Vikthor, Puedes publicarla en algún sitio, como <!-- w --><a class="postlink" href="http://www.hyperupload.com">www.hyperupload.com</a><!-- w --> para que la descargue quien la necesite ? gracias.
classe TWord
Antonio : Con mucho gusto, la voy a subir al sitio de DbWide que esta en <!-- m --><a class="postlink" href="http://vikthor.com.mx">http://vikthor.com.mx</a><!-- m --> La clase funciona con xHarbour e ignoro si el código es complatible con Harbour. Pero haciendo unos pequeños ajuste la clase debe ser compatible con ambos compiladores.
classe treport HELP-ME
Amigos, estou com o seguinte problema: Utilizo a classe treport, acontece que tenho instalada uma hp 1410, configurei todos os relatórios em cima desta impressora, porém, acontece que ao instalar uma outra impressora, tipo uma HP + antiga ou uma Epson Lx 300, a configuração que eu tinha realizado nos meus PRGS não confere mais, fica fora de alinhamento. ufa, consegui explicar? Alguem pode me indicar alguma ferramenta para relatórios que não aconteça isso? Fiquem com Deus AOKISANTOS
classi per il palmare
Guida all'acquisto : sono tutte compatibili le classi per il palmare cioè quelle di fwh oppure no ? per esempio la tsbutton di mercado funziona sul palmare qualcuno ha provato ? è stabile l'attuale versione di fwppc ? qualcuno mi puo' inviare esempi exe con piu' controlli per rendermi conto di persona ? Grazie
classi per il palmare
[quote="Silvio":3gkhuuar]Guida all'acquisto : sono tutte compatibili le classi per il palmare cioè quelle di fwh oppure no ?[/quote:3gkhuuar] No, solo quelle modificate per funzionare sul palmare, che non so esattamente quali siano. Tieni presente che stiamo parlando di una piattaforma diversa. Penso che consultando Fwce.ch si possano trovare quasi tutte le classi funzionanti. [quote="Silvio":3gkhuuar]è stabile l'attuale versione di fwppc ?[/quote:3gkhuuar] A me risulta stabilissima. EMG
classi per il palmare
caro EMG io ancora non ho acquistato fwppc Vorrei prima testare il prodotto prima di acquistarlo per esempio io avrei un programma di gestione spiagge che devo inserire in un palmare almeno per quanto riguarda la situazione della spiaggia per far operare il bagnino per vedere quali ombrelloni sono occupati oppure liberi, non solo dovo far visualizzare tutti gli ombrelloni e riflettendo onostamente non saprei come fare dato il minimo spazio che c'è nel palmare, ma per ogni bottoni io dovrei far visualizzare dei dati come faccio in fwh con la tsbutton.( libero/occupato|quante sedie o sdraio ha|nome del cliente| nomi dei suoi amici/parenti|pagato si/no| EXTRA BAR|EXTRA RISTO'|) Mi sto demoralizzando appunto per lo spazio del video che è troppo piccolo Poi una latra cosa ho potuto provar eun esempio che mi ha inviato Antonio Ho visto che i listbox che fa fwppc sono diversi da quelli che fa il windows mobile 5.0 se vai per caso nei contatti puoi vedere le differenze ( assomiglia piu' a xbrowse) e gli inserimenti hanno piu' get e quelli che hanno piu' get hanno schermate scorrevoli e i get sono formati da soli lineette le pagine in fwppc sembrano piu' pesanti rispetto a quelle di windows mobile 5.0 non so se hai notato queste differenze .... forse mi sbaglierò ma forse se mi puoi inviare altri esempio EXE potrei provare di piu' il palmare Poi a meta mese potrei acquistare il fwppc volevo essere sicuro sul palmare per poterlo farlo acquistare a chi devo fargli il programma spiagge. questo messaggio l'ho scritto con il mio palmare Qtek HTC 9600 non so se lo conosci ciao
clause SELECT FOR in xbrowse
Hi, The clause "SELECT cfield FOR xField in XBROWSE" does it work? thanks
clausola ACTION su com. BUTTON non accetta più di 1 funzione
Mi sono trovato ad utilizzare:@ 1,1 button "OK" ACTION miafunzione(),odlg:end()activate dialog oDLG Ma in fase di compilazione ho un syntax error nella riga del button, dipendente dal fatto che non può esserci più di una funzione indicata nella clausola ACTION. E quindi ho dovuto aggirare con:@ 1,1 button "OK" ACTION miafunzione(odlg) mettendo quindi la odlg:end() in coda a miafunzione()Invece nella REDEFINE BUTTON oBTN RESOURCE "RISORSA" ID 101 of ODLG ACTION miafunzione(),odlg:end()tutto regolare, nel senso che le due funzioni vengono processate in sequenza senza nessun errore, né in compilazione né in runtime.Domando: è così e basta? Ho "aggirato" bene o qualcuno consiglia un modo più diretto?grazie.MT(FWH 8.04 + XHARBOUR 1.1.0)
clausola ACTION su com. BUTTON non accetta più di 1 funzione
La stranezza è che funzioni con il REDEFINE BUTTON. Il modo standard per mettere più funzioni dove ne è richiesta una è di utilizzare le parentesi:[code:35ov58c3]ACTION &#40; miafunzione&#40;&#41;, odlg&#58;end&#40;&#41; &#41;[/code:35ov58c3]EMG
clausola ACTION su com. BUTTON non accetta più di 1 funzione
Ok, grazie.Usavo quel modo perché ho trovato così alcuni esempi funzionanti del REDEFINE BUTTON su \FWH\SAMPLES.MT
clausole When...Hide a size of Dialog - strange - RESOLVED
If I insert the "When" the procedure hide the dialog ... [b:25be3s7z]before ( without when=2 )[/b:25be3s7z] [img:25be3s7z]https&#58;//i&#46;postimg&#46;cc/SsztvXVr/before&#46;png[/img:25be3s7z] [b:25be3s7z]After with when =2[/b:25be3s7z] [img:25be3s7z]https&#58;//i&#46;postimg&#46;cc/wB1W1yKp/after&#46;png[/img:25be3s7z] @ 130, 15 CHECKBOX aGet[3] VAR lCheck_HeaderExcel Prompt "Includi intestazioni" ; OF oDlg SIZE 80, 10 PIXEL FONT oFont [b:25be3s7z]When nRadio=2[/b:25be3s7z] it is really strange that the procedure hides a button and part of the dialog
clausole When...Hide a size of Dialog - strange - RESOLVED
Can you post a small example? ¿Puedes publicar un pequeño ejemplo? Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
[quote="karinha":184ndtcw]Can you post a small example? ¿Puedes publicar un pequeño ejemplo? Regards, saludos.[/quote:184ndtcw] [b:184ndtcw]here[/b:184ndtcw] ( make the same also on win 10 ( this morning I had windowSeven ) [code=fw:184ndtcw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> MEM_FILE <span style="color: #ff0000;">"test.ini"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;RddSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SetHandleCount<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET DATE FORMAT <span style="color: #ff0000;">"dd-mm-yyyy"</span><br />&nbsp; &nbsp;SET DELETED &nbsp; &nbsp; <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET CENTURY &nbsp; &nbsp; <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> &nbsp; &nbsp;<span style="color: #0000ff;">year</span><span style="color: #000000;">&#40;</span> date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">20</span><br />&nbsp; &nbsp;SET MULTIPLE &nbsp; &nbsp;OFF<br /><br /><br />&nbsp; &nbsp; &nbsp; test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">Function</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg,cTitle:=<span style="color: #ff0000;">"Salva"</span><br /><br /><span style="color: #00C800;">local</span> nBottom &nbsp; := <span style="color: #000000;">25</span><br /><span style="color: #00C800;">local</span> nRight &nbsp; &nbsp;:= <span style="color: #000000;">55</span><br /><span style="color: #00C800;">local</span> nWidth := &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nHeight := nBottom * DLG_CHARPIX_H<br /><br /><span style="color: #00C800;">local</span> cIniFile &nbsp;:= &nbsp;cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + MEM_FILE<br /><span style="color: #00C800;">local</span> cSection:=<span style="color: #ff0000;">"HTML"</span><br /><br /><span style="color: #00C800;">local</span> oRad<br /><span style="color: #00C800;">local</span> nRadio:=<span style="color: #000000;">1</span><br /><span style="color: #00C800;">local</span> oFont,oBold<br /><span style="color: #00C800;">local</span> oBtnConfirm,oBtnClose<br /><br /><span style="color: #00C800;">local</span> aGet:=array<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oGrp:=array<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">local</span> lCheck_HeaderExcel:=.f.<br /><br /><br /><br /><span style="color: #00C800;">local</span> cTitulo1:= <span style="color: #ff0000;">"Estrazioni"</span><br /><span style="color: #00C800;">local</span> cTitulo2:= space<span style="color: #000000;">&#40;</span><span style="color: #000000;">30</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">12</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">12</span> BOLD<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> &nbsp;oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> nWidth, nHeight &nbsp;<span style="color: #0000ff;">PIXEL</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> cTitle ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_WHITE &nbsp;TRANSPARENT<br /><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">12</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Finestra: "</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">FONT</span> oBold<br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">10</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTitulo1 <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">28</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Scheda: "</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">FONT</span> oBold<br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">26</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTitulo2 <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">40</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">RADIO</span> oRad <span style="color: #0000ff;">VAR</span> nRadio <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&Salva su Pagina Web"</span> _3D <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">18</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> MsgBeep<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">58</span>, <span style="color: #000000;">10</span> GROUP oGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">TO</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">215</span> &nbsp;<span style="color: #0000ff;">OF</span> &nbsp;oDlg &nbsp;<span style="color: #0000ff;">PIXEL</span> TRANSPARENT<br /><br /><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">110</span>, <span style="color: #000000;">05</span> RADIOITEM <span style="color: #ff0000;">"Salva come Foglio Excel"</span> RADIOMENU oRad <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">125</span>, <span style="color: #000000;">10</span> GROUP oGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">TO</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">215</span> &nbsp;<span style="color: #0000ff;">OF</span> &nbsp;oDlg &nbsp;<span style="color: #0000ff;">PIXEL</span> TRANSPARENT<br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">130</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lCheck_HeaderExcel <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Includi intestazioni"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<span style="color: #0000ff;">When</span> nRadio=<span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; * &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtnConfirm <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Salva"</span> <span style="color: #0000ff;">of</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>,<span style="color: #000000;">15</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span> IDOK &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtnClose <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Annulla"</span> <span style="color: #0000ff;">of</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>,<span style="color: #000000;">15</span> CANCEL <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span> IDCANCEL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style="color: #000000;">bResized</span> &nbsp;:= <||<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">local</span> oRect &nbsp; &nbsp; &nbsp; &nbsp;:= oDlg:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtnConfirm:<span style="color: #000000;">nTop</span> &nbsp; := oRect:<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">40</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtnConfirm:<span style="color: #000000;">nLeft</span> &nbsp;:= oRect:<span style="color: #000000;">nRight</span> - <span style="color: #000000;">210</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtnClose:<span style="color: #000000;">nTop</span> &nbsp; &nbsp; := oRect:<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">40</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtnClose:<span style="color: #000000;">nLeft</span> &nbsp; &nbsp;:= oRect:<span style="color: #000000;">nRight</span> - <span style="color: #000000;">110</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> eval<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">bResized</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> &nbsp;oDlg:<span style="color: #000000;">nresult</span> == IDOK<br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//save</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIf</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:184ndtcw]
clausole When...Hide a size of Dialog - strange - RESOLVED
[b:16lbt69e]It make the same !![/b:16lbt69e] and I Known why ....when I use the resource rc Manifest I use that I found on fwh folder
clausole When...Hide a size of Dialog - strange - RESOLVED
[quote="Detlef":20tmmxnm]Hi Silvio, for me your sample is working fine. No missing elements if ' WHEN nRadio=2'. The checkbox is properly enabled if I press the radio button 2 and also disabled when I press radio button 1. I use Windows 10 and FWH 22.6 Regards, Detlef[/quote:20tmmxnm] it run ok without xp manifest , 'I'm using that i found on fwh folders it's very strange [img:20tmmxnm]https&#58;//i&#46;postimg&#46;cc/HL2cXfxH/g&#46;png[/img:20tmmxnm]
clausole When...Hide a size of Dialog - strange - RESOLVED
Hi Silvio, for me your sample is working fine. No missing elements if ' WHEN nRadio=2'. The checkbox is properly enabled if I press the radio button 2 and also disabled when I press radio button 1. I use Windows 10 and FWH 22.6 Regards, Detlef
clausole When...Hide a size of Dialog - strange - RESOLVED
Dear Silvio, here apparently it works very well. Test this version, and report if it doesn't work. Estimado Silvio, aquí aparentemente funciona muy bien. Pruebe esta versión e informe si no funciona. If I don't understand something, please explain in more detail. Si no entiendo algo, por favor explíquelo con más detalle. [code=fw:1hd5qst7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\RADSILV.PRG - Cambiado en: 10/10/2022</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #B900B9;">// 'DLG_CHARPIX_W'</span><br /><span style="color: #B900B9;">// 'DLG_CHARPIX_H'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> MEM_FILE <span style="color: #ff0000;">"test.ini"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// RddSetDefault( "DBFCDX" )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// SetHandleCount( 100 ) &nbsp;// CLIPPER 16 Bits.</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// SET DATE FORMAT "dd-mm-yyyy"</span><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE BRITISH<br />&nbsp; &nbsp;SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"HH:MM:SS"</span><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span> DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">30</span><br />&nbsp; &nbsp;SET SOFTSEEK OFF<br />&nbsp; &nbsp;SET WRAP <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SETCANCEL<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SET CONFIRM OFF<br />&nbsp; &nbsp;SET DELETED <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET _3DLOOK <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET UNIQUE OFF<br />&nbsp; &nbsp;SET ESCAPE OFF<br />&nbsp; &nbsp;SET EXACT <span style="color: #0000ff;">ON</span> &nbsp;<span style="color: #B900B9;">// CONTROLA O :=, = e ==</span><br />&nbsp; &nbsp;SET EXCLUSIVE OFF<br />&nbsp; &nbsp;SET MULTIPLE OFF<br /><br />&nbsp; &nbsp;Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDTxtColor := <span style="color: #000000;">192</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nBottom &nbsp; &nbsp;:= <span style="color: #000000;">25</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRight &nbsp; &nbsp; := <span style="color: #000000;">55</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nWidth &nbsp; &nbsp; := <span style="color: #0000ff;">MAX</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nHeight &nbsp; &nbsp;:= nBottom * DLG_CHARPIX_H<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cIniFile &nbsp; := cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + MEM_FILE<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cSection &nbsp; := <span style="color: #ff0000;">"HTML"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGet &nbsp; &nbsp; &nbsp; := ARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oGrp &nbsp; &nbsp; &nbsp; := ARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lCheck_HeaderExcel := .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitulo1 := <span style="color: #ff0000;">"Estrazioni"</span>, cTitle := <span style="color: #ff0000;">"Salva"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitulo2 := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oRad, nRadio, oFont, oBold, oBtnConfirm, oBtnClose, oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-12</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> cTitle ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_WHITE TRANSPARENT <span style="color: #0000ff;">FONT</span> oBold<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">12</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Finestra: "</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTitulo1 <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">28</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Scheda: "</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">FONT</span> oBold<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">26</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTitulo2 <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">RADIO</span> oRad <span style="color: #0000ff;">VAR</span> nRadio <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">130</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&Salva su Pagina Web"</span> <br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oRad:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | oRad | oRad:<span style="color: #000000;">lTransparent</span> := .T., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRad:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span>, oRad:<span style="color: #000000;">nClrText</span> := nDTxtColor <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">58</span>, <span style="color: #000000;">10</span> GROUP oGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">TO</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">215</span> &nbsp;<span style="color: #0000ff;">OF</span> &nbsp;oDlg &nbsp;<span style="color: #0000ff;">PIXEL</span> TRANSPARENT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">05</span> RADIOITEM <span style="color: #ff0000;">"Salva come Foglio Excel"</span> RADIOMENU oRad <span style="color: #0000ff;">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">130</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oRad:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | oRad | oRad:<span style="color: #000000;">lTransparent</span> := .T., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRad:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span>, oRad:<span style="color: #000000;">nClrText</span> := nDTxtColor <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">125</span>, <span style="color: #000000;">10</span> GROUP oGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">TO</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">215</span> &nbsp;<span style="color: #0000ff;">OF</span> &nbsp;oDlg &nbsp;<span style="color: #0000ff;">PIXEL</span> TRANSPARENT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">130</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lCheck_HeaderExcel <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">10</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Includi intestazioni"</span> <span style="color: #0000ff;">WHEN</span> nRadio == <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; COLORS nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>, &nbsp; <span style="color: #000000;">0</span>, &nbsp; <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, nRgb<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">72</span>, <span style="color: #000000;">180</span>, <span style="color: #000000;">215</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtnConfirm <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Salva"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">15</span> <span style="color: #00C800;">DEFAULT</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span> IDOK &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtnClose &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Annulla"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">15</span> CANCEL ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span> IDCANCEL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bResized</span> &nbsp;:= < ||<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oRect &nbsp; &nbsp; &nbsp; &nbsp;:= oDlg:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBtnConfirm:<span style="color: #000000;">nTop</span> &nbsp; := oRect:<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">40</span><br />&nbsp; &nbsp;oBtnConfirm:<span style="color: #000000;">nLeft</span> &nbsp;:= oRect:<span style="color: #000000;">nRight</span> - <span style="color: #000000;">210</span><br />&nbsp; &nbsp;oBtnClose:<span style="color: #000000;">nTop</span> &nbsp; &nbsp; := oRect:<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">40</span><br />&nbsp; &nbsp;oBtnClose:<span style="color: #000000;">nLeft</span> &nbsp; &nbsp;:= oRect:<span style="color: #000000;">nRight</span> - <span style="color: #000000;">110</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> eval<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">bResized</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oDlg:<span style="color: #000000;">nresult</span> == IDOK<br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//save</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// FIN / END</span><br />&nbsp;</div>[/code:1hd5qst7] Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
I'm going to do a test with MANIFEST and if it works, I'll post it on my mega for you to download. Voy a hacer una prueba con MANIFEST y si funciona, lo publicaré en mi mega para que lo descargues. Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
Perfecto, perfect! [url:nr8alu8w]https&#58;//imgur&#46;com/trCfAaG[/url:nr8alu8w] [img:nr8alu8w]https&#58;//i&#46;imgur&#46;com/trCfAaG&#46;png[/img:nr8alu8w] Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
I love FiveWin. Una Imagen habla por si. jajajajajaja. [url:2pnaea0x]https&#58;//imgur&#46;com/CzZ1Atb[/url:2pnaea0x] [img:2pnaea0x]https&#58;//i&#46;imgur&#46;com/CzZ1Atb&#46;png[/img:2pnaea0x] Regards, saludos
clausole When...Hide a size of Dialog - strange - RESOLVED
Dear Silvio, Download completo aqui: [url:fogy0wry]https&#58;//mega&#46;nz/file/dQ9WiB5I#3ZM5XASjhQoF0mPx8x7AKf1NISDH15ta9WhJpiPrbQk[/url:fogy0wry] Perfecto, perfect. [code=fw:fogy0wry]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\RADSILV.PRG - Cambiado en: 11/10/2022</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #B900B9;">// 'DLG_CHARPIX_W'</span><br /><span style="color: #B900B9;">// 'DLG_CHARPIX_H'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> MEM_FILE <span style="color: #ff0000;">"test.ini"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;HB_GCALL<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// limpia basura</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// RddSetDefault( "DBFCDX" )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// SetHandleCount( 100 ) &nbsp;// CLIPPER 16 Bits.</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// SET DATE FORMAT "dd-mm-yyyy"</span><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE BRITISH<br />&nbsp; &nbsp;SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"HH:MM:SS"</span><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span> DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">30</span><br />&nbsp; &nbsp;SET SOFTSEEK OFF<br />&nbsp; &nbsp;SET WRAP <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SETCANCEL<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SET CONFIRM OFF<br />&nbsp; &nbsp;SET DELETED <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET _3DLOOK <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET UNIQUE OFF<br />&nbsp; &nbsp;SET ESCAPE OFF<br />&nbsp; &nbsp;SET EXACT <span style="color: #0000ff;">ON</span> &nbsp;<span style="color: #B900B9;">// CONTROLA O :=, = e ==</span><br />&nbsp; &nbsp;SET EXCLUSIVE OFF<br />&nbsp; &nbsp;SET MULTIPLE OFF<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Test() // in background</span><br />&nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AGUARDE... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Por Favor, Espere Apertura. "</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> || WinExec<span style="color: #000000;">&#40;</span> TEST<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Release</span> All<br />&nbsp; &nbsp;SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;HB_GCALL<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CLEAR MEMORY<br />&nbsp; &nbsp;PostQuitMessage<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;QUIT<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDTxtColor := <span style="color: #000000;">192</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nBottom &nbsp; &nbsp;:= <span style="color: #000000;">25</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRight &nbsp; &nbsp; := <span style="color: #000000;">55</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nWidth &nbsp; &nbsp; := <span style="color: #0000ff;">MAX</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nHeight &nbsp; &nbsp;:= nBottom * DLG_CHARPIX_H<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cIniFile &nbsp; := cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + MEM_FILE<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cSection &nbsp; := <span style="color: #ff0000;">"HTML"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aGet &nbsp; &nbsp; &nbsp; := ARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oGrp &nbsp; &nbsp; &nbsp; := ARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lCheck_HeaderExcel := .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitulo1 := <span style="color: #ff0000;">"Estrazioni"</span>, cTitle := <span style="color: #ff0000;">"Salva"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitulo2 := <span style="color: #000000;">&#91;</span>USANDO MANIFEST DE WINDOWS &nbsp; &nbsp;<span style="color: #000000;">&#93;</span> <span style="color: #B900B9;">// SPACE( 30 )</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oRad, nRadio, oFont, oBold, oBtnConfirm, oBtnClose, oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-12</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> cTitle ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_WHITE TRANSPARENT <span style="color: #0000ff;">FONT</span> oBold<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">12</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Finestra: "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTitulo1 <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">28</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Scheda: "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">26</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTitulo2 <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">RADIO</span> oRad <span style="color: #0000ff;">VAR</span> nRadio <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">130</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&Salva su Pagina Web"</span> <br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oRad:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | oRad | oRad:<span style="color: #000000;">lTransparent</span> := .T., &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRad:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span>, oRad:<span style="color: #000000;">nClrText</span> := nDTxtColor <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">58</span>, <span style="color: #000000;">10</span> GROUP oGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">TO</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">215</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> TRANSPARENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Usando manifest"</span> <span style="color: #0000ff;">COLOR</span> CLR_HCYAN<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">05</span> RADIOITEM <span style="color: #ff0000;">"Salva come Foglio Excel"</span> RADIOMENU oRad <span style="color: #0000ff;">OF</span> oDlg &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">130</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oRad:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | oRad | oRad:<span style="color: #000000;">lTransparent</span> := .T., &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRad:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span>, oRad:<span style="color: #000000;">nClrText</span> := nDTxtColor <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">125</span>, <span style="color: #000000;">10</span> GROUP oGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">215</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> TRANSPARENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Usando manifest"</span> <span style="color: #0000ff;">COLOR</span> CLR_HBLUE<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">140</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lCheck_HeaderExcel <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">10</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Includi intestazioni"</span> <span style="color: #0000ff;">WHEN</span> nRadio == <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; COLORS nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>, &nbsp; <span style="color: #000000;">0</span>, &nbsp; <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, nRgb<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">72</span>, <span style="color: #000000;">180</span>, <span style="color: #000000;">215</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtnConfirm <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Salva"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">15</span> <span style="color: #00C800;">DEFAULT</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span> IDOK &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtnClose &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Annulla"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">15</span> CANCEL ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span> IDCANCEL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bResized</span> &nbsp;:= < ||<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oRect &nbsp; &nbsp; &nbsp; &nbsp;:= oDlg:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBtnConfirm:<span style="color: #000000;">nTop</span> &nbsp; := oRect:<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">40</span><br />&nbsp; &nbsp;oBtnConfirm:<span style="color: #000000;">nLeft</span> &nbsp;:= oRect:<span style="color: #000000;">nRight</span> &nbsp;- <span style="color: #000000;">210</span><br />&nbsp; &nbsp;oBtnClose:<span style="color: #000000;">nTop</span> &nbsp; &nbsp; := oRect:<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">40</span><br />&nbsp; &nbsp;oBtnClose:<span style="color: #000000;">nLeft</span> &nbsp; &nbsp;:= oRect:<span style="color: #000000;">nRight</span> &nbsp;- <span style="color: #000000;">110</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">172.5</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Manifest Windows: "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_WHITE<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> eval<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">bResized</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oDlg:<span style="color: #000000;">nresult</span> == IDOK<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//save</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FiveWin The Best!"</span>, <span style="color: #ff0000;">"FiveWin The Best!"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// FIN / END - <!-- e --><a href="mailto:kapiabafw@gmail.com">kapiabafw@gmail.com</a><!-- e --></span><br />&nbsp;</div>[/code:fogy0wry] Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
I use the manifest of fwh and not run U are not using windows Seven or Windows 10 indeed your snapshot are on another operating system
clausole When...Hide a size of Dialog - strange - RESOLVED
Dear Silvio: Check with the FiveTech team, if they have another MANIFEST for Windows 10. Or is there any configuration missing in your Windows 10. Consulte con el equipo de FiveTech si tienen otro MANIFEST para Windows 10. O si falta alguna configuración en su Windows 10. Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
[quote="karinha":3jtn9zi8]Dear Silvio: Check with the FiveTech team, if they have another MANIFEST for Windows 10. Or is there any configuration missing in your Windows 10. Consulte con el equipo de FiveTech si tienen otro MANIFEST para Windows 10. O si falta alguna configuración en su Windows 10. Regards, saludos.[/quote:3jtn9zi8] [b:3jtn9zi8]why the other my applcations made with fwh run ok ?[/b:3jtn9zi8]
clausole When...Hide a size of Dialog - strange - RESOLVED
Dear Silvio, I don't know. I don't work for FiveTech. I asked FiveWin Brasil to test your example on Windows 10. Let's wait. In the meantime, talk to the FiveTech team and report the problem. Estimado Silvio, no sé. No trabajo para FiveTech. Le pedí a FiveWin Brasil que probara su ejemplo en Windows 10. Esperemos. Mientras tanto, hable con el equipo de FiveTech e informe el problema. Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
I'm using the Winxp rmanifest ( folder fwh ) on Windows Seven and Windows 10 [b:n1716uva]xplook.rc[/b:n1716uva] [code=fw:n1716uva]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WindowsXP.Manifest"</span></div>[/code:n1716uva] [b:n1716uva]WindowsXP.Manifest[/b:n1716uva] [code=fw:n1716uva]<div class="fw" id="{CB}" style="font-family: monospace;"><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"UTF-8"</span> standalone=<span style="color: #ff0000;">"yes"</span>?><br /><assembly xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:asm.v1"</span> manifestVersion=<span style="color: #ff0000;">"1.0"</span>><br /><assemblyIdentity<br />&nbsp; &nbsp; version=<span style="color: #ff0000;">"1.0.0.0"</span><br />&nbsp; &nbsp; processorArchitecture=<span style="color: #ff0000;">"X86"</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveTech Software.FiveWin.32bits"</span><br />&nbsp; &nbsp; type=<span style="color: #ff0000;">"win32"</span><br />/><br /><description>Your application description here.</description><br /><dependency><br />&nbsp; &nbsp; <dependentAssembly><br />&nbsp; &nbsp; &nbsp; &nbsp; <assemblyIdentity<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type=<span style="color: #ff0000;">"win32"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"Microsoft.Windows.Common-Controls"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; version=<span style="color: #ff0000;">"6.0.0.0"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processorArchitecture=<span style="color: #ff0000;">"X86"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publicKeyToken=<span style="color: #ff0000;">"6595b64144ccf1df"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; language=<span style="color: #ff0000;">"*"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; /><br />&nbsp; &nbsp; </dependentAssembly><br /></dependency><br /></assembly><br />&nbsp;</div>[/code:n1716uva] [img:n1716uva]https&#58;//i&#46;postimg&#46;cc/2SspYMsN/dd&#46;gif[/img:n1716uva]
clausole When...Hide a size of Dialog - strange - RESOLVED
Dear Silvio, you are really right, they are reporting on FiveWin Brasil that they have problems with MANIFEST with Windows 10 and Windows 11, and that Fivetech has not yet positioned itself on the matter. Please test this MANIFEST modified by Giovanny Vecchy and let us know what happens. Estimado Silvio, tienes mucha razón, están informando en FiveWin Brasil que tienen problemas con MANIFEST con Windows 10 y Windows 11, y que Fivetech aún no se ha posicionado al respecto. Pruebe este MANIFEST modificado por Giovanny Vecchy y háganos saber qué sucede. [url:dzmnf69f]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=34483[/url:dzmnf69f] [url:dzmnf69f]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/27210-arquivo-manifest-para-windows-10/[/url:dzmnf69f] Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
[quote="karinha":q4asln5z]Dear Silvio, you are really right, they are reporting on FiveWin Brasil that they have problems with MANIFEST with Windows 10 and Windows 11, and that Fivetech has not yet positioned itself on the matter. Please test this MANIFEST modified by Giovanny Vecchy and let us know what happens. Estimado Silvio, tienes mucha razón, están informando en FiveWin Brasil que tienen problemas con MANIFEST con Windows 10 y Windows 11, y que Fivetech aún no se ha posicionado al respecto. Pruebe este MANIFEST modificado por Giovanny Vecchy y háganos saber qué sucede. [url:q4asln5z]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=34483[/url:q4asln5z] [url:q4asln5z]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/27210-arquivo-manifest-para-windows-10/[/url:q4asln5z] Regards, saludos.[/quote:q4asln5z] with [code=fw:q4asln5z]<div class="fw" id="{CB}" style="font-family: monospace;"><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"UTF-8"</span> standalone=<span style="color: #ff0000;">"yes"</span>?><br /><assembly xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:asm.v1"</span> manifestVersion=<span style="color: #ff0000;">"1.0"</span>><br /><br />&nbsp; <compatibility xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:compatibility.v1"</span>><br />&nbsp; &nbsp; &nbsp; <application><br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows <span style="color: #000000;">10</span> functionality--><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"</span>/><br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows Vista functionality --><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{e2011457-1546-43c5-a5fe-008deee3d3f0}"</span>/><br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows <span style="color: #000000;">7</span> functionality--><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"</span>/><br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows <span style="color: #000000;">8</span> functionality--><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"</span>/><br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows <span style="color: #000000;">8.1</span> functionality--><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{1f676c76-80e1-4239-95bb-83d0f6d0da78}"</span>/><br />&nbsp; &nbsp; &nbsp; </application><br />&nbsp; </compatibility><br /><br />&nbsp; <trustInfo xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:asm.v2"</span>><br />&nbsp; &nbsp; <security><br />&nbsp; &nbsp; &nbsp; <requestedPrivileges xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:asm.v3"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; <requestedExecutionLevel &nbsp;level=<span style="color: #ff0000;">"highestAvailable"</span> uiAccess=<span style="color: #ff0000;">"false"</span> /> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;</requestedPrivileges><br />&nbsp; &nbsp; </security><br />&nbsp; </trustInfo><br /><br /><assemblyIdentity<br />&nbsp; &nbsp; version=<span style="color: #ff0000;">"1.0.0.0"</span><br />&nbsp; &nbsp; processorArchitecture=<span style="color: #ff0000;">"X86"</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveTech Software.FiveWin.32bits"</span><br />&nbsp; &nbsp; type=<span style="color: #ff0000;">"win32"</span><br />/><br /><description>Your application description here.</description><br /><dependency><br />&nbsp; &nbsp; <dependentAssembly><br />&nbsp; &nbsp; &nbsp; &nbsp; <assemblyIdentity<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type=<span style="color: #ff0000;">"win32"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"Microsoft.Windows.Common-Controls"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; version=<span style="color: #ff0000;">"6.0.0.0"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processorArchitecture=<span style="color: #ff0000;">"X86"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publicKeyToken=<span style="color: #ff0000;">"6595b64144ccf1df"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; language=<span style="color: #ff0000;">"*"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; /><br />&nbsp; &nbsp; </dependentAssembly><br /></dependency><br /></assembly><br />&nbsp;</div>[/code:q4asln5z] the error is the same
clausole When...Hide a size of Dialog - strange - RESOLVED
this morning I not see the theme on Button class and i use windows 10
clausole When...Hide a size of Dialog - strange - RESOLVED
Dear Silvio, the same problem was reported by FiveWin Brasil staff. Talk to Mister Navarro to see if he can find a solution. Now, if it's a defect of Windows 10 and 11, I don't see a way out. Estimado Silvo, el mismo problema fue informado por el personal de FiveWin Brasil. Habla con el señor Navarro para ver si puede encontrar una solución. Ahora bien, si es un defecto de Windows 10 y 11, no le veo salida. Regards, saludos.
clausole When...Hide a size of Dialog - strange - RESOLVED
WINDOWS.MANIFEST Silvio, Please: test with this model and report if anything changes: Silvio, por favor: prueba con este modelo e informa si algo cambia: [code=fw:2320cm0c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"UTF-8"</span> standalone=<span style="color: #ff0000;">"yes"</span>?><br /><assembly xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:asm.v1"</span> manifestVersion=<span style="color: #ff0000;">"1.0"</span>><br /><br />&nbsp; <compatibility xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:compatibility.v1"</span>> <br />&nbsp; &nbsp; &nbsp; <application> <br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows Vista functionality --><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{e2011457-1546-43c5-a5fe-008deee3d3f0}"</span>/> <br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows <span style="color: #000000;">7</span> functionality--><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"</span>/><br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows <span style="color: #000000;">8</span> functionality--><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"</span>/><br />&nbsp; &nbsp; &nbsp; &nbsp; <!--This <span style="color: #0000ff;">Id</span> value indicates the application supports Windows <span style="color: #000000;">8.1</span> functionality--><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <supportedOS <span style="color: #0000ff;">Id</span>=<span style="color: #ff0000;">"{1f676c76-80e1-4239-95bb-83d0f6d0da78}"</span>/><br />&nbsp; &nbsp; &nbsp; </application> <br />&nbsp; </compatibility><br /><br />&nbsp; <assemblyIdentity type=<span style="color: #ff0000;">"win32"</span>/><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveTech Software.FiveWin.32bits"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; version=<span style="color: #ff0000;">"6.0.0.0"</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processorArchitecture=<span style="color: #ff0000;">"x86"</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publicKeyToken=<span style="color: #ff0000;">"6595b64144ccf1df"</span><br />&nbsp; /><br />&nbsp; <dependency><br />&nbsp; &nbsp; <dependentAssembly><br />&nbsp; &nbsp; &nbsp; <assemblyIdentity type=<span style="color: #ff0000;">"win32"</span>/><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"Microsoft.Windows.Common-Controls"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; version=<span style="color: #ff0000;">"6.0.0.0"</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processorArchitecture=<span style="color: #ff0000;">"X86"</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publicKeyToken=<span style="color: #ff0000;">"6595b64144ccf1df"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; language=<span style="color: #ff0000;">"*"</span><br />&nbsp; &nbsp; &nbsp; /><br />&nbsp; &nbsp; </dependentAssembly><br />&nbsp; </dependency><br /></assembly><br />&nbsp;</div>[/code:2320cm0c] OR IF IT IS A AMD PROCESSOR: O SI ES UN PROCESADOR AMD: processorArchitecture="amd64" Gracias, thanks. Regards, saludos.