topic
stringlengths
1
63
text
stringlengths
1
577k
Como hacer esta tela(screen) en FWH cual classe?
No conozco ninguna clase que haga todo eso por sí misma
Como hacer esta tela(screen) en FWH cual classe?
[quote="cnavarro":2si5nwes]No conozco ninguna clase que haga todo eso por sí misma[/quote:2si5nwes] De repente la pregunta estuvo mal planteada. Como se haria para que las interfases de FWH tengan esa presentacion, tal vez es asi ?
Como hacer esta tela(screen) en FWH cual classe?
Master Navarro con TTASKPANEL, és posible? Mira imagen que tengo aqui: [img:31037q7d]https://i.imgur.com/65QoWjG.png[/img:31037q7d] Saludos.
Como hacer esta tela(screen) en FWH cual classe?
Joao, para que tenga la apariencia de la pantalla que has puesto, no Es mejor utilizar un xbrowse. Olvida los antiguos controles. No es difícil de configurar
Como hacer esta tela(screen) en FWH cual classe?
Con TTaskPanel lo más parecido sería esto <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=34973&start=0#p208655">viewtopic.php?f=17&t=34973&start=0#p208655</a><!-- l -->
Como hacer esta tela(screen) en FWH cual classe?
[quote="cnavarro":3vkxi7xg]Joao, para que tenga la apariencia de la pantalla que has puesto, no Es mejor utilizar un xbrowse. Olvida los antiguos controles. No es difícil de configurar[/quote:3vkxi7xg] Tradución: João, para que tenha a aparência da tela que você colocou, não É melhor usar um xbrowse. Esqueça os controles antigos. Não é difícil configurar. Master, porquê no usar xBrowse? No és más moderno? Gracias, saludos.
Como hacer esta tela(screen) en FWH cual classe?
[quote="karinha":21e611a7][quote="cnavarro":21e611a7]Joao, para que tenga la apariencia de la pantalla que has puesto, no Es mejor utilizar un xbrowse. Olvida los antiguos controles. No es difícil de configurar[/quote:21e611a7] Tradución: João, para que tenha a aparência da tela que você colocou, não É melhor usar um xbrowse. Esqueça os controles antigos. Não é difícil configurar. Master, porquê no usar xBrowse? No és más moderno? Gracias, saludos.[/quote:21e611a7] No entiendo Estoy diciendo que SI es mejor utilizar un control XBROWSE <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=34973#p207950">viewtopic.php?f=17&t=34973#p207950</a><!-- l -->
Como hacer esta tela(screen) en FWH cual classe?
[quote="cnavarro":ocxtbwdf]Con TTaskPanel lo más parecido sería esto <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=34973&start=0#p208655">viewtopic.php?f=17&t=34973&start=0#p208655</a><!-- l -->[/quote:ocxtbwdf] Very good master. Muchas gracias. many thanks. Saludos.
Como hacer esta tela(screen) en FWH cual classe?
[quote="cnavarro":2izz9tqc][quote="karinha":2izz9tqc][quote="cnavarro":2izz9tqc]Joao, para que tenga la apariencia de la pantalla que has puesto, no Es mejor utilizar un xbrowse. Olvida los antiguos controles. No es difícil de configurar[/quote:2izz9tqc] Tradución: João, para que tenha a aparência da tela que você colocou, não É melhor usar um xbrowse. Esqueça os controles antigos. Não é difícil configurar. Master, porquê no usar xBrowse? No és más moderno? Gracias, saludos.[/quote:2izz9tqc] No entiendo Estoy diciendo que SI es mejor utilizar un control XBROWSE <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=34973#p207950">viewtopic.php?f=17&t=34973#p207950</a><!-- l -->[/quote:2izz9tqc] OK! Comprendo. era una pregunta y no una afirmativa. no Es mejor utilizar un xbrowse. Tradución erronea. Sorry. Gracias. jajajajajajaja. Saludos.
Como hacer esta tela(screen) en FWH cual classe?
[quote="cnavarro":3rnpd29u][quote="karinha":3rnpd29u][quote="cnavarro":3rnpd29u]Joao, para que tenga la apariencia de la pantalla que has puesto, no Es mejor utilizar un xbrowse. Olvida los antiguos controles. No es difícil de configurar[/quote:3rnpd29u] Tradución: João, para que tenha a aparência da tela que você colocou, não É melhor usar um xbrowse. Esqueça os controles antigos. Não é difícil configurar. Master, porquê no usar xBrowse? No és más moderno? Gracias, saludos.[/quote:3rnpd29u] No entiendo Estoy diciendo que SI es mejor utilizar un control XBROWSE <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=34973#p207950">viewtopic.php?f=17&t=34973#p207950</a><!-- l -->[/quote:3rnpd29u] El programa arroja error
Como hacer esta tela(screen) en FWH cual classe?
Qué error?
Como hacer esta tela(screen) en FWH cual classe?
También és una alternativa, FiveUi: [url:zqoogcfg]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fiveui_soporte[/url:zqoogcfg] Saludos.
Como hacer esta tela(screen) en FWH cual classe?
[quote="karinha":3ooaeav4]También és una alternativa, FiveUi: [url:3ooaeav4]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fiveui_soporte[/url:3ooaeav4] Saludos.[/quote:3ooaeav4] Por supuesto, qué voy a decir yo? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Como hacer esta tela(screen) en FWH cual classe?
[quote="cnavarro":gkgstwl8][quote="karinha":gkgstwl8]También és una alternativa, FiveUi: [url:gkgstwl8]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fiveui_soporte[/url:gkgstwl8] Saludos.[/quote:gkgstwl8] Por supuesto, qué voy a decir yo? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->[/quote:gkgstwl8] Maestro Sirve esta opcion para crear ese tipo de ventanass ?? [url:gkgstwl8]https&#58;//blogs&#46;windows&#46;com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/[/url:gkgstwl8]
Como hacer esta tela(screen) en FWH cual classe?
No me has dicho el error que te da En cuanto a lo que comentas Por supuesto, es una posibilidad.
Como hacer esta tela(screen) en FWH cual classe?
[quote="cnavarro":3a7p40ef]No me has dicho el error que te da En cuanto a lo que comentas Por supuesto, es una posibilidad.[/quote:3a7p40ef] Aca el error Time from start: 0 hours 0 mins 0 secs Error occurred at: 12/06/18, 13:50:51 Error description: Error BASE/1075 Argument error: > Args: [ 1] = U [ 2] = N 855 Stack Calls =========== Called from: .\source\classes\TEXPLBAR.PRG => TEXPLORERBAR:RESIZE( 244 ) Called from: .\source\classes\CONTROL.PRG => TPANEL:_NALIGN( 1521 ) Called from: testmdi100.prg => HAZEXPLORERBAR( 167 ) Called from: testmdi100.prg => (b)MAIN( 56 ) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1038 ) Called from: testmdi100.prg => MAIN( 56 ) System
Como hacer esta tela(screen) en FWH cual classe?
Called from: testmdi100.prg => HAZEXPLORERBAR( 167 ) // use asi: [code=fw:2bcze2v5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   WITH OBJECT <span style="color: #000000;">&#40;</span> oPnel2 := TPanel<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;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, nWPanel, oExplBar <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, METRO_OLIVE <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetBrush</span><span style="color: #000000;">&#40;</span> oBrush <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//      :nAlign  := 3  // NO ACCEPTA Porque master Navarro?</span><br />      WndHeight<span style="color: #000000;">&#40;</span> :<span style="color: #000000;">hWnd</span>, :<span style="color: #000000;">nHeight</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">bPainted</span>   := <span style="color: #000000;">&#123;</span> | o | HazSayPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">&#123;</span> | o | lHide := !lHide, ;<br />                             oVSplitL:<span style="color: #000000;">SetPosition</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !lHide, nWPanel + <span style="color: #000000;">1</span>, nPosVSp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                             Eval<span style="color: #000000;">&#40;</span> oVSplitL:<span style="color: #000000;">bChange</span> <span style="color: #000000;">&#41;</span>, ;<br />                             oVSplitL:<span style="color: #0000ff;">Adjust</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWndCalend:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   END WITH<br /> </div>[/code:2bcze2v5] Imagen: [img:2bcze2v5]https&#58;//i&#46;imgur&#46;com/UOolduE&#46;png[/img:2bcze2v5] Saludos.
Como hacer esta tela(screen) en FWH cual classe?
Maestro Navarro, uso Resolución 1024 x 768, la ventana es demasiado grande, cómo disminuir la ventana? Los Bitmaps de D: \ FWH \ FWHTEAM, es posible poner a disposición? Un abrazo, saludos. [code=fw:2begywum]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Test implementation MDI enviroment</span><br /><span style="color: #B900B9;">// Author: Cristobal Navarro</span><br /><span style="color: #B900B9;">// Date: 28/12/2017 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Modificado en: 07/12/2018 - Joao.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</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;">"splitter.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oWndP<br /><span style="color: #00C800;">Static</span> oWnd<br /><span style="color: #00C800;">Static</span> oWndCalend<br /><span style="color: #00C800;">Static</span> oBarMdi<br /><span style="color: #00C800;">Static</span> oFont<br /><span style="color: #00C800;">Static</span> oFont1<br /><span style="color: #00C800;">Static</span> oFont2<br /><span style="color: #00C800;">Static</span> oExplBar<br /><span style="color: #00C800;">Static</span> oVSplitL<br /><span style="color: #00C800;">Static</span> oTitle<br /><span style="color: #00C800;">Static</span> oPnel2<br /><span style="color: #00C800;">Static</span> nRow &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Static</span> nCol &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Static</span> nHChild &nbsp; &nbsp; := <span style="color: #000000;">250</span><br /><span style="color: #00C800;">Static</span> nWChild &nbsp; &nbsp; := <span style="color: #000000;">400</span><br /><span style="color: #00C800;">Static</span> nPosL &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Static</span> nPosVSp &nbsp; &nbsp; := <span style="color: #000000;">360</span> <span style="color: #B900B9;">//331</span><br /><span style="color: #00C800;">Static</span> nHSay &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">19</span><br /><span style="color: #00C800;">Static</span> nWPanel &nbsp; &nbsp; := <span style="color: #000000;">32</span><br /><span style="color: #00C800;">Static</span> cTitPnel &nbsp; &nbsp;:= <span style="color: #ff0000;">"TITULO PANEL ( Press Double Click )"</span><br /><span style="color: #00C800;">Static</span> cTitWnd &nbsp; &nbsp; := <span style="color: #ff0000;">"TITULO VENTANA"</span><br /><span style="color: #00C800;">Static</span> lAdjChild &nbsp; := .F.<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 />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMenu<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> <span style="color: #B900B9;">//BOLD</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-20</span> NESCAPEMENT <span style="color: #000000;">900</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">STYLE</span> WS_POPUP COLORS <span style="color: #000000;">0</span>, CLR_HGRAY<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> oTitle <span style="color: #0000ff;">PROMPT</span> cTitWnd <span style="color: #0000ff;">OF</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> nPosVSp + <span style="color: #000000;">11</span>, nHSay <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">COLOR</span> CLR_BROWN, CLR_WHITE<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGBAR <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Sample MDI"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//oWnd:oLeft &nbsp;:= oExplBar</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> HazExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, HazSplit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HazMdi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nPosL := oWndCalend:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> SendMessage<span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">hWnd</span>, WM_CLOSE <span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont1<br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont2<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;">Function</span> HazSplit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBrush<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>piral.bmp"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">24</span>, nPosVSp SPLITTER oVSplitL ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VERTICAL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; PREVIOUS CONTROLS oTitle, oExplBar ; <span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp;HINDS CONTROLS oWndCalend ;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">LEFT</span> MARGIN <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> MARGIN <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, ScreenHeight<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> - <span style="color: #000000;">23</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_GRAY <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">nWidth</span> + <span style="color: #000000;">&#40;</span> nPosL - <span style="color: #000000;">&#40;</span> oVSplitL:<span style="color: #000000;">nRight</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">26</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWndCalend:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, oVSplitL:<span style="color: #000000;">nRight</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AEVal<span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">aWnd</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> | w | w:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> w:<span style="color: #000000;">nTop</span>, w:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; w:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> w:<span style="color: #000000;">nWidth</span>, w:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPosL := oVSPlitL:<span style="color: #000000;">nRight</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Para ajustar proporcionalmente el ancho de las childs al mover el splitter</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//w:SetSize( w:nWidth + ( nPosL - ( oVSplitL:nRight + 2 ) ), w:nHeight ) } ), ;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oVSplitL:<span style="color: #000000;">SetBrush</span><span style="color: #000000;">&#40;</span> oBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush &nbsp; <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;">Function</span> HazExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aPnels := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lHide &nbsp;:= .T.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oSay<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> bClick &nbsp;:= <span style="color: #000000;">&#123;</span> | o | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aGrad &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> CLR_WHITE, METRO_OLIVE <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_WHITE, METRO_OLIVE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBrush, nPanel, nItem &nbsp;<span style="color: #B900B9;">// warnings</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aGrad1 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, METRO_OLIVE, CLR_HGRAY <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, CLR_HGRAY, METRO_OLIVE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush GRADIENT aGrad1<br /><br />&nbsp; &nbsp;oExplBar := TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nHSay + <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, nPosVSp - <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">2</span>, oWnd, , , , , , , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oExplBar:<span style="color: #000000;">nTopColor</span> &nbsp; &nbsp; := Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oExplBar:<span style="color: #000000;">nBottomColor</span> &nbsp;:= aGrad<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aPnels, oExplBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DATABASES"</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\C</span>rashDumpFile_32x_24.Bmp"</span>, , <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span>, aGrad, oFont, CLR_WHITE, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WITH OBJECT Atail<span style="color: #000000;">&#40;</span> aPnels <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//oPanel1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//:nOffSetX &nbsp; &nbsp; &nbsp; &nbsp;:= 100</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nClrTextSpecial</span> := CLR_WHITE<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nClrHover</span> &nbsp; &nbsp; &nbsp; := Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//RGB( 66, 142, 255 )</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nOffSetY</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">12</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\C</span>heckOut_16x_32.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\C</span>heckIn_16x_32.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nTopMargin</span> &nbsp; &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nLeftMargin</span> &nbsp; := nWPanel + <span style="color: #000000;">22</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRightMargin</span> &nbsp;:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nLeft</span> &nbsp; &nbsp; &nbsp; &nbsp; := aPnels<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nLeftMargin</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRight</span> &nbsp; &nbsp; &nbsp; &nbsp;:= oWnd:<span style="color: #000000;">nWidth</span> - aPnels<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nRightMargin</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Open"</span>, bClick, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\D</span>atabaseRun_16x_32.bmp"</span>, , METRO_OLIVE, , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Explorer"</span>, bClick, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\D</span>atabaseAuditSpecification_16x_32.bmp"</span>, , METRO_OLIVE, , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Structure"</span>, bClick, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\D</span>atabar_16x_32.Bmp"</span>, , METRO_OLIVE, , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Tools"</span>, bClick, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\D</span>atabaseOptions_12882_32.bmp"</span>, , METRO_OLIVE, , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Close"</span>, bClick, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\D</span>atabaseOffline_16x_32.bmp"</span>, , METRO_OLIVE, , <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;WITH OBJECT oExplBar<br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aPnels, :<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TOOLS"</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\D</span>ataMiningStructure_32x_24.bmp"</span>, , <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span>, aGrad, oFont, CLR_WHITE, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aPnels, :<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EDITOR"</span>, &nbsp; <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\F</span>rameworkDesignStudio_32x_24.bmp"</span>, , <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span>, aGrad, oFont, CLR_WHITE, CLR_WHITE &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aPnels, :<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EXPLORER"</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\F</span>ileDialogReport_32x_24.bmp"</span>, , <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span>, aGrad, oFont, CLR_WHITE, CLR_WHITE &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aPnels, :<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EXP./IMPORT"</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\G</span>etTextFormat_32x_24.Bmp"</span>, , <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span>, aGrad, oFont, CLR_WHITE, CLR_WHITE &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aPnels, :<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"USERS"</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\L</span>ookupPrincipal_32x_24.bmp"</span>, , <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span>, aGrad, oFont, CLR_WHITE, CLR_WHITE &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">For</span> nPanel := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aPnels <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aPanels</span><span style="color: #000000;">&#91;</span> nPanel <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//:lSpecial &nbsp; &nbsp; &nbsp; &nbsp;:= .T.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//:nOffSetX &nbsp; &nbsp; &nbsp; &nbsp;:= 60</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lCollapsed</span> &nbsp; &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\C</span>heckOut_16x_32.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\C</span>heckIn_16x_32.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nClrTextSpecial</span> := CLR_WHITE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nClrHover</span> &nbsp; &nbsp; &nbsp; := Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nTopMargin</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nLeftMargin</span> &nbsp; &nbsp; := nWPanel + <span style="color: #000000;">22</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRightMargin</span> &nbsp; &nbsp;:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nLeft</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := :<span style="color: #000000;">nLeftMargin</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRight</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oWnd:<span style="color: #000000;">nWidth</span> - :<span style="color: #000000;">nRightMargin</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nHeight</span> &nbsp; &nbsp; &nbsp; &nbsp; := :<span style="color: #000000;">nTitleHeight</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">For</span> nItem := nPanel + <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> Len<span style="color: #000000;">&#40;</span> :<span style="color: #000000;">aPanels</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">aPanels</span><span style="color: #000000;">&#91;</span> nItem <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span> -= <span style="color: #000000;">&#40;</span> :<span style="color: #000000;">aPanels</span><span style="color: #000000;">&#91;</span> nPanel <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nBodyHeight</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Next</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Next</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CheckScroll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END WITH<br /><br />&nbsp; &nbsp;WITH OBJECT <span style="color: #000000;">&#40;</span> oPnel2 := TPanel<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;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, nWPanel, oExplBar <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, METRO_OLIVE <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetBrush</span><span style="color: #000000;">&#40;</span> oBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp;:nAlign &nbsp;:= 3 &nbsp;// No funciona</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nHeight</span> := oWnd:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// ESTO AGREGUE YO marcelo Roggeri</span><br />&nbsp; &nbsp; &nbsp; WndHeight<span style="color: #000000;">&#40;</span> :<span style="color: #000000;">hWnd</span>, :<span style="color: #000000;">nHeight</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bPainted</span> &nbsp; := <span style="color: #000000;">&#123;</span> | o | HazSayPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">&#123;</span> | o | lHide := !lHide, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oVSplitL:<span style="color: #000000;">SetPosition</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !lHide, nWPanel + <span style="color: #000000;">1</span>, nPosVSp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eval<span style="color: #000000;">&#40;</span> oVSplitL:<span style="color: #000000;">bChange</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oVSplitL:<span style="color: #0000ff;">Adjust</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWndCalend:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;END WITH<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<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;">Function</span> HazMdi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBrush<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aGrad &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, CLR_WHITE, METRO_OLIVE <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, METRO_OLIVE, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush GRADIENT aGrad<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWndCalend <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">STYLE</span> WS_POPUP ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, oVSplitL:<span style="color: #000000;">nRight</span> <span style="color: #0000ff;">TO</span> oWnd:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">26</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">4</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, CLR_HGRAY <span style="color: #0000ff;">MENU</span> MyMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//BRUSH oBrush</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWndCalend ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> HazBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> RESIZE <span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">SetMenu</span><span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">oMenu</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//, ;</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;">Function</span> HazBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBarMdi <span style="color: #0000ff;">OF</span> oWndCalend <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>, <span style="color: #000000;">64</span> <span style="color: #000000;">2015</span> NOBORDER &nbsp;HEIGHT <span style="color: #000000;">88</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBarMdi <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Create"</span> ;<br />&nbsp; &nbsp; &nbsp; FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\C</span>PPHubApplication_32x_24.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> WindowChild<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; GROUP LABEL <span style="color: #ff0000;">"Child"</span> COLORS CLR_WHITE, METRO_OLIVE<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBarMdi ;<br />&nbsp; &nbsp; &nbsp; FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\U</span>ninstall_32x_24.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; GROUP LABEL <span style="color: #ff0000;">"Others Actions"</span> COLORS CLR_WHITE, METRO_OLIVE<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBarMdi ;<br />&nbsp; &nbsp; &nbsp; FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\U</span>MLModelFile_32x_24.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBarMdi ;<br />&nbsp; &nbsp; &nbsp; FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\T</span>estSuiteStatic_32x_24.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">oWndActive</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBarMdi ;<br />&nbsp; &nbsp; &nbsp; FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\S</span>ourceControlSites_32x_24.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">aWnd</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBarMdi <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span> ;<br />&nbsp; &nbsp; &nbsp; FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\M</span>appedTracepointDisable_32x_24.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oWnd:<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; &nbsp; GROUP LABEL <span style="color: #ff0000;">"Salir"</span> COLORS CLR_WHITE, METRO_OLIVE<br /><br /><span style="color: #00C800;">Return</span> oBarMdi<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> MyMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">FONT</span> oFont <span style="color: #000000;">2015</span> ;<br />&nbsp; &nbsp; &nbsp; COLORMENU CLR_WHITE, CLR_BROWN<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Option &1"</span> FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\P</span>reviousBookmarkFolder_16x_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 11"</span> FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\S</span>QLLibrary_16x_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 12"</span> FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\S</span>licersHorizontal_16x_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 13"</span> FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\S</span>licersVertical_16x_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Option &2"</span> &nbsp;FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\P</span>honeNumberViewer_16x_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 21"</span> FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\R</span>unTests_8790_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 22"</span> FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\R</span>esultstoText_9948_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 23"</span> FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\R</span>eformatSelection_16x_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Item 24"</span> FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\P</span>YWeb_16x_32.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MENUITEM "&Exit" &nbsp; &nbsp; ACTION oWnd:End()</span><br />&nbsp; &nbsp; &nbsp; oMenu:<span style="color: #000000;">AddMdi</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\F</span>olderBrowserDialogControl_678_32.bmp"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oMenu:<span style="color: #000000;">AddHelp</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test Fivewin MDI Enviroment"</span>, <span style="color: #ff0000;">"Cristobal Navarro - 2017"</span>, , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"D:<span style="color: #000000;">\F</span>wh<span style="color: #000000;">\F</span>whTeam<span style="color: #000000;">\B</span>mpsVS_32<span style="color: #000000;">\H</span>elpApplication_16x_32.bmp"</span>, , .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">Return</span> oMenu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> WindowChild<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWndChild<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oFolder, oSay, oSay1<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> x<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nPosR &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nPosC &nbsp;:= <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> oWndCalend:<span style="color: #000000;">oWndClient</span>:<span style="color: #000000;">aWnd</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nRow + nHChild <span style="color: #000000;">&#41;</span> > oWndCalend:<span style="color: #000000;">nHeight</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRow &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nCol + Int<span style="color: #000000;">&#40;</span> nWChild / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > oWndCalend:<span style="color: #000000;">nWidth</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCol := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCol += Int<span style="color: #000000;">&#40;</span> nWChild / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRow &nbsp;+= Int<span style="color: #000000;">&#40;</span> nHChild / <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWndChild <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> oWndCalend ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FROM</span> nRow + <span style="color: #000000;">1</span> , nCol <span style="color: #0000ff;">TO</span> nHChild, nWChild <span style="color: #0000ff;">PIXEL</span> <span style="color: #B900B9;">//NOSYSMENU //BRUSH oWndCalend:oBrush &nbsp;// NOCAPTION</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//@ 0, 0 FOLDER oFolder OF oWndChild</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oWndChild:oClient := oFolder</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWndChild ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oWndChild:<span style="color: #000000;">cToolTip</span> := oWndChild:<span style="color: #000000;">cCaption</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">MOVE</span> <span style="color: #000000;">&#40;</span> oWndChild:<span style="color: #000000;">CoorsUpdate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oWndChild:<span style="color: #000000;">nLeft</span> < <span style="color: #000000;">1</span>, oWndChild:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> oWndChild:<span style="color: #000000;">nTop</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oWndChild:<span style="color: #000000;">nTop</span> &nbsp;< <span style="color: #000000;">2</span>, oWndChild:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWndChild:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> oWndChild<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> HazSayPnel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPnel2:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> Int<span style="color: #000000;">&#40;</span> oPnel2:<span style="color: #000000;">nHeight</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - Int<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cTitPnel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTitPnel, CLR_WHITE, , oFont2, .T., .T. <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 />&nbsp;</div>[/code:2begywum]
Como hacer esta tela(screen) en FWH cual classe?
Joao, cambia este valor [code=fw:27b90gny]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Static</span> nPosVSp &nbsp; &nbsp; := <span style="color: #000000;">360</span> * <span style="color: #000000;">0.75</span><br />&nbsp;</div>[/code:27b90gny] A ver si se ajusta Qué versión de Fw utilizas? Si esto no te funciona [code=fw:27b90gny]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//:nAdjust &nbsp;:= 3</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Prueba asi</span><br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nAdjust</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:27b90gny] Lo de las imágenes lo he contestado en otro topic Un abrazo
Como hacer esto
Hola amigos del foro La funcion que incluyo la utilizo para imprimir una lista de transacciones contables comprendidas entre una fecha de inicio y una final. Pero antes de iniciar la impresion quiero que en la primera linea del informe me aparezca el saldo de la cuenta hasta la fecha de inicio... Todo funciona bien siempre que en el periodo comprendido entre las fechas existan transacciones, en caso contrario, el programa me presenta el saldo hasta la fecha de inicio pero al no tener transacciones para imprimir, las lineas finales del informe salen escritas sobre el valor que intento presentar... He intentado utilizar oReport:NewLine() para que haya una separacion entre la cifra y las lineas pero no sucede nada... La pregunta es como puede hacer para insertar una linea en blanco entre la linea del HEADER y las lineas de totales... Espero haberme hecho entender. Gracias por sus sugerencias FUNC REPCTA(dF1,dF2) LOCAL R:=TRANSAC->(RECNO()),nSAL:=0 SELE TRANSAC DBGOTOP() DO WHILE !EOF() IF FIELD->FECHA<dF1 nSAL+=FIELD->DEBITO-FIELD->CREDITO ENDIF SKIP ENDDO DBGOTOP() REPORT oReport TITLE aConfig[5],'Listado de cuenta contable #'+ALLTRIM(CODIFIC->COD_CUENT)+' '+ALLTRIM(CODIFIC->NOM_CUENT),'Desde :'+DTOC(dF1)+' Hasta: '+DTOC(dF2) PREVIEW FONT oFont8,oFont10,oFont12,oFont14 PEN oPen1 HEADER "Pagina No. "+STR(oReport:nPage,3) RIGHT CAPTION 'Cuenta contable' FOOTER WHO() COLUMN TITLE "#DOCUMENTO" DATA FIELD->NUMDOCU FONT 1 COLUMN TITLE "FECHA" DATA FIELD->FECHA FONT 1 CENTER COLUMN TITLE "DEBITOS" DATA FIELD->DEBITO FONT 1 TOTAL PICTURE "99999,999.99" COLUMN TITLE "CREDITOS" DATA FIELD->CREDITO FONT 1 TOTAL PICTURE "99999,999.99" COLUMN TITLE "SALDO" DATA FIELD->SALDO FONT 1 PICTURE "99999,999.99" COLUMN TITLE "COMENTARIO" DATA MEMOLINE(FIELD->COMENTARIO,50,1) FONT 1 GROUP ON .T. HEADER "Saldo inicial al "+DTOC(dF1) IF(lCUADRIC,oReport:CellView(),) END REPORT oReport:lPageTotal:=.F. ACTIVATE REPORT oReport FOR FIELD->FECHA>=dF1 .AND. FIELD->FECHA<=dF2 ON INIT (oReport:Say(5,TRANSFORM(nSal,'99999,999.99'),2,2)) TRANSAC->(DBGOTO(R)) RETU[]
Como hacer esto
Intenta asi [code=fw:1n3b039f]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">Activate</span> Report oRep <span style="color: #00C800;">WHILE</span> ... ;<br />                <span style="color: #0000ff;">ON</span> STARTGROUP <span style="color: #000000;">&#40;</span>oRep:<span style="color: #000000;">NewLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />                               oRep:<span style="color: #000000;">EndLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />                               oRep:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #ff0000;">"Cliente: "</span>+cCliente,<span style="color: #000000;">2</span>,,oRep:<span style="color: #000000;">nRow</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:1n3b039f] Saludos
Como hacer esto
Amigo, El truco está en incluir la instrucción oReport:EndLine(). Probablemente deba estar después del SAY en GROUP. Prueba varios escenarios. Suerte,
Como hacer esto
Gracias voy a probar...
Como hacer esto
En efecto, funciono con EndLine() despues del SAY y por medio del ON INIT Gracias de nuevo
Como hacer esto usando BUTTONBAR?
//-> Checa o Botao na Buttobar [code=fw:3k6zidwi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#Define</span> CLR_LGREEN &nbsp; &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">190</span>, <span style="color: #000000;">215</span>, <span style="color: #000000;">190</span> <span style="color: #000000;">&#41;</span><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 />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBotao := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>, aGet := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, cName := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span>, cName2 := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET _3DLOOK <span style="color: #0000ff;">ON</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">17</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Controle da Barra de Botoes"</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</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> cName <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">2</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> &nbsp;cName2 <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span><span style="color: #000000;">&#40;</span> CHECA_CAIXA<span style="color: #000000;">&#40;</span> aGet, oBotao, oDlg <span style="color: #000000;">&#41;</span>, XFOCUS<span style="color: #000000;">&#40;</span> oBotao<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: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Botoes2<span style="color: #000000;">&#40;</span> aGet, oBotao, oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Release</span> All<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//-> CHECA O CAIXA</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CHECA_CAIXA<span style="color: #000000;">&#40;</span> aGet, oBotao, oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTexto := <span style="color: #000000;">&#91;</span>TESTE DE XFOCUS NO <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//-> No funciona - Como se haces</span><br />&nbsp; &nbsp;XFOCUS<span style="color: #000000;">&#40;</span> oBotao<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> ÿ<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//-> Foco en el tercero boton //-> Salida</span><br /><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Botoes2<span style="color: #000000;">&#40;</span> aGet, oBotao, oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTab, oHand, oBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">34</span>,<span style="color: #000000;">34</span> 3D <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//-> NO FUNCIONA CON EL COMANDO PROMPT ???</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBotao<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Anadir "</span> &nbsp;<span style="color: #0000ff;">OF</span> oBar &nbsp;GROUP ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> FWVERSION <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Any BMP File here..."</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBotao<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Alterar "</span> &nbsp;<span style="color: #0000ff;">OF</span> oBar &nbsp;GROUP ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> FWVERSION <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Reading it from disk !!!"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBotao<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Salida "</span> &nbsp;<span style="color: #0000ff;">OF</span> oBar &nbsp;GROUP ;<br />&nbsp; &nbsp; &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><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Saida - Exit - Cancelar "</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">TO</span> FWVERSION + <span style="color: #ff0000;">" "</span> + FWCOPYRIGHT<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Tratamentos Para a Barra de Botäes</span><br />&nbsp; &nbsp;oBar:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// Mouse Direito</span><br />&nbsp; &nbsp;oBar:<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// Mouse Esquerdo</span><br />&nbsp; &nbsp;oBar:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_LIGHTGRAY, CLR_LGREEN <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBar:<span style="color: #0000ff;">Adjust</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 /><span style="color: #B900B9;">// As vezes simples SetFocus( oObj ) nao faz um objeto ganhar foco</span><br /><span style="color: #B900B9;">// neste caso pode apelar para estas duas funcoes a seguir</span><br /><span style="color: #B900B9;">// For‡ar foco para um objeto especifico - Ednaldo Rolim...</span><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> xSetFocus<span style="color: #000000;">&#40;</span> oObj <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> _oWnd := oObj:<span style="color: #000000;">oWnd</span>, _oTempo := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Timer</span> _oTempo <span style="color: #0000ff;">Interval</span> <span style="color: #000000;">10</span> <span style="color: #0000ff;">of</span> _oWnd ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Action</span> <span style="color: #000000;">&#40;</span> oObj:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, _oTempo:<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;">ACTIVATE</span> <span style="color: #0000ff;">Timer</span> _oTempo<br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> xFocus<span style="color: #000000;">&#40;</span> oObj <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; xSetFocus<span style="color: #000000;">&#40;</span> oObj <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; xSetFocus<span style="color: #000000;">&#40;</span> oObj <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3k6zidwi] Gracias de antemano. Saludos.
Como hacer lib
Hola, Tengo las lib rddads y ace32 para Borland, quisiera probar VSComunnity, como hago las libs. Gracias. Saludos Ruben Fernandez
Como hacer lib
[url:dkzl2amr]https&#58;//github&#46;com/FiveTechSoft/Harbour_builder/blob/master/harbour_win32_msvc_2020_10_19&#46;zip[/url:dkzl2amr]
Como hacer lib
Antonio Feliz Navidad... Creo que ese no es el link <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Como hacer lib
Feliz Navidad Manu, arreglado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Como hacer lib
[img:133w4wtn]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/ruben1&#46;JPG?raw=true[/img:133w4wtn]
Como hacer lib
[url:wc4608iw]https&#58;//github&#46;com/FiveTechSoft/Harbour_builder/blob/master/harbour_win64_ads_msvc_2020_12_25&#46;zip[/url:wc4608iw]
Como hacer lib
Muy amable Antonio, muchas gracias Saludos Ruben Fernandez Enviado desde mi Redmi Note 8 Pro mediante Tapatalk
Como hacer para que la ventana se abra sobre otra?
Hola. Cuando se activa la ventana principal activo también una segunda ventana (definida en la función primera()) pero esta ventana que se abre queda detrás de la primera y necesito que se abra sobre ella. [code=fw:bgvp2afi]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivemac.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> oWnd<br />  <br />  <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> ownd <br /> <br />  <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">&#40;</span>primera<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <br /><span style="color: #00C800;">function</span> primera<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> oWnd <br />  <span style="color: #00C800;">local</span> oSays <br />  <span style="color: #00C800;">local</span> obtns <br /><br />  <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"hola"</span><br />    <span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">say</span> osays <span style="color: #0000ff;">id</span> <span style="color: #000000;">19</span> <span style="color: #0000ff;">of</span> oWnd<br />    <span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">button</span> obtns <span style="color: #0000ff;">id</span> <span style="color: #000000;">10</span> <span style="color: #0000ff;">of</span> oWnd<br /><br />    obtns:<span style="color: #000000;">baction</span>:= <span style="color: #000000;">&#123;</span>|| <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"asd"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />  <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span></div>[/code:bgvp2afi]
Como hacer para que la ventana se abra sobre otra?
Can I have the resource file too? Otherwise I cannot test your sample.
Como hacer para que la ventana se abra sobre otra?
Dear Enrico, It is for FiveMac, not FiveWin <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Como hacer para que la ventana se abra sobre otra?
Ops, sorry! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Como hacer para que la ventana se abra sobre otra?
Gustavo, La intención es mostrar una ventana de login encima de una ventana principal ? En tal caso, además se mostrarse por encima, debería ser modal para que se no se pueda acceder a la principal
Como hacer para que la ventana se abra sobre otra?
[quote="Antonio Linares":2qhofp60]Gustavo, La intención es mostrar una ventana de login encima de una ventana principal ? En tal caso, además se mostrarse por encima, debería ser modal para que se no se pueda acceder a la principal[/quote:2qhofp60] asi es.
Como hacer que en tsbrowse me salga el texto de 2 colores
amigos mi problema es que tengo un browse (tsbrowse), con celdas de fondo amarillo y letras azules, pero mi intencion es que segun una condicion los mayores a cero, salgan Azul/Amarillo y de lo contrario Rojo/Amarillo, lo he intentado, y es mas me han ayudado (A.A.), y no lo consigo, que estoy haciendo mal... oLbx1:SetColor( {1, 2}, {|| If( Tot_Fac > 0, {C_FONDO,C_TEXTA},{C_FONDO,C_TEXTR})},) c_fondo=amarillo c_texta=azul c_textr=rojo es mas ni funciona ahora
Como hacer que en tsbrowse me salga el texto de 2 colores
Luis, Pruébalo así: oLbx1:SetColor( {|| If( Tot_Fac > 0, {C_FONDO,C_TEXTA},{C_FONDO,C_TEXTR})} )
Como hacer que en tsbrowse me salga el texto de 2 colores
Application =========== Path and name: C:\SIST02\GESTION.dwd Size: 0 bytes Max files handles permited: ( SetHandleCount() ) 100 Error ocurred at: 03/04/2006, 18:12:23 Error description: Error BASE/1068 Argument error: array access Args: [ 1] = U Stack Calls =========== Called from LOCKERRHAN(0) Called from (b)INITHANDL$(0) Called from TSBROWSE:SETCOLOR(6857) Called from VIS_258(1812) Called from (b)PRG258(1526) Called from TBUTTON:CLICK(148) Called from TBUTTON:HANDLEEVEN(0) Called from SENDMESSAG(0) Called from TDIALOG:COMMAND(0) Called from TDIALOG:HANDLEEVEN(0) Called from DIALOGBOX(0) Called from TDIALOG:ACTIVATE(0) Called from PRG258(1531) Called from (b)BUILDMENU(352) Called from TMENU:COMMAND(0) Called from TMDIFRAME:COMMAND(0) Called from TMDIFRAME:COMMAND(0) Called from TMDIFRAME:HANDLEEVEN(0) Called from WINRUN(0) Called from TMDIFRAME:ACTIVATE(0) Called from MAIN(106)
Como hacer que en tsbrowse me salga el texto de 2 colores
Me parecio o tenias una coma de mas al final. Proba con algo similar a lo de abajo. Espero te sirva. // Defino el color del registro según el estado. oBrwTurnos:SetColor( { 1}, { { | | if( turnos->status="A",rgb(0,128,64), if( turnos->status="D", rgb(85,85,85), if(turnos->status="C",rgb(200,0,0),rgb(0,0,0)) ) ) } } ) Salu2. Que version de tsbrowse usas?
Como hacer que en tsbrowse me salga el texto de 2 colores
el problema quedo resuelto, gracias... respuesta: oLbx1:SetColor( { 1}, {{ || if( tot_fac>0,rgb(0,0,255),if(tot_fac<0,rgb(255,0,0),rgb(0,0,0)))}})
Como hacer tu pregunta?
muchas veces nos vemos en la dificultad de responder una consulta o solucion de un error por la falta de informacion o descripcion del mismo debido a eso escribo este post, pienso que la mejor manera que una consulta sea entendible y aportar una solucion esta deberia tener las siguientes caracteristicas: 1- ser explicado de forma detallada la consulta o el error 2. en caso de ser un error, proporcionar un ejemplo que pueda reproducir el mimso 2.1. si es posible un link de descarga 2.2. si es necesario proporcionar una imagen 2.3. informacion del logfile (error.log) 3. sistema operativo 4. version de fivewin y [x]Harbour 5. usar los correctamente los TAG "code", "img" "URL" ubicados en la parte superior al moento de escribir los post si me falta algo por favor que alguien adicione a lo expuesto aqui
Como hacer tu pregunta?
Hola Daniel... Muy buena propuesta. Creo que se podría agregar el tema de insertar código fuente dentro de las sentencias correspondientes al caso. (Ya que en muchos casos no lo usan) [code=fw:1u9tg0bz]<div class="fw" id="{CB}" style="font-family: monospace;"> El código fuente</div>[/code:1u9tg0bz] Ya que de esta forma es más facil de leer el post y se diferencia muy rápidamente que es código y que es parte de la pregunta o cunsulta. Saludos desde Argentina, Esteban.
Como hacer tu pregunta?
Hola Daniel Ya tome nota <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> GRACIAS!!!!! Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Como hacer tu pregunta?
Daniel, A manera de comentario al respecto : Me parece una estupenda idea la que propones, ya que al ser muchos los que usamos FWH y todos tenemos diferentes versiones de todo, llamese : FWH 7.X, 8.X, 9.X, 10.X Harbour X.Y xHarbour X.Y etc etc Creo que en este punto hay 2 opciones : - Que sea obligatorio que incluyeramos esa info en nuestro perfil ( sin que suene muy agresivo ) - O que al menos, que la pongamos en nuestro espacio de firma ( hay foros de hardware, donde tenemos que detallar a conciencia cada componente de la PC ) Saludos
Como hacer tu pregunta?
Creo que tambien deben proporcionar su nombre, para que la comunicacion sea mas amigable. Saludos, Adhemar
Como hacer tu pregunta?
Amigos: Algo que siempre he deseado..... Que cierren el ciclo mencionando cual respuesta le funcionó al 100%, no basta editar el mensaje para agregar la palabra "SOLUCIONADO". Seguiré pidiendoselo a Santa. Saludos
Como hacer tu pregunta?
Me permito sugerir que sean lo mas claro y conciso posible en el titulo del mensaje. Por ejemplo en vez de escribir en el titulo "Necesito ayuda por favor ", debiera mencionar lo relacionado con el problema. Saludos George
Como hacer tu pregunta?
ha hijos ya me la pusieron complicado , yo no se explicar.
Como hacer tu pregunta?
Saludos Quiero hacer incapie nuevamente en este punto, la verdad es muy importante para lograr un mejor soporte, en lo personal, trato primero de buscar soluciones a los problemas cuyos post que cumplan con un minimo de estas solicitudes se pierde tiempo tratando de elaborar un ejemplo para reproducir un error, que no sabemos si logremos conseguir reproducirlo, pues el error puede ser de logica o comandos faltantes, etc...
Como hacer tu pregunta?
Hola Lo ideal que este mensaje quedara al principio del foro como lo estan * Bienvenidos a los foros de FiveTech Software * SQL... asi seria mas facil hecharle un vistazo
Como hacer tu pregunta?
Hola Daniel [quote="Daniel Garcia-Gil":d60bthb0] Quiero hacer incapie nuevamente en este punto, la verdad es muy importante para lograr un mejor soporte, en lo personal, trato primero de buscar soluciones a los problemas cuyos post que cumplan con un minimo de estas solicitudes se pierde tiempo tratando de elaborar un ejemplo para reproducir un error, que no sabemos si logremos conseguir reproducirlo, pues el error puede ser de logica o comandos faltantes, etc...[/quote:d60bthb0] Hace ya bastante planteé un problema, creo yo que cumple con los requisitos de precisión y detalle. Está probado que no es de lógica, y que con versiones anteriores funciona correctamente. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19428">viewtopic.php?f=6&t=19428</a><!-- l --> Aún cuando está explicado no he tenido suerte con la respuesta. Y queda claro que no es un problema de mi código, porque hay gente que tiene el mismo inconveniente. Ni siquiera sé si ya esta corregido en versiones más nuevas. ¿Me podrías echar una mano? Un saludo
Como hacer tu pregunta?
Carlos [quote="Carlos Mora":335vvq16]Hola Daniel Aún cuando está explicado no he tenido suerte con la respuesta. Y queda claro que no es un problema de mi código, porque hay gente que tiene el mismo inconveniente. Ni siquiera sé si ya esta corregido en versiones más nuevas. ¿Me podrías echar una mano? Un saludo[/quote:335vvq16] Disculpa no haber atendido este tema, pero realmente no utilizo con frecuencia mapi, pero es muy facil buscar soluciones si tenemos como ver los problemas, para muestra un boton, [b:335vvq16]el problema esta solventado[/b:335vvq16], respondido en el link inicial [url:335vvq16]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=107611#p107611[/url:335vvq16]
Como hacer tu pregunta?
Hola Daniel, Muchísimas gracias. Estoy al 110% de acuerdo en que es infinitamente más fácil, y mucho más motivante, cuando una pregunta está correctamente formulada, cuando un problema se expone con un ejemplo, y cuando se presenta con el título correcto para que todos aquellos que pudieran encontrarse con el mismo inconveniente puedan hallar antes la solución. Yo solo añadiría a la lista que además se incluya no solo un ejemplo de lproblema, sino tambien que otras cosas se han probado. Saber que quien tiene un problema ha hecho un esfuerzo en resolverlo estimula las ganas de echar una mano. Reitero mis agradecimientos, el problema me tenía parado. Lo pruebo a la brevedad y te comento si surge algo.
Como hacer tu pregunta?
Comparto la propuesta. Como así también lo aportado por ACuellar y Patricio
Como hacer tu pregunta?
Saludos nuevamente por este post no abandonaré mi lucha por ayudar. insistiré en este post las veces que sea necesario... en lo particular dejo de ultimas las consultas al foro que ignoren estas sugerencias
Como hacer tu pregunta?
Se me hace excelente sugerencia y apoyo a que se coloque al inicio del foro como un Cheklist para quienes hacemos preguntas. Lo de poner un ejemplo sencillo incluso nos ayuda muchas veces a resolver el problema nosotros mismos pues a veces "por ver el bosque no ponemos atencion en el arbol" Por cierto, como subo imagenes? Existe algun lugar a donde se puedan subir y asi poner la referencia? Salu2
Como hacer tu pregunta?
Rodolfo: Una alternativa es <!-- m --><a class="postlink" href="http://imageshack.us/">http://imageshack.us/</a><!-- m --> Despues de subir la imágen te da varios links que puedes poner aquí en el foro para poder ver/descargar la imágen. Saludos
Como hacer tu pregunta?
Tomemos nuevamente este tema en el tapete <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> en el foro en ingles aparece siempre como primer post... aqui se nos escapo [b:28jevnc3]How to do my question?[/b:28jevnc3] º[url:28jevnc3]http&#58;//forums&#46;fivetechsupport&#46;com/viewforum&#46;php?f=3[/url:28jevnc3]
Como hacer un diagrama Gant
Buenas noches amigos He tratado de ver la forma de crear un diagrama Gant, (ese diagrama para control y seguimiento de actividades), alguien podria darme una idea como crear esta aplicacion, esto se basa en un conjunto de actividades para lograr un proyecto. una idea muy gruesa seria algo asi... ------------------dias ---------------------- actividad 1 ... xxxxxxxxx actividad 2 ... ----------xxxxxxxxx actividad 3 ... -------------------xxxxxxxx actividad 4 ... -----xxxxxxxxxxxxxxxxxxxx actividad 5 ... ------------xxxxxxxxxxxxxxxxxxxxxxxx Las actividades estan en una base de datos: 1: cada actividad es un registro que contiene su descripcion, que fecha inicia y que fecha termina la actividad (que es lo que grafica con las "x") 2: al final se obtiene el total de dias que demoran todas las actividades. Les agradecere cualquier ayuda, Lubin
Como hacer un diagrama Gant
use tgatt
Como hacer un diagrama Gant
Lubin, puedes bajar las fuentes de: [url:1b8xapyw]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=15122&p=78270&hilit=tgantt#p78458[/url:1b8xapyw] No se si ya fueron trasladadas a 32 bits..
Como hacer un diagrama Gant
Gracias MdaSolution y Bayron Le dare una mirada, la pregunta es como saber si esta operativo para 32bit, o en todo que debo de hacer para pasarla a 32 Bits ?? Lubin
Como hacer un ping a una maquina...
Hola a todos... Necesito hacer un ping a una direccion para ver si puedo conectar con ella.Alguien sabe alguna forma sencilla de comprobar si una maquina está activa?? Un saludo y gracias.. Elías Torres...
Como hacer un ping a una maquina...
Hola a todos... He encontrado un codigo que se supone hace un ping a una direccion que le pongamos y nos dice si tiene conexion o no... El codigo es el siguiente: ********************************************************************* PING.PRG * * * PING.PRG 01-10-2002 * * * * Hecho por JOSE MARIA GARCIA MARTINEZ * * * * Lenguaje de programación CLIPPER 5.3 * * Librería Windows FIVEWIN 2.3a * * Librería de proposito general FUNCKY-II * * Linkador Windows/DOS BLINKER 5.0 * * Herramientas de apoyo BORLAND WORK-SHOP 4.0 * * Compilador de recursos RESOURCE COMPILER MS 7.0 * * * ****************************************************************************** ********************************************************************* INCLUDES #include"FiveWin.ch" *********************************************************************** Main() function main() local IcmpHandle,Replicas local DestinationAddress:="direccionip",; RequestData:="Esto es un ping",; RequestSize:=15,; RequestOptions:="",; ReplyBuffer:=space(278),; ReplySize:=278,; Timeout:=2000 && Milisegundos de espera DestinationAddress:=left(alltrim(DestinationAddress)+space(15),15) MsgGet("Ping...","Introduzca dirección IP",@DestinationAddress) *--- IcmpHandle:=IcmpCreateFile() Replicas:=IcmpSendEcho(IcmpHandle,; inet_addr(DestinationAddress),; RequestData,; RequestSize,0,; ReplyBuffer,; ReplySize,; Timeout) msginfo(Replicas) IcmpCloseHandle(IcmpHandle) *--- if Replicas>0 msginfo("La máquina "+alltrim(DestinationAddress)+" EXISTE") else msginfo("La máquina "+alltrim(DestinationAddress)+" NO existe") endif return nil ************************************************** LLAMADAS A DLL's DE WINDOWS DLL32 FUNCTION inet_addr(cIP AS STRING) AS LONG PASCAL FROM "inet_addr" LIB "wsock32.dll" DLL32 FUNCTION IcmpCreateFile() AS LONG PASCAL FROM "IcmpCreateFile" LIB "icmp.dll" DLL32 FUNCTION IcmpCloseHandle(IcmpHandle AS LONG) AS LONG PASCAL FROM "IcmpCloseHandle" LIB "icmp.dll" DLL32 FUNCTION IcmpSendEcho(IcmpHandle AS LONG,; DestinationAddress AS LONG,; RequestData AS STRING,; RequestSize AS LONG,; RequestOptions AS LONG,; ReplyBuffer AS LPSTR,; ReplySize AS LONG,; Timeout AS LONG) AS LONG PASCAL FROM "IcmpSendEcho" LIB "icmp.dll" DLL32 FUNCTION WSAGetLastError() AS _INT PASCAL FROM "WSAGetLastError" LIB "wsock32.dll" ****************************************************************************** /* Compilar con Clipper 5.3: clipper ping.prg /n/a/v/p Linkar con Blinker 5.0: blinker fi ping @COMPILA.LNK COMPILA.LNK: blinker incremental OFF fi \bases\blinker5\BLXCLP53 DEFBEGIN name FIVEEXE description 'FiveWin Windows executable to call a DLL function' exetype Windows 3.1 Stacksize 8500 Heapsize 8500 code preload moveable discardable data preload moveable segment 'PLANKTON_TEXT' nondiscardable segment 'EXTEND_TEXT' nondiscardable segment 'OM_TEXT' nondiscardable segment 'OSMEM_TEXT' nondiscardable segment 'SORTOF_TEXT' nondiscardable segment 'STACK_TEXT' nondiscardable DEFEND lib Five,FiveC,Objects,WinApi lib Clipper,Llibca51 lib Fivestub lib Extend,DbfNtx,DbfCdx,Terminal */ El problema es que al ejecutarlo me da error en las dos dll que usa. Entonces mi pregunta es la siguiente hay que registrar las dll esas??. Si es así como lo hago?? Un saludo y gracias.. Elías Torres
Como hacer un ping a una maquina...
Elías, Parece que "icmp.dll" no está en Windows Mobile pero sí esta "icmplib.lib". Habria que probar cambiando el nombre. Igualmente usar "ws2.lib" (ó "winsock.lib" ) en vez de "wsock32.dll"
Como hacer un ping a una maquina...
Hola Antonio. He cambiado el nombre (entiendo que en la aplicacion) por esos dos, pero me sigue dando el mismo error: "Error code: 0 loading icmplib.lib" "Error code: 0 loading sw2.lib" Seguiré buscando.... Saludos.. Elías Torres.
Como hacer un ping a una maquina...
Elías, Este código construye bien y funciona y puede servirte para continuar implementando lo que quieres: [code:17qupiaq] function Main&#40;&#41; MsgInfo&#40; IcmpCreateFile&#40;&#41; &#41; return nil #pragma BEGINDUMP #include <windows&#46;h> #include <icmpapi&#46;h> #include <hbapi&#46;h> HB_FUNC&#40; ICMPCREATEFILE &#41; &#123; hb_retnl&#40; &#40; LONG &#41; IcmpCreateFile&#40;&#41; &#41;; &#125; #pragma ENDDUMP [/code:17qupiaq] Tienes que enlazar tambien (en buildce.bat ó en tu propio bat/make): echo %vcdir%\lib\arm\icmplib.lib >> msvc.tmp echo %vcdir%\lib\arm\winsock.lib >> msvc.tmp
Como hacer un ping a una maquina...
Gracias Antonio.. Pero tengo que decirte que no entiendo el codigo.. Eso que has puesto que es? ¿Es la definicion de la funcion IcmpCreateFile() ? Disculpa pero esto se me hace un poco grande, puesto que principalmente desconozco el tratamiento que hay que hacer a los datos en redes,direcciones ip,etc... Te agradeceria si me explicaras o me guiaras un poco en lo que tengo que hacer... Saludos y mil gracias. Elías Torres.
Como hacer un ping a una maquina...
Elías, Este es el código completo, sin embargo en el emulador de Pocket PC está devolviendo cero. A ver si a ti te funciona, Nos hemos guiado por este ejemplo: <!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/icmpsendecho.asp">http://msdn.microsoft.com/library/defau ... ndecho.asp</a><!-- m --> [code:30imfsit] function Main&#40;&#41; local hICMP &#58;= IcmpCreateFile&#40;&#41; local cData &#58;= "Esto es un ping" local cReply &#58;= Space&#40; ICMP_ECHO_REPLY&#40;&#41; + Len&#40; cData &#41; &#41; local nResult &#58;= IcmpSendEcho&#40; hICMP, inet_addr&#40; "192&#46;168&#46;0&#46;16" &#41;, cData,; Len&#40; cData &#41; + ICMP_ECHO_REPLY&#40;&#41;, 0,; cReply, Len&#40; cData &#41;, 1000 &#41; if nResult > 0 MsgInfo&#40; "hay conexión con esa máquina" &#41; else MsgInfo&#40; "no hay conexión" &#41; endif IcmpCloseHandle&#40; hIcmp &#41; return nil #pragma BEGINDUMP #include <windows&#46;h> #include <icmpapi&#46;h> #include <winsock&#46;h> #include <hbapi&#46;h> HB_FUNC&#40; ICMPCREATEFILE &#41; &#123; hb_retnl&#40; &#40; LONG &#41; IcmpCreateFile&#40;&#41; &#41;; &#125; HB_FUNC&#40; ICMPCLOSEHANDLE &#41; &#123; hb_retl&#40; IcmpCloseHandle&#40; &#40; HANDLE &#41; hb_parnl&#40; 1 &#41; &#41; &#41;; &#125; HB_FUNC&#40; ICMPSENDECHO &#41; &#123; hb_retnl&#40; IcmpSendEcho&#40; &#40; HANDLE &#41; hb_parnl&#40; 1 &#41;, &#40; IPAddr &#41; hb_parnl&#40; 2 &#41;, &#40; LPVOID &#41; hb_parc&#40; 3 &#41;, &#40; WORD &#41; hb_parnl&#40; 4 &#41;, &#40; PIP_OPTION_INFORMATION &#41; hb_parnl&#40; 5 &#41;, &#40; LPVOID &#41; hb_parc&#40; 6 &#41;, &#40; DWORD &#41; hb_parnl&#40; 7 &#41;, &#40; DWORD &#41; hb_parnl&#40; 8 &#41; &#41; &#41;; &#125; HB_FUNC&#40; INET_ADDR &#41; &#123; hb_retnl&#40; inet_addr&#40; hb_parc&#40; 1 &#41; &#41; &#41;; &#125; HB_FUNC&#40; ICMP_ECHO_REPLY &#41; &#123; hb_retnl&#40; sizeof&#40; ICMP_ECHO_REPLY &#41; &#41;; &#125; #pragma ENDDUMP [/code:30imfsit]
Como hacer un ping a una maquina...
Hola Antonio.. He probado el codigo (ante todo muchas gracias por tu tiempo) pero efectivamente a mi tambien me devuelve cero... He probado a aumentarle el tiempo de respuesta por si acaso fuese que intenta conectar y se la acaba el tiempo antes....pero nada Habrá que seguir probando. Saludos. Elías Torres.
Como hacer un ping a una maquina...
Hola Antonio... Por fin lo he solucionado. Te pongo el codigo para que le heches un vistazo y de paso por si le sirve a alguien.. function main() local IcmpHandle,Replicas local DestinationAddress:="192.168.0.31",; RequestData:="Esto es un ping",; RequestSize:=15,; RequestOptions:="",; ReplyBuffer:=space(278),; ReplySize:=278,; Timeout:=1000 && Milisegundos de espera *--- IcmpHandle:=IcmpCreateFile() Replicas:=IcmpSendEcho(IcmpHandle,; inet_addr(DestinationAddress),; RequestData,; RequestSize,0,; ReplyBuffer,; ReplySize,; Timeout) IcmpCloseHandle(IcmpHandle) *--- if Replicas>0 msginfo("La máquina "+alltrim(DestinationAddress)+" EXISTE") else msginfo("La máquina "+alltrim(DestinationAddress)+" NO existe") endif return nil #pragma BEGINDUMP #include <windows.h> #include <icmpapi.h> #include <winsock.h> #include <hbapi.h> HB_FUNC( ICMPCREATEFILE ) { hb_retnl( ( LONG ) IcmpCreateFile() ); } HB_FUNC( ICMPCLOSEHANDLE ) { hb_retl( IcmpCloseHandle( ( HANDLE ) hb_parnl( 1 ) ) ); } HB_FUNC( ICMPSENDECHO ) { hb_retnl( IcmpSendEcho( ( HANDLE ) hb_parnl( 1 ), ( IPAddr ) hb_parnl( 2 ), ( LPVOID ) hb_parc( 3 ), ( WORD ) hb_parnl( 4 ), ( PIP_OPTION_INFORMATION ) hb_parnl( 5 ), ( LPVOID ) hb_parc( 6 ), ( DWORD ) hb_parnl( 7 ), ( DWORD ) hb_parnl( 8 ) ) ); } HB_FUNC( INET_ADDR ) { hb_retnl( inet_addr( hb_parc( 1 ) ) ); } HB_FUNC( ICMP_ECHO_REPLY ) { hb_retnl( sizeof( ICMP_ECHO_REPLY ) ); } #pragma ENDDUMP Saludos y gracias por la ayuda... Elías Torres.
Como hacer un ping a una maquina...
Elías, Estupendo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Por lo visto era una cuestión de los parámetros a usar.
Como hacer un ping a una maquina...
[quote="Elias Torres":20pkoeuk]* Hecho por JOSE MARIA GARCIA MARTINEZ *[/quote:20pkoeuk]Ese soy yo... [img:20pkoeuk]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/saltarin&#46;gif[/img:20pkoeuk] [img:20pkoeuk]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/saltarin&#46;gif[/img:20pkoeuk] [img:20pkoeuk]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/saltarin&#46;gif[/img:20pkoeuk]Bueno como podeis ver, en mi código fuente del ping, suelo ser de usar mucho el "wrapeado" de funciones en DLL del tipo "DLL32 FUNCTION...". Me ha ayudado mucho.Pero ahora en FWPPC pregunto si la sintaxis es igual y cuales son las DLLs homónimas de las de FWH.Los de las DLLs lo pregunto ya que he leído aquí que la "socket.dll" es la "ws2.lib", la "icmp.dll" no está ahora es "icmplib.lib".¿ Entonces si linko las LIBs ya no tengo que hacer llamadas del tipo DLL32 FUNCTION ?
Como hacer una impresion al puerto serial ?
Hola amigos del foro Como puedo imprimir, utilizando la clase TDOSPRN directamente, al puerto serial. Aunque la clase contempla este puerto no funciona Es perfecta para redes o puertos paralelos Saludos, Erick
Como hacer una impresion al puerto serial ?
Es simple: [code=fw:clzark1z]<div class="fw" id="{CB}" style="font-family: monospace;">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> <span style="color: #000000;">03</span>, <span style="color: #ff0000;">"COM1"</span> <span style="color: #000000;">&#41;</span></div>[/code:clzark1z]
Como hacer una impresion al puerto serial ?
[quote="pablovidal":38lu4djy]Es simple: [code=fw:38lu4djy]<div class="fw" id="{CB}" style="font-family: monospace;">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> <span style="color: #000000;">03</span>, <span style="color: #ff0000;">"COM1"</span> <span style="color: #000000;">&#41;</span></div>[/code:38lu4djy][/quote:38lu4djy] Hola Pablo Esto no me funciono, al contrario me envio un error de string quizas tienes algo modificado en tu classe que no tengo METHOD New( cPort, lFile, lLaser, nLPP, bNewPage ) CLASS TDosPrn Local aPorts := { { "LPT1", 888 }, ; // 378h { "LPT2", 632 }, ; // 278h { "COM1", 1016 }, ; // 3f8h { "COM2", 760 } } // 2f8h Local nPos DEFAULT cPort := "LPT1" ,; lFile := .T. ,; // not used; kept here for compatibility lLaser := .F. ,; nLPP := 66 --------------------------------------> AQUI ME MARCO EL ERROR cPort := Upper( cPort ) If lLaser ::cCompress := ::Esc2Cmd( iL_COMPRESS ) ::cNormal := iL_NORMAL ::cReset := ::Esc2Cmd( iL_RESET ) Else ::cCompress := iM_COMPRESS ::cNormal := iM_NORMAL ::cReset := ::Esc2Cmd( iM_RESET ) Endif ::cFormFeed := iEJECT ::cBuffer := "" ::nLeftMargin := 0 ::nTopMargin := 0 ::nRow := 0 ::nCol := 0 ::lAnsiToOem := .T. ::cPort := cPort + If( ! "." $ cPort .and. ! "\\" $ cPort, ".PRN", "" ) // considers the port can be a network route (\\computername\sharename) ::hDC := -1 // FCreate( ::cPort ) moved down, after port checking is done ::LastError := 0 ::lFile := ! ( Left( cPort, 3 ) == "LPT" .or. Left( cPort, 3 ) == "COM" .or. Left( cPort, 3 ) == "PRN" ) ::nLPP := nLPP ::bNewPage := bNewPage ::nPage := 1 ::nLPTBase := 0 If ! ::lFile nPos := Max( 1, AScan( aPorts, {|aSub| aSub[1] == cPort } ) ) // LPT1 or PRN considered default ::nLPTBase := aPorts[nPos,2] ::PrinterStatus() Endif If ::lFile .or. ( ! ::lPrnBusy .and. ! ::lPaperOut ) /*; // reliable with matrix, not laser printers If( cPort == "LPT1", IsPrinter(), ! ::lPaperOut )*/ ::hDC := FCreate( ::cPort ) // 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 If ::hDC < 0 ::LastError := FError() Endif Else If ::lPrnBusy .and. ::lPaperOut .and. ! ::lPrnSelect ::LastError := 28 // "Printer out of paper" Elseif ::lPrnBusy .and. ! ::lPaperOut ::LastError := 29 // "Write fault" (Printer off line or not powered on) Else ::LastError := 6 // "Invalid handle" Endif Endif Return Self Saludos, Erick
Como hacer una impresion al puerto serial ?
[code=fw:13felcvb]<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: #00D7D7;">#define</span> CR Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_FF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"12"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_LASERJET_10CPI &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"27,40,115,49,48,72"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_LASERJET_12CPI &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"27,40,115,49,50,72"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_LASERJET_18CPI &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"27,40,115,49,56,72"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_INKJET_DOUBLE &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"27,33,32"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_INKJET_NORMAL &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"27,33,00"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_INKJET_COMPRESS &nbsp; &nbsp; <span style="color: #ff0000;">"27,33,04"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_MATRIX_DOUBLE &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"14"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_MATRIX_NORMAL &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"18"</span><br /><span style="color: #00D7D7;">#define</span> cPRNCMD_MATRIX_COMPRESS &nbsp; &nbsp; <span style="color: #ff0000;">"15"</span><br /><br /><br /><span style="color: #00C800;">CLASS</span> TDosPrn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> acDouble, acNormal, acCompress &nbsp; &nbsp;AS ARRAY<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> lAnsiToOem, lAutoFF, lEditFile &nbsp; &nbsp;AS LOGICAL<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> LastError, hDC, nPosFooter, nMAXCOL, nRow, nCol, nLeftMargin, nTopMargin, nPrintType, hEchoFile<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cPrintType, cPort, cEchoFile, cBuffer, cFormFeed, cDouble, cNormal, cCompress, cHeader, cFooter, cName, cDriver<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> lNoPrint <span style="color: #0000ff;">INIT</span> .F. <span style="color: #B900B9;">//.t. No Imprime - > .F. Imprime</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Data</span> lPrintWin <span style="color: #0000ff;">Init</span> .F. <span style="color: #B900B9;">// Pablo Vidal</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Data</span> cFileTemp <span style="color: #0000ff;">Init</span> <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nPrintType, cPort, cEchoFile <span style="color: #000000;">&#41;</span> &nbsp;CONSTRUCTOR<br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> StartPage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;VIRTUAL<br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">EndPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Command<span style="color: #000000;">&#40;</span> cStr1, cStr2, cStr3, cStr4, cStr5, cStr6, cStr7, cStr8, cStr9 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> SetCoors<span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> NewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cBuffer</span> += CRLF, &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nRow</span>++ &nbsp; &nbsp; &nbsp; &nbsp; , &nbsp; ; <span style="color: #B900B9;">//LF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nCol</span> := <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//CR</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Write<span style="color: #000000;">&#40;</span> cText, lAToO <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> lAtoO == <span style="color: #00C800;">NIL</span>, lAtoO := .T., <span style="color: #000000;">&#41;</span>, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">cBuffer</span> += &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lAtoO, AnsiToOem<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span>, cText <span style="color: #000000;">&#41;</span>, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol</span> &nbsp; &nbsp;+= &nbsp;Len<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> SayDbl<span style="color: #000000;">&#40;</span> nRow, nCol, cText, lAToO <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> &nbsp; &nbsp;<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> nRow, nCol, cText, lAToO <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> SayCmp<span style="color: #000000;">&#40;</span> nRow, nCol, cText, lAToO <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nPrintType, cPort, cEchoFile <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDosPrn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> l1, lOKType := .t.<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nPrintType</span> := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cPrintType</span> := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> &nbsp; &nbsp; ValType<span style="color: #000000;">&#40;</span> nPrintType <span style="color: #000000;">&#41;</span> != <span style="color: #ff0000;">"N"</span> <span style="color: #B900B9;">//si en primer parámetro es NIL o no es un nº</span><br />&nbsp; &nbsp; &nbsp; lOKType := .F.<br />&nbsp; &nbsp;ELSEIF nPrintType = <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nPrintType</span> := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cPrintType</span> := <span style="color: #ff0000;">"LASERJET"</span><br />&nbsp; &nbsp;ELSEIF nPrintType = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nPrintType</span> := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cPrintType</span> := <span style="color: #ff0000;">"INKJET"</span><br />&nbsp; &nbsp;ELSEIF nPrintType = <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nPrintType</span> := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cPrintType</span> := <span style="color: #ff0000;">"MATRIX"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; lOKType := .F.<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> .not. lOKType<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'El parámetro &nbsp;nPrintType &nbsp;ha de valer 1 ó 2 ó 3 .- &nbsp;"'</span> + CR + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'1.- Impresora láser'</span> + CR + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'2.- Impresora de chorro de tinta'</span> + CR + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'3.- Impresora matricial.'</span>, &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'TDosPrn():New( nPrintType, cPort, cEchoFile )'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span> <span style="color: #B900B9;">///</span><br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> cPort = <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cPort := <span style="color: #ff0000;">"LPT1"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; cPort := Upper<span style="color: #000000;">&#40;</span> cPort <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lNoPrint</span><br />&nbsp; &nbsp; cPort &nbsp; &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; cEchoFile := <span style="color: #ff0000;">"print.txt"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> de:<span style="color: #000000;">lPrintTipo</span><br />&nbsp; &nbsp; cPort &nbsp; &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; cEchoFile := StrZero<span style="color: #000000;">&#40;</span> nRandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">08</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">".prn"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nLeftMargin</span> := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nTopMargin</span> &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nRow</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nCol</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lAnsiToOem</span> &nbsp;:= .T.<br />&nbsp; &nbsp;::<span style="color: #000000;">lAutoFF</span> &nbsp; &nbsp; := .T.<br />&nbsp; &nbsp;::<span style="color: #000000;">cBuffer</span> &nbsp; &nbsp; := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cFormFeed</span> &nbsp;:= &nbsp; cPRNCMD_FF<br />&nbsp; &nbsp;::<span style="color: #000000;">acDouble</span> &nbsp; := <span style="color: #000000;">&#123;</span> cPRNCMD_LASERJET_10CPI, cPRNCMD_INKJET_DOUBLE &nbsp;, cPRNCMD_MATRIX_DOUBLE &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">acNormal</span> &nbsp; := <span style="color: #000000;">&#123;</span> cPRNCMD_LASERJET_12CPI, cPRNCMD_INKJET_NORMAL &nbsp;, cPRNCMD_MATRIX_NORMAL &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">acCompress</span> := <span style="color: #000000;">&#123;</span> cPRNCMD_LASERJET_18CPI, cPRNCMD_INKJET_COMPRESS, cPRNCMD_MATRIX_COMPRESS <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cDouble</span> &nbsp; &nbsp;:= ::<span style="color: #000000;">acDouble</span> &nbsp;<span style="color: #000000;">&#91;</span> nPrintType <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cNormal</span> &nbsp; &nbsp;:= ::<span style="color: #000000;">acNormal</span> &nbsp;<span style="color: #000000;">&#91;</span> nPrintType <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cCompress</span> &nbsp;:= ::<span style="color: #000000;">acCompress</span><span style="color: #000000;">&#91;</span> nPrintType <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cHeader</span> &nbsp; &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cFooter</span> &nbsp; &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nPosFooter</span> &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nMAXCOL</span> &nbsp; &nbsp; := <span style="color: #000000;">96</span> <span style="color: #B900B9;">// BY PABLO VIDAL</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cName</span> &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cDriver</span> := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cPort</span> &nbsp; := cPort<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cFileTemp</span> := StrZero<span style="color: #000000;">&#40;</span> nRandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">08</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">".prn"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPort</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"<span style="color: #000000;">\\</span>"</span> <span style="color: #B900B9;">//impresora en red</span><br />&nbsp; &nbsp; &nbsp; l1 := .F.<br />&nbsp; &nbsp;ELSEIF ::<span style="color: #000000;">cPort</span> = <span style="color: #ff0000;">"SELECT"</span><br />&nbsp; &nbsp; &nbsp; PrinterSetup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//dialog box setup: establece como predeterminada una impresora (puede ser en red)</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cName</span> &nbsp; := PrnGetName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cDriver</span> := PrnGetDrive<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cPort</span> &nbsp; := PrnGetPort<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; l1 := .t.<br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span> <span style="color: #B900B9;">// "LPTn[:]"</span><br />&nbsp; &nbsp; &nbsp; l1 := .t.<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> l1<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPort</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">":"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">cPort</span> := <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPort</span>, Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPort</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; End<br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">hDC</span> := fCreate<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPort</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//::hDC := fCreate( ::cFileTemp ) //cPort )</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">hDC</span> < <span style="color: #000000;">0</span><br />&nbsp; &nbsp; ::<span style="color: #000000;">LastError</span> := fError<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; ::<span style="color: #000000;">LastError</span> := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cEchoFile</span> := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cEchoFile != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//cEchoFile += If( "." $ cEchoFile, "", ".PRN" ) //vale cualquier nombre de fichero: también sin extensión</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">hEchoFile</span> := fCreate<span style="color: #000000;">&#40;</span> cEchoFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> ::<span style="color: #000000;">hEchoFile</span> < <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Error al crear el fichero &nbsp;cEchoFile , cuyo nombre es:'</span> + CR + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> cEchoFile <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'::New( nPrintType, cPort, cEchoFile )'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">cEchoFile</span> := cEchoFile<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lEditFile</span> := .T.<br />&nbsp; &nbsp; &nbsp; End<br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">hEchoFile</span> := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;END<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TDosPrn<br /><span style="color: #00C800;">LOCAL</span> cPrinter := GetDefaultPrinter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nResult &nbsp;:= <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nRow</span> + ::<span style="color: #000000;">nCol</span> <span style="color: #000000;">&#41;</span> .And. ::<span style="color: #000000;">lAutoFF</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #0000ff;">EndPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> !fClose<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">LastError</span> := fError<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//ELSE</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//::LastError := 0</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">//IF WaitRun( "command.com /c copy /b " + ::cFileTemp + " " + ::cPort , 0 ) > 31</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// MsgStop("No se pudo imprimir")</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//Else</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// FERASE( ::cFileTemp )</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">hEchoFile</span> <> <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; fClose<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hEchoFile</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> ::<span style="color: #000000;">lEditFile</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//edita en ANSI, maximizadamente. No imprime bien</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// (los comandos salen impresos y no se comprime la letra).-</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//WinExec( 'WRITE ' + ::cEchoFile, 3 )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//Edita, maximizadamente pero en ventana MSDOS, el texto OEM. Imprime bien.-</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//WaitRun( "command.com /c EDIT " + ::cEchoFile, 3 )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//WaitRun( "command.com /c copy /b " + ::cEchoFile + " lpt1", 0 )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> ::<span style="color: #000000;">lPrintWin</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Impresion asistida por windows</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nResult := PrintFileRaw<span style="color: #000000;">&#40;</span> cPrinter, ::<span style="color: #000000;">cEchofile</span>, <span style="color: #ff0000;">"Impresion..."</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FERASE<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cEchofile</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// by pablo vidal</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WinExec<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COMMAND.COM /C PABLO.BAT"</span> , <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//FERASE( ::cEchofile ) // by pablo vidal</span><br /><br />&nbsp; &nbsp; &nbsp; End<br />&nbsp; &nbsp;END<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">EndPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDosPrn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cHeader</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cBuffer</span> := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lAnsiToOem</span>, AnsiToOem<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cHeader</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">cHeader</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CRLF + ::<span style="color: #000000;">cBuffer</span><br />&nbsp; &nbsp;End<br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cFooter</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> &nbsp; &nbsp; ::<span style="color: #000000;">nPosFooter</span> = <span style="color: #000000;">0</span> <span style="color: #B900B9;">//es el valor predeterminado</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nPosFooter</span> := ::<span style="color: #000000;">nRow</span> + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nPosFooter</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">cFooter</span> + CRLF <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//añade &nbsp;::cFooter + CRLF &nbsp;al final de &nbsp;::cBuffer</span><br />&nbsp; &nbsp;End<br />&nbsp; &nbsp;::<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cFormFeed</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//añade el comando ::cFormFeed &nbsp;al final de &nbsp;::cBuffer</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> fWrite<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cBuffer</span> <span style="color: #000000;">&#41;</span> < Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cBuffer</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">///////</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">LastError</span> := fError<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">LastError</span> := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">hEchoFile</span> <> <span style="color: #000000;">0</span><br />&nbsp; &nbsp; fWrite<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hEchoFile</span>, ::<span style="color: #000000;">cBuffer</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cBuffer</span> := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nRow</span> &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nCol</span> &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> Command<span style="color: #000000;">&#40;</span> cStr1, cStr2, cStr3, cStr4, cStr5, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cStr6, cStr7, cStr8, cStr9 <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TDosPrn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nToken := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cToken, cCommand := <span style="color: #ff0000;">""</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cString := cStr1<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cStr2 != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cString += <span style="color: #ff0000;">","</span> + cStr2<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cStr3 != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cString += <span style="color: #ff0000;">","</span> + cStr3<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cStr4 != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cString += <span style="color: #ff0000;">","</span> + cStr4<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cStr5 != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cString += <span style="color: #ff0000;">","</span> + cStr5<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cStr6 != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cString += <span style="color: #ff0000;">","</span> + cStr6<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cStr7 != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cString += <span style="color: #ff0000;">","</span> + cStr7<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cStr8 != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cString += <span style="color: #ff0000;">","</span> + cStr8<br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cStr9 != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; cString += <span style="color: #ff0000;">","</span> + cStr9<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !Empty<span style="color: #000000;">&#40;</span> cToken := StrToken<span style="color: #000000;">&#40;</span> cString, nToken++, <span style="color: #ff0000;">","</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCommand += Chr<span style="color: #000000;">&#40;</span> Val<span style="color: #000000;">&#40;</span> cToken <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDDO</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cBuffer</span> += cCommand<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> SetCoors<span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDosPrn<br /><br />&nbsp; &nbsp;nRow += ::<span style="color: #000000;">nTopMargin</span><br />&nbsp; &nbsp;nCol += ::<span style="color: #000000;">nLeftMargin</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nRow</span> > nRow<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #0000ff;">EndPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">StartPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//IF nRow == ::nRow &nbsp;.AND. nCol < ::nCol</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; ::EndPage()</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; ::StartPage()</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//END</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> ::<span style="color: #000000;">nRow</span> < nRow<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">NewLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDDO</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nCol > ::<span style="color: #000000;">nCol</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Write</span><span style="color: #000000;">&#40;</span> Space<span style="color: #000000;">&#40;</span> nCol - ::<span style="color: #000000;">nCol</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> SayDbl<span style="color: #000000;">&#40;</span> nRow, nCol, cText, lAToO <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDosPrn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lAToO := ::<span style="color: #000000;">lAnsiToOem</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">SetCoors</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cDouble</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cBuffer</span> += <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lAToO, AnsiToOem<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span>, cText <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #B900B9;">//::nCol &nbsp; &nbsp;+= Int( Len( cText ) * 2.3 + .5 ) ///</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nCol</span> &nbsp; &nbsp;+= Len<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cNormal</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> nRow, nCol, cText, lAToO <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDosPrn<br /><span style="color: #00C800;">LOCAL</span> cBUFFERNEW := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> cSTRING := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">DEFAULT</span> lAToO := ::<span style="color: #000000;">lAnsiToOem</span><br /><br />&nbsp; &nbsp;nRow += ::<span style="color: #000000;">nTopMargin</span><br />&nbsp; &nbsp;nCol += ::<span style="color: #000000;">nLeftMargin</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nRow</span> > nRow<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #0000ff;">EndPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">StartPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> ::<span style="color: #000000;">nRow</span> < nRow<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">NewLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDDO</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nCol > ::<span style="color: #000000;">nCol</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Write</span><span style="color: #000000;">&#40;</span> Space<span style="color: #000000;">&#40;</span> nCol - ::<span style="color: #000000;">nCol</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nRow == ::<span style="color: #000000;">nRow</span> &nbsp;.AND. nCol < ::<span style="color: #000000;">nCol</span><br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">SetCoors</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;cBUFFERNEW := <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cBuffer</span>, <span style="color: #000000;">1</span>, RAT<span style="color: #000000;">&#40;</span> CRLF, ::<span style="color: #000000;">cBuffer</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;cSTRING &nbsp; &nbsp;:= ALLTRIM<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cBuffer</span>, RAT<span style="color: #000000;">&#40;</span> CRLF, ::<span style="color: #000000;">cBuffer</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;cSTRING &nbsp; &nbsp;:= <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cSTRING, <span style="color: #000000;">00</span>, nCOL &nbsp;<span style="color: #000000;">&#41;</span> + cTEXT + <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cSTRING, nCOL + <span style="color: #000000;">01</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;cSTRING &nbsp; &nbsp;:= <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cSTRING, <span style="color: #000000;">00</span>, ::<span style="color: #000000;">nMAXCOL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">cBUFFER</span> &nbsp;:= cBUFFERNEW + cSTRING + CRLF<br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCOL</span> &nbsp; &nbsp; := LEN<span style="color: #000000;">&#40;</span> cSTRING <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">cBuffer</span> += &nbsp;cText<br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol</span> &nbsp; &nbsp;+= &nbsp;Len<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//ELSE</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;::SetCoors( nRow, nCol )</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;::Write( cText, lAToO )</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> SayCmp<span style="color: #000000;">&#40;</span> nRow, nCol, cText, lAToO <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDosPrn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lAToO := ::<span style="color: #000000;">lAnsiToOem</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">SetCoors</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cCompress</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cBuffer</span> += <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lAToO, AnsiToOem<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span>, cText <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #B900B9;">//::nCol &nbsp; &nbsp;+= Int( Len( cText ) / 1.7 + .5 ) ///</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nCol</span> &nbsp; &nbsp;+= Len<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">Command</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cNormal</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp;</div>[/code:13felcvb]
Como hago esto en SButton
Hola amigos del foro: Como se puede cambiar el bitmap de un sbutton definido con recursos en tiempo de ejecucion ? El sbutton lo defino asi: REDEFINE SBUTTON oBtn[ 1] ID 302 OF oFld:aDialogs[NF] ACTION XXX() RESOURCE "B_ORDEN" XP PROMPT STR(aMESA[ 1],2) TEXT 3 FONT oFontREST Gracias amigos
Como hago esto en SButton
Puedes hacerlo con: [code=fw:9myki45d]<div class="fw" id="{CB}" style="font-family: monospace;">oBtn<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ChangeBitMap</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, ltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000000;">\g</span>raficos<span style="color: #000000;">\'</span>+boton->nombre) )<br />oBtn[x]:Refresh()<br /></span></div>[/code:9myki45d]
Como hago esto en SButton
Gracias voy a probarlo
Como hago para agregar un control de recursos a UESTUDIO?
No encuentro como añadir un nuevo control al editor de recursos de UESTUDIO. He intentado buscar la información pero no encuentro como se hace. Sabes como se hace Antonio?. Quiero añadir controles como los que tenia en workshop pero no he encontrado el modo, ademas en alguna ocasiones cuando utilizo los que trae me dan errores al compilar. Si lo añado con contro editor de recursos y luego lo intento modificar no hay problema pero no se como añadírselo a Uestudio.
Como hago para agregar un control de recursos a UESTUDIO?
Andrés,[url=http&#58;//imageshack&#46;us:hisy1nlz][img:hisy1nlz]http&#58;//img112&#46;imageshack&#46;us/img112/5444/custompo1&#46;png[/img:hisy1nlz][/url:hisy1nlz]
Como hago para agregar un control de recursos a UESTUDIO?
Como? No entiendo Antonio, hasta ahí llegue pero con el custom control parece un control genérico. Como hago para añadir uno o para modificar alguna propiedad de alguno existente. Quiero que aparezca un nuevo control. Perdón por el retraso, es duro la vuelta de las vacaciones. Hoy me he dado una vuelta por el foro de uestudio y no pone gran cosa.
Como hago para agregar un control de recursos a UESTUDIO?
Andrés,Una vez seleccionas esa opción que te he indicado, esto aparece en el código del RC: CONTROL "Custom1", IDC_CUSTOM1, "Custom", WS_MAXIMIZEBOX | WS_VISIBLE, 27, 15, 50, 14Ahora solo tienes que modificarlo asi, por ejemplo: CONTROL "", 100, "TWBrowse", WS_VISIBLE | WS_CHILD, 27, 15, 50, 14[url=http&#58;//imageshack&#46;us:16whw9n8][img:16whw9n8]http&#58;//img509&#46;imageshack&#46;us/img509/8100/controlax3&#46;png[/img:16whw9n8][/url:16whw9n8]
Como hago para agregar un control de recursos a UESTUDIO?
Si Antonio, eso lo tenia claro cuando empece este hilo, pero mi pregunta va encaminada a añadir objetos de recurso a los que ya hay predefinidos. Eso ya lo he hecho, incluso si pruebas a añadir un botón tienes que cambiarle alguna propiedad puesto que te da error de compilación si lo dejas tal cual te lo entrega uestudio. Por eso me preguntaba si eso no seria mejor cambiarlo en la configuración para que te añada tal cual lo necesitas tu, además de añadir otros objetos de recurso como el txbrowse, el tcalendar y demás...
Como hago para agregar un control de recursos a UESTUDIO?
Andrés,Eso es algo que habría que comentarle al equipo de UEStudio y a ver si son receptivos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Como hago para agregar un control de recursos a UESTUDIO?
Gracias Antonio, me temía esa respuesta, ya que estoy encantado con uestudio y no todo tienen que ser ventajas... verdad! Pero de todas formas no lo encuentras extraño. Es un programa para múltiples lenguajes y es raro que no podamos añadir nuestros propios recursos.
Como hago para agregar un control de recursos a UESTUDIO?
Da la sensación de que no les han pedido mejorar esa opción. Parece incompleta, como si pocos usuarios lo hubiesen usado. O a lo mejor han preferido mantenerse en ese nivel simple, sin complicarlo.
Como hago para agregar un control de recursos a UESTUDIO?
De todas formas, hilando esta conversación con lo hablado con Otto en el foro en inglés hace unos dias, se puede implementar una macro que llame a una utilidad escrita en FWH (por ejemplo) que haga el trabajo extra.Revisa lo que está haciendo Otto con UEStudio y las macros. Parece bastante interesante <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Como hago para cargar este OCX.
Desde hace tiempo tengo ganas de poner un lector de TIFF a mis programas, que no es mas que un fichero conteniendo fotos (archivos graficos) pero que lo guarda en un solo fichero. He encontrado este control OCX que es gratis, pero los ejemplos que he encontrado en fivewin no veo como cargar este control viene con su registrador de la clase y todo. Lo podeis descargas de <!-- m --><a class="postlink" href="http://www.alternatiff.com/">http://www.alternatiff.com/</a><!-- m --> Alguna idea de como cargarlo, los ejemplos que hay en fivewin solo hablan de cargar el identificador del ocx y eso no se como se hace. Un saludo
Como hago para cargar este OCX.
Coginedo el ejemplo de testocx y cambiando el identificador de la clase, me muestra el control pero en cuanto pulso algun boton me da un error en una ventana fivewin. El codigo que he hecho es el siguiente: [code:abfyglcm] #include "FiveWin&#46;ch" //---------------------------------------------------------------------------// function Main&#40;&#41; local oWnd, hOCX, n, oLbx local aProperties &#58;= &#123;&#125; DEFINE WINDOW oWnd TITLE "FiveWin ActiveX support" OcxInit&#40;&#41; hOcx = OcxCreate&#40; 1, 1, 550, 550, "&#123;106E49CF-797A-11D2-81A2-00E02C015623&#125;", oWnd&#58;hWnd &#41; ACTIVATE WINDOW oWnd OcxTerm&#40;&#41; return nil //---------------------------------------------------------------------------// DLL32 FUNCTION OCXInit&#40;&#41; AS VOID LIB "FiveOCX" DLL32 FUNCTION OCXTerm&#40;&#41; AS VOID LIB "FiveOCX" DLL32 FUNCTION OCXCreate&#40; cy AS LONG, cx AS LONG, y AS LONG, x AS LONG,; cClsID AS LPSTR, hWnd AS LONG &#41; AS LONG PASCAL LIB "FiveOCX" DLL32 FUNCTION OCXGetPropName&#40; hOCX AS LONG, nIndex AS LONG &#41; AS LPSTR PASCAL LIB "FiveOCX" DLL32 FUNCTION OCXGetNumProps&#40; hOCX AS LONG &#41; AS LONG PASCAL LIB "FiveOCX" DLL32 FUNCTION OCXShowProperties&#40; hOCX AS LONG, nX AS LONG, nY AS LONG, szTitle AS LPSTR &#41; ; AS VOID PASCAL LIB "FiveOCX" [/code:abfyglcm] Sabeis si necesito hacer algo mas para poder manejar el control, el control efectivamente aparece pero cuando pulso sobre el me da el error en la linea de ACTIVATE WINDOW oWnd, sabeis si tengo que poner algo mas. Un saludo.
Como hago para cargar este OCX.
Voy congiendo el hilo, ahora resulta que si lo hago con un control activex funciona a las mil maravillas.[code:2yedzipm] // Using Microsoft Excel ActiveX #include "FiveWin&#46;ch" function Main&#40;&#41; local oWnd, oActiveX DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support" // Warning&#58; You may need a different name based on your installed Office version oActiveX = TActiveX&#40;&#41;&#58;New&#40; oWnd, "Alttiff&#46;AlttiffCtl" &#41; oWnd&#58;oClient = oActiveX // To fill the entire window surface ACTIVATE WINDOW oWnd return nil [/code:2yedzipm] Que diferencia hay entre hacer una llamada entre OCX y ActiveX ? Saludos.
Como hago para cargar este OCX.
Andrés, Usalo como ActiveX. El soporte de OCX de TestOCX no es correcto.
Como hago para que el contenido de una celda ocupe varias l?
Hola. Necesito que el contenido de una celda me muestre de esta forma (cuando supera el ancho de la misma) [quote:1c7qc8ka]Este es un contenido de celda extenso mostrada en una sola celda.[/quote:1c7qc8ka] Me explique? gracias.
Como hago para que el contenido de una celda ocupe varias l?
Talvez... oBrw:nRowHeight := 40 ? // o valor requerido
Como hago para que el contenido de una celda ocupe varias l?
O, este ejemplo de Mr. Nages? [code=fw:25g795ba]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//--------------------------// </span><br /><span style="color: #00C800;">Function</span> MultiLineCells<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBrw, aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">local</span> aData    := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> n,i,j<br /><br />   n  := <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> <span style="color: #000000;">4</span><br />      <span style="color: #00C800;">for</span> j := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span> step <span style="color: #000000;">3</span><br />        <span style="color: #B900B9;">// aData[ i, j ] := NToCDOW( ( n - 1 ) % 7 + 1 )</span><br />         aData<span style="color: #000000;">&#91;</span> i, j <span style="color: #000000;">&#93;</span> := SpaNumDay<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> % <span style="color: #000000;">7</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />         aData<span style="color: #000000;">&#91;</span> i, j + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> := n<br />         aData<span style="color: #000000;">&#91;</span> i, j + <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">"Algún texto que puede tomar mas de una linea."</span><br />         n++<br />      <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">next</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <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;">-16</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"IMPACT"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-34</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TIMES ROMAN"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> ITALIC<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">10</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 DATASOURCE aData <span style="color: #0000ff;">AUTOCOLS</span> ;<br />      LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nWidths</span>    := <span style="color: #000000;">150</span><br />      :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">100</span><br />      <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span> STEP <span style="color: #000000;">3</span><br />         WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">oDataFont</span>     := aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">nDataStrAlign</span> := AL_CENTER<br />         END<br />         WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">oDataFont</span>     := aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">nDataStrAlign</span> := AL_CENTER<br />            :<span style="color: #000000;">bClrStd</span>       := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_HRED, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />         END<br />         WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i + <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">oDataFont</span>     := aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">nDataLines</span>    := <span style="color: #000000;">2</span><br />         END<br />         :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColsAsRows</span><span style="color: #000000;">&#40;</span> i, i + <span style="color: #000000;">1</span>, i + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">next</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: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />   AEval<span style="color: #000000;">&#40;</span> aFont, <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:25g795ba]
Como hago para que el reporte tenga cuadricula?
Eso. Quiero que mi reporte tenga las cuadriculas, no solo las lineas verticales de las columnas, sino tambien las horizontales. gracias.