topic
stringlengths
1
63
text
stringlengths
1
577k
CAN FLASH A XBROWSE ?
Faltaba esto: [code=fw:19x4tayo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/***************************************************************************<br />* Sistema .....: WBrowseSample<br />* Programa ....: DlgWBrw.PRG<br />* Autor .......: Anderson<br />* Data ........: 15/02/2008 às 14:18:56<br />* Revisado em .: 15/02/2008 às 14:18:56<br />***************************************************************************/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'FiveWin.ch'</span><br /><br />****************************************************************************<br /><span style="color: #00C800;">FUNCTION</span> ShowDlg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />****************************************************************************<br /><br /><span style="color: #00C800;">Private</span> oDlg := <span style="color: #00C800;">Nil</span>, oBrw, oTmr<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">select</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;use customer<br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> &nbsp; &nbsp; oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">of</span> &nbsp; &nbsp; &nbsp; &nbsp; oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">resource</span> &nbsp; <span style="color: #ff0000;">"DLG"</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//-- Browse -----------------------------------------------------------//</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Redefine</span> <span style="color: #0000ff;">LISTBOX</span> &nbsp; oBrw &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELDS &nbsp; &nbsp;FIRST, &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; &nbsp; &nbsp; &nbsp; LAST, &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; &nbsp; &nbsp; &nbsp; STREET, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>MARRIED,<span style="color: #ff0000;">'True'</span>,<span style="color: #ff0000;">'False'</span><span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Str<span style="color: #000000;">&#40;</span>AGE<span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Str<span style="color: #000000;">&#40;</span>SALARY<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADERS &nbsp; <span style="color: #ff0000;">"Nome"</span>,<span style="color: #ff0000;">"Sobrenome"</span>,<span style="color: #ff0000;">"Endereço"</span>, &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Casado"</span>,<span style="color: #ff0000;">"Idade"</span>,<span style="color: #ff0000;">"Salario"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sizes &nbsp; &nbsp; <span style="color: #000000;">090</span>,<span style="color: #000000;">090</span>,<span style="color: #000000;">090</span>,<span style="color: #000000;">060</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">100</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">4001</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> &nbsp; &nbsp; &nbsp; &nbsp;oDlg<br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nClrPane</span> &nbsp; := <span style="color: #000000;">&#123;</span>|| ClrPaneBrw<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Dialog</span> &nbsp; oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Center</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> &nbsp;OnInit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oTmr:<span style="color: #000000;">Deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;close all<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />****************************************************************************<br /><span style="color: #00C800;">static</span> procedure OnInit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />****************************************************************************<br />*<br />* Executar tarefa ao iniciar o <span style="color: #0000ff;">dialog</span><br />* Parametros: <span style="color: #000000;">nenhum</span><br />* Retorno: <span style="color: #000000;">Nenhum</span><br />*<br />* Autor: <span style="color: #000000;">Anderson</span><br />* <span style="color: #000000;">05</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2008</span> - <span style="color: #000000;">09</span>:<span style="color: #000000;">38</span>:<span style="color: #000000;">53</span><br />*<br />****************************************************************************<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> &nbsp; <span style="color: #0000ff;">Timer</span> &nbsp; &nbsp; oTmr &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Interval</span> &nbsp;<span style="color: #000000;">1000</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Of</span> &nbsp; &nbsp; &nbsp; &nbsp;oDlg &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Action</span> &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #000000;">UpStable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Timer</span> oTmr<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />****************************************************************************<br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ClrPaneBrw<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />****************************************************************************<br />*<br />* Trocar cor da linha <span style="color: #00C800;">do</span> <span style="color: #0000ff;">listbox</span><br />* Parametros:<br /><span style="color: #000000;">*</span> Retorno: <span style="color: #000000;">Nenhum</span><br />*<br />* Autor: <span style="color: #000000;">Anderson</span><br />* <span style="color: #000000;">05</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2008</span> - <span style="color: #000000;">09</span>:<span style="color: #000000;">32</span>:<span style="color: #000000;">59</span><br />*<br />****************************************************************************<br /><br /><span style="color: #00C800;">local</span> Result := nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> MARRIED<br />&nbsp; &nbsp; &nbsp; Result := nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">200</span>,<span style="color: #000000;">200</span>,<span style="color: #000000;">223</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;elseif AGE > <span style="color: #000000;">80</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>Time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Result := nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Result := nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;end<br /><br /><span style="color: #00C800;">Return</span> Result<br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />&nbsp;</div>[/code:19x4tayo] un saludo JLL
CAN FLASH A XBROWSE ?
this is a good idea thanks do you have an idea how converte it on xbrowse control ?
CAN FLASH A XBROWSE ?
why this not run ???? [code=fw:3me2i7ch]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> ShowDlg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Private</span> oDlg := <span style="color: #00C800;">Nil</span>, oBrw, oTmr<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">select</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;USE CUSTOMER <span style="color: #0000ff;">ALIAS</span> CUST<br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> &nbsp; &nbsp; oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">of</span> &nbsp; &nbsp; &nbsp; &nbsp; oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br /><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> BACKGROUND <span style="color: #ff0000;">""</span><br /><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nRowDividerStyle</span> = LINESTYLE_NOLINES<br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nColDividerStyle</span> = LINESTYLE_NOLINES<br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp;= MARQSTYLE_HIGHLROW<br /><br /><br />&nbsp; <span style="color: #B900B9;">// oBrw:nClrPane &nbsp; := {|| ClrPaneBrw() }</span><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || Colores<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CUST"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">// colori</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Dialog</span> &nbsp; oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Center</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> &nbsp;OnInit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oTmr:<span style="color: #000000;">Deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;close all<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">static</span> procedure OnInit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #0000ff;">Define</span> &nbsp; <span style="color: #0000ff;">Timer</span> &nbsp; &nbsp; oTmr &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Interval</span> &nbsp;<span style="color: #000000;">1000</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Of</span> &nbsp; &nbsp; &nbsp; &nbsp;oDlg &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Action</span> &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #000000;">UpStable</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> oTmr<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><br /><br />&nbsp;<span style="color: #00C800;">FUNCTION</span> Colores<span style="color: #000000;">&#40;</span>cdbf<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aCol:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>cdbf<span style="color: #000000;">&#41;</span>->MARRIED<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aCol:=<span style="color: #000000;">&#123;</span>CLR_BLACK, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">193</span>,<span style="color: #000000;">221</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif <span style="color: #000000;">&#40;</span>cdbf<span style="color: #000000;">&#41;</span>->AGE > <span style="color: #000000;">80</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>Time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aCol:=<span style="color: #000000;">&#123;</span>CLR_BLACK, nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aCol:=<span style="color: #000000;">&#123;</span>CLR_BLACK,nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br /><br /><br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>aCol<span style="color: #000000;">&#41;</span></div>[/code:3me2i7ch]
CAN FLASH A XBROWSE ?
Hola Silvio: En la clase xBrowse no existe el metodo ::UpStable(), simplemente refresca con ::Refresh() o para repintar todo ::Refresh( .T ) Un saludo JLL
CAN FLASH A XBROWSE ?
ok but it not run ok loook please this [code=fw:3sxfj10b]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><span style="color: #B900B9;">/***************************************************************************<br />* Sistema .....: BrwSample<br />* Programa ....:<br />* Autor .......: Anderson<br />* Data ........: 15/02/2008 às 13:35:56<br />* Revisado em .: 15/02/2008 às 13:35:56<br />***************************************************************************/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br />&nbsp;<span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br />****************************************************************************<br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />****************************************************************************<br /><br />&nbsp; <span style="color: #00C800;">local</span> cWallPaper := <span style="color: #ff0000;">''</span>, oBgBmp := <span style="color: #00C800;">nil</span>, nWidth := nHeight := <span style="color: #000000;">0</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; cTitle := <span style="color: #ff0000;">""</span><br />&nbsp; <span style="color: #00C800;">public</span> oWnd<br /><br />&nbsp; set Bell &nbsp; &nbsp; &nbsp; &nbsp;Off<br />&nbsp; set Console &nbsp; &nbsp; Off<br />&nbsp; set Delimiters &nbsp;Off<br />&nbsp; set Century &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">On</span><br />&nbsp; set Echo &nbsp; &nbsp; &nbsp; &nbsp;Off<br />&nbsp; set Exclusive &nbsp; Off<br />&nbsp; set <span style="color: #0000ff;">Menu</span> &nbsp; &nbsp; &nbsp; &nbsp;Off<br />&nbsp; set Intensity &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">On</span><br />&nbsp; set <span style="color: #0000ff;">Printer</span> &nbsp; &nbsp; Off<br />&nbsp; set Scoreboard &nbsp;Off<br />&nbsp; set Delete &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">On</span><br />&nbsp; set Wrap &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">On</span><br />&nbsp; set Status &nbsp; &nbsp; &nbsp;Off<br />&nbsp; set 3dlook &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">On</span><br />&nbsp; set Talk &nbsp; &nbsp; &nbsp; &nbsp;Off<br />&nbsp; set Date &nbsp; &nbsp; &nbsp; &nbsp;Brit<br />&nbsp; set Epoch &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">to</span> <span style="color: #000000;">1920</span><br />&nbsp; set Device &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">To</span> Screen<br />&nbsp; set Typeahead &nbsp; <span style="color: #0000ff;">To</span> <span style="color: #000000;">2048</span><br />&nbsp; set Decimal &nbsp; &nbsp; <span style="color: #0000ff;">To</span> <span style="color: #000000;">2</span><br /><br />&nbsp; SetBalloon<span style="color: #000000;">&#40;</span>.t.<span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #B900B9;">//-- Icone (Deve ser o primeiro icone do .res) -------------------------//</span><br /><br />&nbsp; oIcon := TIcon<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: #ff0000;">"RCA"</span>,,<span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #B900B9;">//-- Window ------------------------------------------------------------//</span><br /><br />&nbsp; cTitle := <span style="color: #ff0000;">"RCA Sistemas - WBrowse Sample"</span><br /><br />&nbsp; <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Window</span> &nbsp; &nbsp;oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Title</span> &nbsp; &nbsp; cTitle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Menu</span> &nbsp; &nbsp; &nbsp;CreateMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Icon</span> &nbsp; &nbsp; &nbsp;oIcon &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FROM</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">800</span><br /><br />&nbsp; oWnd:<span style="color: #000000;">nHeight</span> := oWnd:<span style="color: #000000;">nVertRes</span><br />&nbsp; oWnd:<span style="color: #000000;">nWidth</span> &nbsp;:= oWnd:<span style="color: #000000;">nHorzRes</span><br /><br />&nbsp; <span style="color: #B900B9;">//-- KeyDown -----------------------------------------------------------//</span><br /><br />&nbsp; cWallPaper := <span style="color: #ff0000;">"BG"</span><br />&nbsp; nHeight &nbsp; &nbsp;:= <span style="color: #000000;">440</span><br />&nbsp; nWidth &nbsp; &nbsp; := <span style="color: #000000;">440</span><br /><br />&nbsp; nLeft := <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nHorzRes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nWidth <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span><br />&nbsp; nTop &nbsp;:= <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nVertRes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nHeight<span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span><br /><br />&nbsp; @ nTop,nLeft <span style="color: #0000ff;">Image</span> &nbsp; &nbsp; &nbsp;oImage &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">resource</span> &nbsp; cWallPaper &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Of</span> &nbsp; &nbsp; &nbsp; &nbsp; oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;no border &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Pixel</span><br /><br />&nbsp; <span style="color: #B900B9;">//-- Barra de ferramentas ----------------------------------------------//</span><br /><br />&nbsp; CreateToolBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #B900B9;">//-- Barra de status ---------------------------------------------------//</span><br /><br />&nbsp; Barra<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #B900B9;">//-- Ativa a janela ----------------------------------------------------//</span><br /><br />&nbsp; <span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Window</span> &nbsp; &nbsp;oWnd <span style="color: #0000ff;">Maximized</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">valid</span> &nbsp; &nbsp; ValidClose<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #B900B9;">//-- Encerra a procedure principal -------------------------------------//</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 />****************************************************************************<br /><span style="color: #00C800;">static</span> procedure CreateToolBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />****************************************************************************<br />*<br />* Criar a barra de ferramentas da janela principal<br />* Parametros: <span style="color: #000000;">Nenhum</span><br />* Retorno: <span style="color: #000000;">Nenhum</span><br />*<br />* Autor: <span style="color: #000000;">anderson</span><br />* <span style="color: #000000;">18</span>/<span style="color: #000000;">7</span>/<span style="color: #000000;">2007</span> - <span style="color: #000000;">16</span>:<span style="color: #000000;">44</span>:<span style="color: #000000;">24</span><br />*<br />****************************************************************************<br /><br /><span style="color: #00C800;">local</span> oToolBar := <span style="color: #00C800;">Nil</span><br /><br />&nbsp; <span style="color: #B900B9;">//-- Barra de ferramentas ----------------------------------------------//</span><br />&nbsp; <br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ButtonBar</span> oToolBar <span style="color: #0000ff;">of</span> oWnd <span style="color: #0000ff;">Size</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">70</span> <span style="color: #000000;">2007</span><br /><br />&nbsp; <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Button</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> &nbsp; &nbsp; &nbsp; &nbsp;oToolBar &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">prompt</span> &nbsp; &nbsp;<span style="color: #ff0000;">"Dialogo"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Resource</span> &nbsp;<span style="color: #ff0000;">"Dialog48"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">action</span> &nbsp; ShowDlg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Group<br /><br />&nbsp; <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">BUTTON</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> &nbsp; &nbsp; &nbsp; &nbsp;oToolBar &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">prompt</span> &nbsp; &nbsp;<span style="color: #ff0000;">"Sair"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Resource</span> &nbsp;<span style="color: #ff0000;">"Sair48"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Action</span> &nbsp; &nbsp;<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> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Group<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />****************************************************************************<br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CreateMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />****************************************************************************<br />*<br />* Criar um objeto <span style="color: #0000ff;">menu</span><br />* Parametros: <span style="color: #000000;">Nenhum</span><br />* Retorno: <span style="color: #000000;">Objeto</span> - <span style="color: #0000ff;">Menu</span> da janela principal<br />*<br />* Autor: <span style="color: #000000;">Anderson</span><br />* <span style="color: #000000;">17</span>/<span style="color: #000000;">7</span>/<span style="color: #000000;">2007</span> - <span style="color: #000000;">12</span>:<span style="color: #000000;">24</span>:<span style="color: #000000;">35</span><br />*<br />****************************************************************************<br /><br /><span style="color: #00C800;">local</span> Result := <span style="color: #00C800;">Nil</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">menu</span> Result <span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">menuitem</span> <span style="color: #ff0000;">"Menu"</span><br />&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;">"Browse piscando"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">message</span> &nbsp;<span style="color: #ff0000;">"Exibir browse piscando"</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">action</span> &nbsp; ShowDlg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"Dialog16"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; helpid <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">separator</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">menuitem</span> &nbsp; &nbsp;<span style="color: #ff0000;">"Sai&r"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">message</span> &nbsp; &nbsp; <span style="color: #ff0000;">"Fechar sistema"</span> &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; accelerator ACC_NORMAL, VK_ESCAPE &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">resource</span> &nbsp; &nbsp;<span style="color: #ff0000;">"Sair16"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">action</span> &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">endmenu</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">endmenu</span><br /><br /><span style="color: #00C800;">Return</span> Result<br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />****************************************************************************<br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ValidClose<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />****************************************************************************<br />*<br />* Validar a saida <span style="color: #00C800;">do</span> sistema<br />* Parametro: <span style="color: #000000;">Nenhum</span><br />* Retorno: <span style="color: #000000;">L</span>ógico - se permite ou nao sair<br />*<br />* Autor: <span style="color: #000000;">Anderson</span><br />* <span style="color: #000000;">17</span>/<span style="color: #000000;">7</span>/<span style="color: #000000;">2007</span> - <span style="color: #000000;">12</span>:<span style="color: #000000;">32</span>:<span style="color: #000000;">42</span><br />*<br />****************************************************************************<br /><br /><span style="color: #00C800;">local</span> Result := .f.<br /><br />&nbsp; Result := Sn<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Deseja sair do sistema'</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> Result<br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />****************************************************************************<br /><span style="color: #00C800;">function</span> Barra<span style="color: #000000;">&#40;</span>cMensagem<span style="color: #000000;">&#41;</span><br />****************************************************************************<br /><br /><span style="color: #00C800;">local</span> oFntMess, cWndName := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">default</span> cMensagem := <span style="color: #ff0000;">"Copyright © 2008 - RCA Sistemas Ltda."</span><br /><br />&nbsp; &nbsp;SysRefresh<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;">Font</span> oFntMess <span style="color: #0000ff;">Name</span> <span style="color: #ff0000;">"Tahoma"</span><br /><br />&nbsp; &nbsp;set <span style="color: #0000ff;">message</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">of</span> &nbsp; &nbsp; &nbsp; &nbsp; oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">to</span> &nbsp; &nbsp; &nbsp; &nbsp; cMensagem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2007</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">centered</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Font</span> &nbsp; &nbsp; &nbsp; oFntMess<br /><br />&nbsp; &nbsp;SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />****************************************************************************<br /><span style="color: #00C800;">function</span> SN<span style="color: #000000;">&#40;</span>cQuestion,cDefault<span style="color: #000000;">&#41;</span><br />****************************************************************************<br /><br /><span style="color: #00C800;">local</span> cAlias<br /><br />&nbsp; &nbsp;cDefault := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>ValType<span style="color: #000000;">&#40;</span>cDefault<span style="color: #000000;">&#41;</span> != <span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"S"</span>,cDefault<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cAlias := <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cQuestion := StrTran<span style="color: #000000;">&#40;</span>cQuestion,<span style="color: #ff0000;">";"</span>,chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Upper<span style="color: #000000;">&#40;</span>cDefault<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"N"</span> &nbsp;<span style="color: #B900B9;">// Foco fica em Nao.</span><br />&nbsp; &nbsp; &nbsp; &nbsp;Result := MsgNoYes<span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span>cQuestion<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" ?"</span> ,<span style="color: #ff0000;">"Confirmação"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp;Result := MsgYesNo<span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span>cQuestion<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" ?"</span> ,<span style="color: #ff0000;">"Confirmação"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> .not. Empty<span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Select</span> <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br /><span style="color: #00C800;">return</span> Result<br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />&nbsp;<br /><span style="color: #B900B9;">/***************************************************************************<br />* Sistema .....: WBrowseSample<br />* Programa ....: DlgWBrw.PRG<br />* Autor .......: Anderson<br />* Data ........: 15/02/2008 às 14:18:56<br />* Revisado em .: 15/02/2008 às 14:18:56<br />***************************************************************************/</span><br /><br /><br />****************************************************************************<br /><span style="color: #B900B9;">/*FUNCTION ShowDlg()<br />****************************************************************************<br /><br />Private oDlg := Nil, oBrw, oTmr<br /><br />&nbsp; &nbsp;select 0<br />&nbsp; &nbsp;use customer<br /><br /><br />&nbsp; &nbsp;Define Dialog &nbsp; &nbsp; oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; of &nbsp; &nbsp; &nbsp; &nbsp; oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resource &nbsp; "DLG"<br /><br /><br />&nbsp; &nbsp;//-- Browse -----------------------------------------------------------//<br /><br />&nbsp; &nbsp;Redefine LISTBOX &nbsp; oBrw &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELDS &nbsp; &nbsp;FIRST, &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; &nbsp; &nbsp; &nbsp; LAST, &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; &nbsp; &nbsp; &nbsp; STREET, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(MARRIED,'True','False'), &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Str(AGE), &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Str(SALARY) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADERS &nbsp; "Nome","Sobrenome","Endereço", &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Casado","Idade","Salario" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sizes &nbsp; &nbsp; 090,090,090,060,100,100 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ID &nbsp; &nbsp; &nbsp; &nbsp;4001 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OF &nbsp; &nbsp; &nbsp; &nbsp;oDlg<br /><br />&nbsp; &nbsp;oBrw:nClrPane &nbsp; := {|| ClrPaneBrw() }<br /><br />&nbsp; &nbsp;Activate Dialog &nbsp; oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Center &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; on init &nbsp;OnInit()<br /><br />&nbsp; &nbsp;oTmr:Deactivate()<br /><br />&nbsp; &nbsp;close all<br /><br />RETURN nil<br />&nbsp; */</span><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br /><br />****************************************************************************<br /><br /><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------*/</span><br /><br />&nbsp;<span style="color: #00C800;">FUNCTION</span> ShowDlg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Private</span> oDlg := <span style="color: #00C800;">Nil</span>, oBrw, oTmr<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">select</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;USE CUSTOMER <span style="color: #0000ff;">ALIAS</span> CUST<br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> &nbsp; &nbsp; oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">of</span> &nbsp; &nbsp; &nbsp; &nbsp; oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>,<span style="color: #000000;">600</span><br /><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>, <span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> BACKGROUND <span style="color: #ff0000;">""</span><br /><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nRowDividerStyle</span> = LINESTYLE_NOLINES<br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nColDividerStyle</span> = LINESTYLE_NOLINES<br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp;= MARQSTYLE_HIGHLROW<br /><br /><br /><br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || ClrPaneBrw<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">// colori</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Dialog</span> &nbsp; oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Center</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> &nbsp;OnInit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oTmr:<span style="color: #000000;">Deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;close all<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /><br /><span style="color: #00C800;">static</span> procedure OnInit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #0000ff;">Define</span> &nbsp; <span style="color: #0000ff;">Timer</span> &nbsp; &nbsp; oTmr &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Interval</span> &nbsp;<span style="color: #000000;">1000</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Of</span> &nbsp; &nbsp; &nbsp; &nbsp;oDlg &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">action</span> &nbsp; oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Action &nbsp; &nbsp;(oBrw:Paint(),oBrw:Refresh(),oBrw:UpStable())</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Timer</span> oTmr<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><br /><br /><br />&nbsp;<span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ClrPaneBrw<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> Result := nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> aCol:=<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> CUST->MARRIED<br />&nbsp; &nbsp; &nbsp; Result := nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">200</span>,<span style="color: #000000;">200</span>,<span style="color: #000000;">223</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;elseif CUST->AGE > <span style="color: #000000;">80</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>Time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Result := nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Result := nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp;end<br /><br /><span style="color: #00C800;">Return</span> &nbsp; aCol:=<span style="color: #000000;">&#123;</span>CLR_BLACK,Result <span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br />&nbsp;</div>[/code:3sxfj10b]
CANCEL EN BTNBMP
Antonio en BTNBMP la clausula CANCEL no funciona. Hay alguna forma de arreglarlo?. Gracias
CANCEL EN BTNBMP
José Martin, Tienes que asignar el dato lCancel del TBtnBmp, aquí tienes un ejemplo funcionando correctamente: [code:36lv9qws] #include "FiveWin&#46;ch" function Main&#40;&#41; local oDlg, cText &#58;= Space&#40; 10 &#41;, oBtn DEFINE DIALOG oDlg TITLE "Test" @ 1, 1 GET cText VALID ! Empty&#40; cText &#41; @ 40, 25 BTNBMP oBtn FILE "exit2&#46;bmp" SIZE 15, 15 ACTION oDlg&#58;End&#40;&#41; oBtn&#58;lCancel = &#46;t&#46; ACTIVATE DIALOG oDlg CENTER return nil [/code:36lv9qws]
CANCEL EN BTNBMP
Antonio, Funciona bien muchas gracias. Ahora me gustaria saber como puedo asignar una tecla aceleradora al mismo tBTNBMP Un saludo [quote="Antonio Linares":379xmlgd]José Martin, Tienes que asignar el dato lCancel del TBtnBmp, aquí tienes un ejemplo funcionando correctamente: [code:379xmlgd] #include "FiveWin&#46;ch" function Main&#40;&#41; local oDlg, cText &#58;= Space&#40; 10 &#41;, oBtn DEFINE DIALOG oDlg TITLE "Test" @ 1, 1 GET cText VALID ! Empty&#40; cText &#41; @ 40, 25 BTNBMP oBtn FILE "exit2&#46;bmp" SIZE 15, 15 ACTION oDlg&#58;End&#40;&#41; oBtn&#58;lCancel = &#46;t&#46; ACTIVATE DIALOG oDlg CENTER return nil [/code:379xmlgd][/quote:379xmlgd]
CANCEL EN BTNBMP
José, La clase TBtnBmp no admite aceleradores. En su lugar puedes usar un botón TButtonBmp que si los soporta. Resisa samples\TestBuBm.prg
CANCEL EN BTNBMP
Amigo no se si sea lo que estas buscando... Pero si creas tus dialogos con recursos lo puedes hacer anteponiendo un & antes de la letra de cada boton.... y cuando haces alt+laletra, toma el foco el boton respectivo luego presionas la tecla Enter. Espero te sirva
CANCEL EN BTNBMP
he probado el tButtonBmp y no de deja utilzar Bitmaps desde recursos, solo desde ficheros externos, no se si hare algo mal pero es lo que me pasa. Esto no me interesa pues no quiero utilizar nada externo a la aplicación. En Cuanto a lo que dice Leandro alfonso, esta bien pero ya son tres teclas las que hay que pulsar y solo quiero que al pulsar Alt+Tecla ejecute la accion. Saludos
CANCEL EN BTNBMP
Me corrijo, si funciona con recursos solo cambie la palabra RESOURCE por BITMAP. Saludos
CANCEL en SBUTTON no funciona
Holas, alguien tiene funcionando SBUTTONS con CANCEL, un SBUTTON con cancel definido no cancela la validación en un GET, estoy utilizando la versión 7 de sbutton saludos Marcelo
CANCEL en SBUTTON no funciona
Intenta: LCANCEL := .T.
CANCEL en SBUTTON no funciona
karinha, gracias por responder, pero ya intente eso también aún así no me está funcionando saludos Marcelo
CANCEL en SBUTTON no funciona
Y con CANCEL UPDATE directamente en el REDEFINE BUTTON??
CANCEL en SBUTTON no funciona
Hola sbutton es la clase de manuel mercado, si es asi prueba modificando la clase C:\FWH\SOURCE\CLASSES\CONTROL.PRG [code=fw:4jin3u1l]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">METHOD</span> KillFocus<span style="color: #000000;">&#40;</span> hCtlFocus <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TControl<br /><br />   <span style="color: #00C800;">local</span> oWnd<br /><br />   <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> hCtlFocus <span style="color: #000000;">&#41;</span> .and. ::<span style="color: #000000;">bValid</span> != <span style="color: #00C800;">nil</span> .and. WndParents<span style="color: #000000;">&#40;</span> hCtlFocus, ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. ;<br />      <span style="color: #000000;">&#40;</span> oWnd := oWndFromhWnd<span style="color: #000000;">&#40;</span> hCtlFocus <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">nil</span> .and. ;<br />      Upper<span style="color: #000000;">&#40;</span> oWnd:<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: #ff0000;">"TBUTTON;TBTNBMP;TBUTTONBMP;TSBUTTON"</span> .and. ;<br />      <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">lCancel</span> != <span style="color: #00C800;">nil</span> .and. oWnd:<span style="color: #000000;">lCancel</span> .and. ;<br /> </div>[/code:4jin3u1l]
CANCEL en SBUTTON no funciona
Patricio, gracias, ya había encontrado eso y se soluciona con ello, muchas gracias por responder karinha, gracias por la atención saludos Marcelo
CANCEL en button en folder no funciona
Dado el caso de tener el foco en un get donde tengo una validación... y el botón de salir tambien dentro del mismo folder. REDEFINE BUTTON aBtns[6] ID 506 OF oFld:aDialogs[2] CANCEL ; // Salir ACTION ( oDlg:End() ) Con la cláusula CANCEL, la tecla aceleradora no funciona. Alt + S Si le quito el CANCEL al button, entonces... entra la validación. Lo que quiero es usar CANCEL para salir. Esto solo sucede en folders FWH 2.7 build mayo + harbour Gracias
CANCEL en tsbutton 7.0 no funciona
Saludos. habia dejado este detalle al olvido, pero si alguien ha resuelto el problema del la clausula CANCEL en el sbrowse 7.0 y si lo pudiera compartir. Caso. @ 11,10 SBUTTON oBtn[1] PROMPT '&Aceptar' RESOURCE 'GOSEMA','GOSEMV' OF oDLG(1); ACTION ( lSalir:=ValidaVent(aVent),; // valida que los gets se cumplan IF( lSalir,; ( _lSalvar:=.T.,; AfectaDBF(aVent,lBloquea,bProceso),; NIL) ); XP COLOR COLOR_ACEPTA; SIZE 33,12 TEXT POSITION 4; PIXEL @ 11,100 SBUTTON oBtn[2] PROMPT '&Cancelar' RESOURCE 'GOSEMN','GOSEMR' OF oDLG(1); ACTION ( lSalir:=.t., _lSalvar:=.F.,; AfectaDBF(aVent,lBloquea,bProceso) ),; XP COLOR COLOR_CANCELA; SIZE 33,12 TEXT POSITION 4; PIXEL CANCEL /////// aqui el detalle/////// al presionar el boton "cancelar", este no pierde el foco, me sigue avisando de los gets que debo validar. esto no lo hacia en la version 4.0
CANCEL en tsbutton 7.0 no funciona
Expongo una diferencia entre las versiones 4 y 7 en el segundo return (x) cambia version 7 *************************************************************************************** METHOD GetDlgCode( nLastKey ) CLASS TSButton If nLastKey > 0 .and. nLastKey == ::nWakeup ::nWakeup := 0 EndIf If ( ! ::oWnd:lValidating .and. ::lCancel .and. ::cAccel != Nil .and. GetAsyncKey( VK_MENU ) .and. ; GetAsyncKey( Asc( Upper( ::cAccel ) ) ) .and. ::nWakeup == 0 ) ::SendMsg( FM_CLICK ) Return 1 ElseIf (! ::oWnd:lValidating .and. ::lWhen .and. !::lCancel .and. ::cAccel != Nil .and. ; GetAsyncKey( VK_MENU ) .and. GetAsyncKey( Asc( Upper( ::cAccel ) ) ) .and. ::nWakeup == 0 ) ::SendMsg( FM_CLICK ) Return NIL ////////////// aqui ///////////////// EndIf Return If( ::lActive, DLGC_WANTALLKEYS, Nil ) version 4**************************************************************************************************** METHOD GetDlgCode( nLastKey ) CLASS TSButton If nLastKey > 0 .and. nLastKey == ::nWakeup ::nWakeup := 0 EndIf If ( ! ::oWnd:lValidating .and. ::lCancel .and. ::cAccel != Nil .and. GetAsyncKey( VK_MENU ) .and. ; GetAsyncKey( Asc( Upper( ::cAccel ) ) ) .and. ::nWakeup == 0 ) ::SendMsg( FM_CLICK ) Return 1 ElseIf (! ::oWnd:lValidating .and. ::lWhen .and. !::lCancel .and. ::cAccel != Nil .and. ; GetAsyncKey( VK_MENU ) .and. GetAsyncKey( Asc( Upper( ::cAccel ) ) ) .and. ::nWakeup == 0 ) ::SendMsg( FM_CLICK ) Return 1 ////////////// aqui ///////////////// EndIf Return If( ::lActive, DLGC_WANTALLKEYS, Nil )
CANCEL en tsbutton 7.0 no funciona
Noé, Por favor prueba a añadir TSBUTTON a esta lista de nombres de Clases en control.prg Método KillFocus(): Upper( oWnd:Classname() ) $ "TBUTTON;TBTNBMP;TBUTTONBMP;TBTNFLAT" .and. ;
CANCEL en tsbutton 7.0 no funciona
Antonio Linares. Gracias por la solución.
CANNOT LOAD WinINet.dll !
Olá Amigos, Eu estou tentando compilar um exemplo de Ftp e aconteceu o seguinte : CANNOT LOAD WinINet.dll ! Testei em 5 Micros: 3 com XP e conecçao ADSL, deu erro da DLL 1 com Win98 conecçao Via radio, deu certo 1 com XP conecçao Via radio, deu certo O Ex. q eu estou testando eh este. FTPDIR.PRG [code:f341v15c] // Testing the FiveWin new Internet Classes #include "FiveWin&#46;ch" //----------------------------------------------------------------------------// function Main&#40;&#41; local oInternet &#58;= TInternet&#40;&#41;&#58;New&#40;&#41; local oFTP &#58;= TFTP&#40;&#41;&#58;New&#40; "ftp&#46;host&#46;com&#46;br", oInternet,"UserName","PassWord" &#41; // Microsoft FTP local aFiles if ! Empty&#40; oFTP&#58;hFTP &#41; aFiles = oFTP&#58;Directory&#40; "*&#46;*" &#41; AEval&#40; aFiles, &#123; | aFile | MsgInfo&#40; aFile&#91; 1 &#93; &#41; &#125; &#41; msginfo&#40;"conectou"&#41; else MsgAlert&#40; "oFTP&#58;hFTP is null" &#41; endif oInternet&#58;End&#40;&#41; MsgInfo&#40; "Done!" &#41; return nil //----------------------------------------------------------------------------// [/code:f341v15c] @braços Ale [/code]
CANNOT LOAD WinINet.dll !
Ale, Tu ejemplo funciona correctamente en XP con SP2. Acabamos de probarlo conectando con ftp.microsoft.com
CANNOT LOAD WinINet.dll !
[quote="Antonio Linares":1rt23wbg]Ale, Tu ejemplo funciona correctamente en XP con SP2. Acabamos de probarlo conectando con ftp.microsoft.com[/quote:1rt23wbg] La mañana buena Antonio, Sí, con la conexión Via Radio, funciona perfectamente. Pero, con la conexión ADSL, este error volviendo,: Cannot Load WinINet.Dll. ¿Porque? ¿Usted Probó con la conexión ADLS? ¿Cómo yo pruebo el tipo de conexión que yo estoy usando? Excuse para las tantas preguntas, pero, yo soy el borde de perder a un Cliente si esto si no resuelve. Gracias por la atención @braços Ale
CANNOT LOAD WinINet.dll !
Ale, Lo hemos probado con ADSL. Puedes probarlo en otro ordenador ?
CANNOT LOAD WinINet.dll !
Ale, cuidado con el firewall de windows. Asegúrate de que tu aplicacion está dentro de las excepciones, sino lo bloqueará y te dejará en nil la conexión. Carlos
CANSADO DE MS-OFFICE
Para los que estan cansados de MS Office y quieren una opcion libre y en las nubes, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- m --><a class="postlink" href="http://es.libreoffice.org/home/">http://es.libreoffice.org/home/</a><!-- m -->
CANSADO DE MS-OFFICE
Hace años que dejé de usar Office y solo uso Google docs. Hoy por hoy estoy super satisfecho con el cambio, y no dejaria de usarlo salvo que encontrase algo realmente mejor <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
CANTIDAD DE MESES Y AÑOS ENTRE 2 FECHAS - RESUELTO
Buen dia, asi como dice el titulo, necesito saber la cantidad de MESES existentes entre 2 fechas, revise algunas funciones de fechas y consegui una pero es la cantidad de dias transcurridos en un periodo o en un año desde 01/01, pero lo que en si busco es saber si tengo 2 fechas la cantidad de AÑOS y MESES entre las 2 fechas si existen años de diferencias, sino solo los MESES, no se si alguien ya tendra algo parecido o si hay funciones nativas que lo hagan, desde ya gracias por sus ayudas y sugerencias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
CANTIDAD DE MESES Y AÑOS ENTRE 2 FECHAS - RESUELTO
Bueno, me hice esta pequeña funcion y hasta lo que revise...hace lo que quiero, aca la dejo por si a alguien le es util o si la puede mejorar o le consigue algun detalle...esta probada a vuelo de pajaro, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [code=fw:w06f0zgo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />PROCEDURE calcula_meses_anos<span style="color: #000000;">&#40;</span> nFchIni, nFchFin, nVarAno, nVarMes, oGetAno, oGetMes <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nMeses := nAnos := <span style="color: #000000;">0</span><br /><br />* nFchIni -> FCH.INICIAL MENOR<br />* nFchFin -> FCH.<span style="color: #00C800;">FINAL</span> MAYOR<br />* nVarAno -> <span style="color: #0000ff;">VAR</span> Q GUARDA VALOR EN AÑOS<br />* nVarMes -> <span style="color: #0000ff;">VAR</span> Q GUARDA VALOR EN MESES<br />* oGetAno -> <span style="color: #0000ff;">GET</span> CONTENEDOR VALOR EN AÑOS<br />* oGetMes -> <span style="color: #0000ff;">GET</span> CONTENEDOR VALOR EN AÑOS<br /><br />&nbsp; &nbsp;nAnos := <span style="color: #0000ff;">Year</span><span style="color: #000000;">&#40;</span> nFchFin <span style="color: #000000;">&#41;</span> - <span style="color: #0000ff;">Year</span><span style="color: #000000;">&#40;</span> nFchIni <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*<br />SI MES 1RA FCHA ES MAYOR A MES 2DA FCHA LE RESTO A nAnos 1<br />Y LA CANTIDAD DE MESES SERIAN 12 MENOS MES 1RA FCHA + MES 2DA FCHA<br /><br />SI MES 1RA FCHA ES MENOR O IGUAL A MES 2DA FCHA, nAnos QUEDA IGUAL<br />Y MESES SERIAN MES 2DA FCHA - MES 1RA FCHA<br />*/</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> Month<span style="color: #000000;">&#40;</span> nFchIni <span style="color: #000000;">&#41;</span> > Month<span style="color: #000000;">&#40;</span> nFchFin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nAnos &nbsp;:= nAnos - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; nMeses := <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> - Month<span style="color: #000000;">&#40;</span> nFchIni <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + Month<span style="color: #000000;">&#40;</span> nFchFin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; nMeses := Month<span style="color: #000000;">&#40;</span> nFchFin <span style="color: #000000;">&#41;</span> - Month<span style="color: #000000;">&#40;</span> nFchIni <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #0000ff;">Year</span><span style="color: #000000;">&#40;</span> nFchIni <span style="color: #000000;">&#41;</span> == <span style="color: #0000ff;">Year</span><span style="color: #000000;">&#40;</span> nFchFin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nAnos &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; nMeses := Month<span style="color: #000000;">&#40;</span> nFchFin <span style="color: #000000;">&#41;</span> - Month<span style="color: #000000;">&#40;</span> nFchIni <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><span style="color: #B900B9;">//</span><br />&nbsp; &nbsp;nVarAno := nAnos<br />&nbsp; &nbsp;nVarMes := nMeses<br /><br />&nbsp; &nbsp;oGetAno:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oGetMes:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><br />&nbsp;</div>[/code:w06f0zgo]
CANTIDAD DE MESES Y AÑOS ENTRE 2 FECHAS - RESUELTO
José Luis un buen día. Tengo lo siguiente: [quote:2nsjfooe] # include "fivewin.ch" Function Main () Local dfecha1 := "" Local sEdad := "" Local sDias := "" SET DATE TO ANSI SET CENTURY ON dFecha1 := DATE () DEFINE DIALOG oDlg FROM 000, 000 TO 300, 260 PIXEL ; TITLE "Edad entre dos fechas" @ 005, 010 SAY "Fecha de Nacimiento" SIZE 070, 14 PIXEL OF oDlg COLOR nRGB ( 016, 016, 240 ), nRGB ( 240, 240, 240 ) @ 005, 080 DTPICKER odfecha1 VAR dfecha1 SIZE 050, 14 PIXEL OF oDlg COLOR nRGB ( 240, 240, 240 ), nRGB ( 240, 016, 016 ) ; MESSAGE "Digite la fecha de nacimiento" @ 020, 010 BUTTON "Calcule" SIZE 030, 014 PIXEL OF oDlg ; ACTION ( sEdad := DFechas ( dFecha1, "0" ), osEdad:Refresh (),; sDias := DFechas ( dFecha1, "1" ), osDias:Refresh () ) @ 040, 010 SAY osEdad VAR sEdad SIZE 200, 14 PIXEL OF oDlg COLOR nRGB ( 016, 016, 240 ), nRGB ( 240, 240, 240 ) @ 054, 010 SAY osDias VAR sDias SIZE 200, 14 PIXEL OF oDlg COLOR nRGB ( 016, 016, 240 ), nRGB ( 240, 240, 240 ) ACTIVATE DIALOG oDlg Return ( NIL ) * -------------------------------------------------------------------------------------------------------------- * * -------------------------------------------------------------------------------------------------------------- * Function DFechas ( DA, cViene ) && Calcular una Edad desde una fecha a la actualidad en años.meses.dias Local nDias, nAnos, nMeses Local Dias_ano := 365.28 Local Dias_Mes := 30 Default cViene := "0" && 0 := sin días calculados, 1 := con los días calculados nDias := DATE () - DA && Diferencia de Días entre DATE y una Fecha dada 2013.08.25 - 1957.03.04 := 20628 := 56 años, 5 meses, 3 semanas nAnos := INT ( nDias / Dias_ano ) && Cuantos años hay entre esos dias de diferencia 56 nDias1 := nDias - ( nAnos * Dias_ano ) && Días sobrantes 132 nMeses := INT ( nDias1 / Dias_Mes ) && Cuantos meses hay en esos días sobrantes nDias2 := nDias1 - ( nMeses * Dias_Mes ) && Días sobrantes Return ( IIF ( cViene = "1", TRANSFORM ( nDias, "999,999" ) + " días, ", "" ) + ; TRANSFORM ( nAnos, "9,999" ) + " años, " + ; TRANSFORM ( nMeses, "99" ) + " meses, " + ; TRANSFORM ( nDias2, "99" ) + " días" ) * -------------------------------------------------------------------------------------------------------------- * * * * * [/quote:2nsjfooe] a ver si te sirve un saludo
CANTIDAD DE MESES Y AÑOS ENTRE 2 FECHAS - RESUELTO
Ernesto, con la funcion que cree y publique resolvi lo que necesitaba, igual es bueno tener otras opciones, la diferencia con la tuya es que da hasta los dias, la mia solo los años y meses que es lo que necesitaba. igual probare la tuya haber si coincidimos en los valores resultanes, por lo menos en la de años y meses deberiamos coincidir, ya hice muchas pruebas manualmente y han coincididos con los resultados de mi funcion, Igual gracias por tu opcion...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
CAPTURAR CORDENADAS Y MOVER UN BOTTON DENTRO DE UN Dialogo
Buenos dias listeros, un saludito, Tenia algun tiempo de estar retirado de las canchas, pues regreso, Un pregunta que viene dando vueltas haber si es posible, Tengo un dlg con cuatro botones , se pueden mover a voluntad ! con el mouse lo botones y guardar su posicion en una variable, con esto deseo hacer un dlg con varios controles en este caso botones y con el mouse moverlos dentro del dlg y capturar las cordenadas en una variable y guardarlos, para luego cargar un dlg y crear los controles desde codigo y dales las cordenadas guardadas anterirmente. Sera posible !! Agradeceria desde ya ayuda que me pudieran guiar y dame un ejemplo simple.. Muchas gracias. Oscar Chacon Guapilescity, Costa Rica.
CAPTURAR CORDENADAS Y MOVER UN BOTTON DENTRO DE UN Dialogo
No sé que versión de FW manejas pero en samples tienes las fuentes de un ide y creo que ahí hay algo de lo que necestas. Saludos
CAPTURAR CORDENADAS Y MOVER UN BOTTON DENTRO DE UN Dialogo
Gracias por el tips, No tengo mucha exeriencia, en el asunto pero desearia algo un poco menos complidado porque no se cuales seran las funciones, agradesco desde ya cualquier ejmplo simple que puedan compartir. Muchas Gracias desde ya. Oscar Chacon Busmatic.
CAPTURAR CORDENADAS Y MOVER UN BOTTON DENTRO DE UN Dialogo
Oscar, Tienes un ejemplo en FWH/samples/design.prg. Te lo copio aqui: design.prg: [code=fw:18yb5tab]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Dialogs designer</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">static</span> oDlg, lDesign := .T.<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: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Dialog designer"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">300</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> WS_THICKFRAME, WS_SYSMENU <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">cVarName</span> = <span style="color: #ff0000;">"oDlg"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> &nbsp;PlaceControl<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDesign, DrawGrid<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span>, hDC, cPS, <span style="color: #000000;">8</span>, <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">CLICK</span> EditDialog<span style="color: #000000;">&#40;</span> nRow, nCol, oDlg <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> PlaceControl<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBtn1, oBtn2<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">232</span>, <span style="color: #000000;">144</span> <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> DESIGN <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;oBtn1:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oBtn1 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">232</span>, <span style="color: #000000;">264</span> <span style="color: #0000ff;">BUTTON</span> oBtn2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancel"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> DESIGN <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;oBtn2:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oBtn2 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateSay<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oSay<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Label:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">20</span> DESIGN<br /><br />&nbsp; &nbsp;oSay:<span style="color: #000000;">bGet</span> = <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;oSay:<span style="color: #000000;">lWantClick</span> = .T.<br />&nbsp; &nbsp;BringWindowToTop<span style="color: #000000;">&#40;</span> oSay:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;oSay:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oSay:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oSay <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oControl <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;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Bring to front"</span> <span style="color: #0000ff;">ACTION</span> BringWindowToTop<span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Text"</span> <span style="color: #0000ff;">ACTION</span> EditTitle<span style="color: #000000;">&#40;</span> oControl <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Position"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"nTop"</span> &nbsp; &nbsp;+ Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">nTop</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"nLeft"</span> &nbsp; + Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Move up"</span> &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">HideDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oControl:<span style="color: #000000;">nTop</span>--, oControl:<span style="color: #000000;">ShowDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Move down"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">HideDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oControl:<span style="color: #000000;">nTop</span>++, oControl:<span style="color: #000000;">ShowDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Size"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"nWidth"</span> &nbsp;+ Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"nHeight"</span> + Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenu <span style="color: #0000ff;">WINDOW</span> oControl <span style="color: #00C800;">AT</span> nRow, nCol<br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br />&nbsp; &nbsp;<br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateGet<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oGet, cVar := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cVar <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">136</span>, <span style="color: #000000;">24</span> DESIGN<br /><br />&nbsp; &nbsp;BringWindowToTop<span style="color: #000000;">&#40;</span> oGet:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;oGet:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oGet:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateButton<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBtn<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Button"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> DESIGN<br /><br />&nbsp; &nbsp;BringWindowToTop<span style="color: #000000;">&#40;</span> oBtn:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;oBtn:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oBtn <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBtn:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateCheckBox<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oChk, lValue := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">CHECKBOX</span> oChk <span style="color: #0000ff;">VAR</span> lValue <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Checkbox"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">15</span> DESIGN<br /><br />&nbsp; &nbsp;BringWindowToTop<span style="color: #000000;">&#40;</span> oChk:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;oChk:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oChk <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oChk:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateListBox<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oLbx, cItem<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">LISTBOX</span> oLbx <span style="color: #0000ff;">VAR</span> cItem <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"three"</span> <span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">120</span> DESIGN<br /><br />&nbsp; &nbsp;BringWindowToTop<span style="color: #000000;">&#40;</span> oLbx:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oLbx <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateComboBox<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oCbx, cItem<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> cItem <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"three"</span> <span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">120</span> DESIGN<br /><br />&nbsp; &nbsp;BringWindowToTop<span style="color: #000000;">&#40;</span> oCbx:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;oCbx:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oCbx <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCbx:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateGroup<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oGrp<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> GROUP oGrp <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Group"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">120</span> DESIGN<br /><br />&nbsp; &nbsp;oGrp:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oGrp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oGrp:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateRadio<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oRad, oRadMenu := TRadMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> RADIOITEM oRad <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Radio1"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">15</span> DESIGN RADIOMENU oRadMenu<br /><br />&nbsp; &nbsp;BringWindowToTop<span style="color: #000000;">&#40;</span> oRad:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;oRad:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | EditControl<span style="color: #000000;">&#40;</span> nRow, nCol, oRad <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oRad:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> EditDialog<span style="color: #000000;">&#40;</span> nRow, nCol, oDlg <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;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Title..."</span> <span style="color: #0000ff;">ACTION</span> EditTitle<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Add control"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Say"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> CreateSay<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Get"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> CreateGet<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Button"</span> &nbsp; <span style="color: #0000ff;">ACTION</span> CreateButton<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"CheckBox"</span> <span style="color: #0000ff;">ACTION</span> CreateCheckBox<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Radio"</span> &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> CreateRadio<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"ListBox"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> CreateListBox<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"ComboBox"</span> <span style="color: #0000ff;">ACTION</span> CreateComboBox<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"GroupBox"</span> <span style="color: #0000ff;">ACTION</span> CreateGroup<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"PRG code..."</span> <span style="color: #0000ff;">ACTION</span> MemoEdit<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">cGenPrg</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"PRG code"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"RC code..."</span> <span style="color: #0000ff;">ACTION</span> MemoEdit<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">SaveToRC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"RC code"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Position"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"nTop"</span> &nbsp;+ Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> WndTop<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"nLeft"</span> + Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> WndLeft<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Size"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"nWidth"</span> &nbsp;+ Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"nHeight"</span> + Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lDrag</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Test mode"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> AEval<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span>, <span style="color: #000000;">&#123;</span> | o | o:<span style="color: #000000;">lDrag</span> := .F. <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">HideDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lDesign := .F., oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Design mode"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> AEval<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span>, <span style="color: #000000;">&#123;</span> | o | o:<span style="color: #000000;">lDrag</span> := .T. <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ShowDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lDesign := .T., oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenu <span style="color: #0000ff;">WINDOW</span> oDlg <span style="color: #00C800;">AT</span> nRow, nCol <span style="color: #B900B9;">// SAVE</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> EditTitle<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oGet, cOldTitle := PadR<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">cCaption</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Dialog title"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">110</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">cCaption</span> = PadR<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">cCaption</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> oWnd:<span style="color: #000000;">cCaption</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">285</span>, <span style="color: #000000;">12</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> oWnd:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> oGet:<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;">&#41;</span> <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancel"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cOldTitle <span style="color: #000000;">&#41;</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><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp;<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span></div>[/code:18yb5tab]
CAPTURAR CORDENADAS Y MOVER UN BOTTON DENTRO DE UN Dialogo
Exelente , Como siempre muchas gracias por la ayuda, Oscar Chacon
CAPTURAR CORDENADAS Y MOVER UN BOTTON DENTRO DE UN Dialogo
Estimados, Gracias como siempre ayuda invaluable. Con respecto a el mismo topico, mi pregunta es la siguinte Ya tengo los controles y sus cordenadas pero se podra hacer lo siguiente, Con el click derecho mueves el control y lo posiciconas dentro de la dlg donde yo quiero , perfecto , deseo ejecutar una accion cuando sueltas el control que tenias precionado, como podria hacerlo ? Muchas Gracias y desde ya.. GuapilesCity
CAPTURAR CORDENADAS Y MOVER UN BOTTON DENTRO DE UN Dialogo
Antonio, is there an error because I create a get with size 12 and then the source became 8 @ 1, 2 GET oGet VAR cVar OF oDlg SIZE 130, 12 DESIGN Prg source @ 16, 56 GET oGet SIZE 128, 8 PIXEL OF oDlg
CAPTURAR CORDENADAS Y MOVER UN BOTTON DENTRO DE UN Dialogo
Agradezco desde ya la ayuda BUENAS , por aqui de nuevo Todo muy bien hasta que llegamos a la parte donde mueves el control creado , con el mouse. El ultimo control creado mantiene sus coordenadas en el dialog pero pulsas cualquier otro control ya creado estos toman las cordenadas de ultimo control que creaste, Sera posible si le damos un doble click encima de cada control creado podamos actulizar las cordendas propias de cada uno ! Estoy tratando de hacer en un dlg los diferentes arqueotipos de los asientos en un autobus , como hay tanta cantidad estilos y modelos de autobuses hay que crearlos por eso es importante poder esta moviendo los controles que en este caso serias botones para dar forma un arqueotipo . Gracias cualquier ayuda agradeceria. Guapilescity Oscar Chacon
CAPTURAR LAMADA DE CENTRAL TELEFONICA
Buenos dias estimados amigos del foro En el foro encontre estas funciones que estoy tratando de adecuarlas a mis necesidades, pero tengo 2 problemas. 1.- cuando ligo el programa con esta funcion SetCommState( @cDcb ) ) me da un error de Windows encontro un problema y debe cerrar 2.- Comentada esta funcion corre el programa , la primera vez captura la llamada y tomo de la cadena emitida el valor correspondiente al numero telefonico, para al volver a intertar tomar la siguiente llamada ya no aparece nada. por favor si alguien me puede ayudar adjunto el codigo Utilizo xHarbour 10.4 y Fwh de abril del 2010 Gracias de antemano #include "fiveWin.ch" function fReadPort local cDcb, lError, nError local numero := space(8) cErrCode := space( 15 ) if !( gnCom := OpenComm( 'COM3', 1024, 256 ) ) == 0 *IF ! SetCommState( gnCom, cDcb ) * nError = GetCommError( gnCom) * MsgInfo( "Error al setear: " + Str( nError ) ) * RETURN 0 * ELSE * MsgRun("Puerto Seteado") *-ENDIF if !(BuildCommDcb( "COM3:9600,E,8,1", @cDcb )) //.and. SetCommState( @cDcb ) ) nError := GetCommError( gnComm, @cErrCode ) MsgAlert( "Error No se pudo abrir Puerto "+ str( nError ) + CRLF + cErrCode) RETURN( .f. ) endif endif *?? 'pase open' cBlock=space(702) *nTry=0 *?? 'antes de do' do while .T. do while .T. //nTry<10 // can remove this nTry if not applicable if ( nBytes := readComm( gnComm, @cBlock) ) > 0 msgwait('Llamada a ingresado..','',2) ?? cblock exit else msgwait('Esperando llamada.... ','',1) endif enddo numero := substr(cBlock,47,10) *?? numero *Lector() //*/* Lueog lo procesamos. *graba_llamada(numero) *numero := space(8) if FlushComm( gnComm, 0 ) != 0 nError = GetCommError( gnComm ) Msgwait( 'Error Limpiando el COM Error:' ,'',.01 ) endif if ! CloseComm( gnComm ) nError = GetCommError( gnComm ) Msgwait( 'No Pude cerrar el com Error: ' ,'',.01 ) endif cBlock=space(702) if MsgYesno('Desea salir','Atencion') return nil endif enddo RETURN( .t. ) function graba_llamada(numero) local codbus DBSELECTAREA("tregis") ordSetfocus("iregis") *dbgotop() if regismas(codbus:=numero) ponlock() trtelefono := numero trfecha := date() quilock() endif return nil
CAPTURAR LAMADA DE CENTRAL TELEFONICA
Hola buenas tardes Una solución es la siguiente al principio del programa abres el puerto utilizando las mismas funciones con sus respectivas validaciones como lo estas haciendo Function Main nCommB := OpenComm( ) BuildCommDcb() SetCommState( ) . . llamado de Funciones . closecomm() Primero que no estas abriendo y cerrando el puerto cada vez que estas registrando una llamada y segundo te evitas el error del SetCommState( ) dejas la misma función sin la parte de abrir y cerrar los puerto function l fReadPort cBlock=space(702) *nTry=0 *?? 'antes de do' do while .T. do while .T. //nTry<10 // can remove this nTry if not applicable if ( nBytes := readComm( gnComm, @cBlock) ) > 0 msgwait('Llamada a ingresado..','',2) ?? cblock exit else msgwait('Esperando llamada.... ','',1) endif enddo numero := substr(cBlock,47,10) *?? numero *Lector() //*/* Lueog lo procesamos. *graba_llamada(numero) *numero := space(8) if FlushComm( gnComm, 0 ) != 0 nError = GetCommError( gnComm ) Msgwait( 'Error Limpiando el COM Error:' ,'',.01 ) endif cBlock=space(702) if MsgYesno('Desea salir','Atencion') return nil endif enddo RETURN( .t. ) le quitas el closecomm() que debe ir es cuando vas a cerrar por completo el programa recomendación puedes usar el FlushComm( gnComm, 1 ) para que limpie la cola de recepción. Eso sirve bien para balanzas, abrir gavetas, llamadas todo lo relacionado con puerto Ing. Luis Duque - Venezuela
CAPTURAR LAMADA DE CENTRAL TELEFONICA
Luis Muchas gracias voy a probar y comunico los resultados
CAPTURAR VK_LEFT / _RIGHT
Hola, alguien sabe como puedo capturar, sin redefinir el bkeydown del xbrowse, las teclas flecha der y flecha izq ? Gracias. Saludos. Ariel.
CAPTURAR VK_LEFT / _RIGHT
if GetKeyState( VK_LEFT ) .. else GetAsyncKeyState( VK_RIGHT ) .. endif no sirve?
CAPTURAR VK_LEFT / _RIGHT
Nop, no lo reconoce... la unica forma que lo pude solucionar fue sobreescribiendo el bkeydown Function ModifyClass() OVERRIDE METHOD KeyDown IN CLASS TXBrowse WITH METHOD xBrwKeyDown EXTEND CLASS TXBrowse WITH DATA bMyKeyDown Return NIL salu2.
CAPTURAR VK_LEFT / _RIGHT
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=27066&p=150398&hilit=CAPTURAR+VK_LEFT#p150398">viewtopic.php?f=6&t=27066&p=150398&hilit=CAPTURAR+VK_LEFT#p150398</a><!-- l -->
CARD_COLUMN (example is called SUBMARINE )
From FB - modharbour.club dear friends, would you be so kind as to give an example of how to fill the bootstrap 4 -> card-columns from w3 school from database? I would need 4 columns: image, title, text and button. it would be great if you could show me how this is done...kind regards and thanks in advance ruth [code=fw:38mlmuzd]<div class="fw" id="{CB}" style="font-family: monospace;"><!DOCTYPE html><br /><html lang=<span style="color: #ff0000;">"en"</span>><br /><head><br />  <title>Bootstrap Example</title><br />  <meta charset=<span style="color: #ff0000;">"utf-8"</span>><br />  <meta <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"viewport"</span> content=<span style="color: #ff0000;">"width=device-width, initial-scale=1"</span>><br />  <link rel=<span style="color: #ff0000;">"stylesheet"</span> href=<span style="color: #ff0000;">"https://maxcdn.bootstrapcdn.com/.../css/bootstrap.min.css"</span>><br />  <script src=<span style="color: #ff0000;">"https://ajax.googleapis.com/.../jquery/3.5.1/jquery.min.js"</span>></script><br />  <script src=<span style="color: #ff0000;">"https://cdnjs.cloudflare.com/.../1.16.0/umd/popper.min.js"</span>></script><br />  <script src=<span style="color: #ff0000;">"https://maxcdn.bootstrapcdn.com/.../js/bootstrap.min.js"</span>></script><br /></head><br /><body><br /><div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"container"</span>><br /><br /><br /><br /><br /><div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-columns"</span>><br />  <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card"</span>><br />    <img <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-img-top"</span> src=<span style="color: #ff0000;">"img_avatar1.png"</span> alt=<span style="color: #ff0000;">"Card image"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"width:100%"</span>><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-body"</span>><br />      <h4 <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-title"</span>>John Doe</h4><br />      <p <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-text"</span>>Some example <span style="color: #0000ff;">text</span> some example <span style="color: #0000ff;">text</span>. John Doe is an architect and engineer</p><br />      <a href=<span style="color: #ff0000;">"#"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary"</span>>See Profile</a><br />    </div><br />  </div><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card"</span>><br />    <img <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-img-top"</span> src=<span style="color: #ff0000;">"img_avatar1.png"</span> alt=<span style="color: #ff0000;">"Card image"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"width:100%"</span>><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-body"</span>><br />      <h4 <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-title"</span>>John Doe</h4><br />      <p <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-text"</span>>Some example <span style="color: #0000ff;">text</span> some example <span style="color: #0000ff;">text</span>. John Doe is an architect and engineer</p><br />      <a href=<span style="color: #ff0000;">"#"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary"</span>>See Profile</a><br />    </div><br />  </div><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card"</span>><br />    <img <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-img-top"</span> src=<span style="color: #ff0000;">"img_avatar1.png"</span> alt=<span style="color: #ff0000;">"Card image"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"width:100%"</span>><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-body"</span>><br />      <h4 <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-title"</span>>John Doe</h4><br />      <p <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-text"</span>>Some example <span style="color: #0000ff;">text</span> some example <span style="color: #0000ff;">text</span>. John Doe is an architect and engineer</p><br />      <a href=<span style="color: #ff0000;">"#"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary"</span>>See Profile</a><br />    </div><br />  </div><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card"</span>><br />    <img <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-img-top"</span> src=<span style="color: #ff0000;">"img_avatar1.png"</span> alt=<span style="color: #ff0000;">"Card image"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"width:100%"</span>><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-body"</span>><br />      <h4 <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-title"</span>>John Doe</h4><br />      <p <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-text"</span>>Some example <span style="color: #0000ff;">text</span> some example <span style="color: #0000ff;">text</span>. John Doe is an architect and engineer</p><br />      <a href=<span style="color: #ff0000;">"#"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary"</span>>See Profile</a><br />    </div><br />  </div><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card"</span>><br />    <img <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-img-top"</span> src=<span style="color: #ff0000;">"img_avatar1.png"</span> alt=<span style="color: #ff0000;">"Card image"</span> <span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"width:100%"</span>><br />    <div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-body"</span>><br />      <h4 <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-title"</span>>John Doe</h4><br />      <p <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"card-text"</span>>Some example <span style="color: #0000ff;">text</span> some example <span style="color: #0000ff;">text</span>. John Doe is an architect and engineer</p><br />      <a href=<span style="color: #ff0000;">"#"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn btn-primary"</span>>See Profile</a><br />    </div><br />  </div><br />  </div><br /> </div><br /></body><br /></html></div>[/code:38mlmuzd]
CARD_COLUMN (example is called SUBMARINE )
Ruth, you can test the program here: [url:2x1arzdh]https&#58;//www&#46;modharbour&#46;club/cardcolumns/index&#46;prg[/url:2x1arzdh] Download link for the program: [url:2x1arzdh]https&#58;//www&#46;modharbour&#46;club/cardcolumns/cardcolumns&#46;zip[/url:2x1arzdh]
CARD_COLUMN (example is called SUBMARINE )
Live Demo: [url:tez81lsd]https&#58;//www&#46;modharbour&#46;club/cardcolumns/index&#46;prg[/url:tez81lsd] DOWNLOAD: [url:tez81lsd]https&#58;//www&#46;modharbour&#46;club/cardcolumns/submarine&#46;zip[/url:tez81lsd] [img:tez81lsd]https&#58;//mybergland&#46;com/fwforum/submarine2&#46;jpg[/img:tez81lsd]
CARD_COLUMN (example is called SUBMARINE )
[b:g5prurx4]Project name "SUBMARINE"[/b:g5prurx4] template for a web page data comes from a DBF file bootstrap 4 -> card-columns from w3 school added a bs4 w3school slider snippet Live-Demo <!-- m --><a class="postlink" href="https://www.modharbour.club/submarine/index.prg">https://www.modharbour.club/submarine/index.prg</a><!-- m --> Download <!-- m --><a class="postlink" href="https://www.modharbour.club/submarine/submarine.zip">https://www.modharbour.club/submarine/submarine.zip</a><!-- m -->
CARGAR ARCHIVOS A DBF DESDE DISCO DURO
Hola buenas tardes esperando que se encuentren bien les envio cordial saludos. Despues de tanto tiempo que no entraba al foro y deje de programar un buen de meses,ahora me solicitan un detalle. 1.- Me piden que desarrolle un calendario como si fuera citas medicas. Pero en ese caso es un calendario para los contadores o auxiliares contables que lleven su control o sepan que fechas haran presentacion de impuestos o sea declaracion mensual de impuestos a una fecha limite segun su RFC de la empresa y que sea automatico ya que mes a mes es la misma de fechas a presentar segun su RFC. Y que surja como si fuera alarma o AVISO avisando que faltan equis dias para la declaracion de ISR despues del cierre del mes contable. Las declaraciones a presentar son estas: ... En orden: ... [b:1dqojy5l]ISR e IVA ->Fecha limite a presentar Calendarizado DIOT -> Fecha limite a presentar Calendarizado 3% sobre nomina ->Fecha limite a presentar Calendarizado 3% hospedaje ->Fecha limite a presentar Calendarizado Cuota de IMSS e Infonavit ->Fecha limite a presentar Calendarizado [/b:1dqojy5l] Existe alguna clase o algo parecido que hayan desarrollado con esas caracteristicas? Algun ejemplo estandarizado para ese proposito que pretendo desarrollar ya que se me viene a la cabeza pero aun asi me falta mas por aclarar mis dudas respecto a crear ese tipo de calendario. 2.- Los contadores y auxiliares contables desean llevar un mejor control de sus archivos en un sistema automatizado sin necesidad de estar buscando o copiando sus archivos descargados ya sea .PDF de IDSE,SIPARE, etc etc etc . entre las carpetas de los archivos compartidos en RED del servidor... Ejemplo en la actualidad los contadores tienen que acceder a las carpetas: ..\\servidor\Archivos\ISLA HOMES\Ene2016\Nominas ->archivos .pdf ISLA HOMES\Ene2017\Nominas ->archivos .pdf ..\\\servidor\Fiscal\ISLA HOMES\ENE2016\3%SOBRE NOMINA\ ->Archivos .doc ó .PDF ETC, ETC, ETC,.... Y ahora lo que necesitan los contadores o auxiliares contables es tener un sistema desarrollado con esas caracteristicas, o sea almacenar toda esa informacion cargando al sistema todos los archivos "ESPECIFICAMENTE ARCHIVOS DE DECLARACION DE IMPUESTOS" con el ejemplo que les puse arriba mencionado al sistema. Como puedo cargar esos archivos al sistema que pretendo desarrollar y que a su vez el usuario con solo darle click accese a la informacion ya sea PDF,excel,documentos de word etc etc etc sin necesidad de estar buscando entre todas las carpetas del servidor ya que el sistema nismo ya lo tiene ubicado la ruta de los archivos del servidor..! Y otro punto como puedo hacer que en el mismo sistema el usuario copie el archivo o pegue equis archivo al sistema de la ruta ubicada sin necesidad de estar buscando en la red a copiar el archivo que descargara de internet, se puede hacer eso? Y por ultimo el sistema se puede cargar los archivos automaticamente o a su vez en forma manual segun el usuario desea hacer en el sistema. Por favor necesito sugerencias, ejemplos ideas y los campos a crear . De antemano les agradecere mucho su ayuda de todos ustedes en este foro que siempre ayudan y comparten sus experiencias. Atte: Adriano Casanova C. <!-- e --><a href="mailto:acc69@hotmail.com">acc69@hotmail.com</a><!-- e -->
CARGAR ARCHIVOS A DBF DESDE DISCO DURO
Saludos ACC, para lo del calendario...lo mas recomendado es la clase TCalex de Daniel Gil que esta en los repositorios, coloca ese nombre en el buscador y tendras mucha informacion...en relacion a los demas temas, hay que analizar un poco mas la informacion de lo que requieres, ya que uno dice las cosas de forma casi resumen, pero al desarrollar sale cada detallito y periquito que tomar en cuenta. El otro punto es cuanto tiempo dispones para el desarrollo...y que tipo de almacenamiento de la informacion piensas usar.?...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
CARGAR ARCHIVOS A DBF DESDE DISCO DURO
[quote="joseluisysturiz":4s1fx82j]Saludos ACC, para lo del calendario...lo mas recomendado es la clase TCalex de Daniel Gil que esta en los repositorios, coloca ese nombre en el buscador y tendras mucha informacion...en relacion a los demas temas, hay que analizar un poco mas la informacion de lo que requieres, ya que uno dice las cosas de forma casi resumen, pero al desarrollar sale cada detallito y periquito que tomar en cuenta. El otro punto es cuanto tiempo dispones para el desarrollo...y que tipo de almacenamiento de la informacion piensas usar.?...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->[/quote:4s1fx82j] Hola Ing. Luis gracias por responder . En el punto numero 2: Pues algo sencillo que se cargue en forma manual los archivos de documentos,excel,que se encuentren en la red del servidor y el tipo de almacenamiento es dbf por el momento es algo sencillo, pero no encuentro la luz por donde empezar solo requiero como cargar esos archivos y que el usuario con solo darle click en los archivos a seleccionar dentro del sistema abra cada documento y tengo en mente hacerlo desde txbrowse Algo asi: Nombre de la carpeta Ruta del archivo ------------------------------------------------------ Mas o menos con ese ejemplo dentro del txbrowse o alguna idea mas o sugerencias. Seria como otro ejemplo cargar archivos de fotos .bmp ,png, etc ?? Pero como se podria hacer en forma automacia con solo darle click con F5 y actualice archivos descargados o copiados a sus respectivos carpetas de origen En el caso del calendario ya tengo en mente solo necesito la clase que le solicite al ing. Cristobal. Gracias Ing. Luis. Saludos
CARGAR ARCHIVOS A DBF DESDE DISCO DURO
[quote="ACC69":2em2v6lx][quote="joseluisysturiz":2em2v6lx]Saludos ACC, para lo del calendario...lo mas recomendado es la clase TCalex de Daniel Gil que esta en los repositorios, coloca ese nombre en el buscador y tendras mucha informacion...en relacion a los demas temas, hay que analizar un poco mas la informacion de lo que requieres, ya que uno dice las cosas de forma casi resumen, pero al desarrollar sale cada detallito y periquito que tomar en cuenta. El otro punto es cuanto tiempo dispones para el desarrollo...y que tipo de almacenamiento de la informacion piensas usar.?...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->[/quote:2em2v6lx] Hola Ing. Luis gracias por responder . En el punto numero 2: Pues algo sencillo que se cargue en forma manual los archivos de documentos,excel,que se encuentren en la red del servidor y el tipo de almacenamiento es dbf por el momento es algo sencillo, pero no encuentro la luz por donde empezar solo requiero como cargar esos archivos y que el usuario con solo darle click en los archivos a seleccionar dentro del sistema abra cada documento y tengo en mente hacerlo desde txbrowse Algo asi: Nombre de la carpeta Ruta del archivo ------------------------------------------------------ Mas o menos con ese ejemplo dentro del txbrowse o alguna idea mas o sugerencias. Seria como otro ejemplo cargar archivos de fotos .bmp ,png, etc ?? Pero como se podria hacer en forma automacia con solo darle click con F5 y actualice archivos descargados o copiados a sus respectivos carpetas de origen En el caso del calendario ya tengo en mente solo necesito la clase que le solicite al ing. Cristobal. Gracias Ing. Luis. Saludos[/quote:2em2v6lx] Saludos, en el tema de subir archivo te recomendaria usar DATABASE(mysql, mariadb, etc) en vez de DBF, ya que puedes cargarlo en un campo blog(memo), asi como se cargan las imagenes, asi para donde se mueva la TABLA contenedora de los datos, estaran los documentos, sobre ese tema hay aca en el foro, la colega AIDA hizo algo parecido pero con PDF, busca aca en el foro y encontraras informacion relacionada. En relacion a lo del calendario, la clase que le pedistes a Navarro creo es la misma que te sugeri...cualquier ayuda, todos en el foro estamos a la orden...creo para eso somos un foro...DAR DE IGUAL FORMA LO QUE RECIBAIS..esto lo dijo San XBase, jejeje, saludos, gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- m --><a class="postlink" href="https://phenobarbital.wordpress.com/2007/08/03/cargar-datos-en-mysql-con-load-data-infile/">https://phenobarbital.wordpress.com/200 ... ta-infile/</a><!-- m -->
CARGAR ARCHIVOS A DBF DESDE DISCO DURO
[quote="joseluisysturiz":1d4q1ep8][quote="ACC69":1d4q1ep8][quote="joseluisysturiz":1d4q1ep8]Saludos ACC, para lo del calendario...lo mas recomendado es la clase TCalex de Daniel Gil que esta en los repositorios, coloca ese nombre en el buscador y tendras mucha informacion...en relacion a los demas temas, hay que analizar un poco mas la informacion de lo que requieres, ya que uno dice las cosas de forma casi resumen, pero al desarrollar sale cada detallito y periquito que tomar en cuenta. El otro punto es cuanto tiempo dispones para el desarrollo...y que tipo de almacenamiento de la informacion piensas usar.?...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->[/quote:1d4q1ep8] Hola Ing. Luis gracias por responder . En el punto numero 2: Pues algo sencillo que se cargue en forma manual los archivos de documentos,excel,que se encuentren en la red del servidor y el tipo de almacenamiento es dbf por el momento es algo sencillo, pero no encuentro la luz por donde empezar solo requiero como cargar esos archivos y que el usuario con solo darle click en los archivos a seleccionar dentro del sistema abra cada documento y tengo en mente hacerlo desde txbrowse Algo asi: Nombre de la carpeta Ruta del archivo ------------------------------------------------------ Mas o menos con ese ejemplo dentro del txbrowse o alguna idea mas o sugerencias. Seria como otro ejemplo cargar archivos de fotos .bmp ,png, etc ?? Pero como se podria hacer en forma automacia con solo darle click con F5 y actualice archivos descargados o copiados a sus respectivos carpetas de origen En el caso del calendario ya tengo en mente solo necesito la clase que le solicite al ing. Cristobal. Gracias Ing. Luis. Saludos[/quote:1d4q1ep8] Saludos, en el tema de subir archivo te recomendaria usar DATABASE(mysql, mariadb, etc) en vez de DBF, ya que puedes cargarlo en un campo blog(memo), asi como se cargan las imagenes, asi para donde se mueva la TABLA contenedora de los datos, estaran los documentos, sobre ese tema hay aca en el foro, la colega AIDA hizo algo parecido pero con PDF, busca aca en el foro y encontraras informacion relacionada. En relacion a lo del calendario, la clase que le pedistes a Navarro creo es la misma que te sugeri...cualquier ayuda, todos en el foro estamos a la orden...creo para eso somos un foro...DAR DE IGUAL FORMA LO QUE RECIBAIS..esto lo dijo San XBase, jejeje, saludos, gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- m --><a class="postlink" href="https://phenobarbital.wordpress.com/2007/08/03/cargar-datos-en-mysql-con-load-data-infile/">https://phenobarbital.wordpress.com/200 ... ta-infile/</a><!-- m -->[/quote:1d4q1ep8] Buenos dias Ing. Jose Luis gracias por esta sugerencia no se me habia pasado por la mente, pero ya tengo buen avance ya que les urge este sencillo sistema pero tomare en cuenta su sugerencia, pero me surgen otras dudas pero ahi lo voy resolviendo paso a paso. Cual es el metodo para que me lea desde disco duro a mi sistema ejecutable [b:1d4q1ep8]fecha y hora de la creacion,tipo de archivo y tamaño del equis archivo[/b:1d4q1ep8]. Alguien me pueda apoyar??? En el disco duro de la unidad se lee asi...que metodo puedo cargar a mi sistema lo que mencione anteriormente. [b:1d4q1ep8]Nombre Fecha de modificacion Tipo Tamaño -------------------------------------------------------------------------------------------------------[/b:1d4q1ep8] Esperando contar con su amable apoyo y respuesta favorable,quedo de ustedes. Saludos y buen dia. Atte: Adriano C. C.
CARGAR ARCHIVOS A DBF DESDE DISCO DURO
Hola buenos dias alguien que me pueda ayudar que metodo debo cargar a mi sistema de lo mencionado anteriormente?? o no me di a entender lo que requiero hacer. Porfas Gracias. Atte: Adriano C. C.
CARGAR ARCHIVOS A DBF DESDE DISCO DURO
Si lo que quieres es la información sobre un fichero concreto, podrías utilizar [code=fw:317mxtve]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">XBrowse</span><span style="color: #000000;">&#40;</span> DIRECTORY<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"myfile.ext"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:317mxtve]
CARGAR ARCHIVOS A DBF DESDE DISCO DURO
[quote="cnavarro":i89ktsdx]Si lo que quieres es la información sobre un fichero concreto, podrías utilizar [code=fw:i89ktsdx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">XBrowse</span><span style="color: #000000;">&#40;</span> DIRECTORY<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"myfile.ext"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:i89ktsdx][/quote:i89ktsdx] Gracias por responder Ing. Cristobal, hago las pruebas y comento respecto a la informacion recabada de disco duro de los ficheros de documentos. Saludos y buen dia.! Atte: Adriano C. C.
CARPETA CON IMAGENES BMP PARA COMIDAS Y BEBIDAS DE RESTAURAN
Hola amigos, alguno de ustedes sabe donde puedo encontrar imagenes bmp de COMIDAS, BEBIDAS, TRAGOS, ETC. Para restaurantes, quiero incorporar imagenes a los botones de un punto de venta. Gracias, Juan Fco. Vásquez M. Rep. Dom. Santiago
CARPETA CON IMAGENES BMP PARA COMIDAS Y BEBIDAS DE RESTAURAN
Aca hay muchas gratuitas y en las utilidades del foro, hay otros link de imagenes e iconos gratis, en este que te pongo puedes colocar el tema y te traera imagenes relacionadas, espero te sirva, igual en google puedes colocar cosas relacionadas con restaurant en la pestaña imagenes, saludos.. <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- m --><a class="postlink" href="http://es.all-free-download.com/">http://es.all-free-download.com/</a><!-- m --> uno directo <!-- m --><a class="postlink" href="http://es.all-free-download.com/vectores-gratis/vector-icono/restaurante_de_cocina_vector_icono_02_152654.html">http://es.all-free-download.com/vectore ... 52654.html</a><!-- m -->
CARPETA CON IMAGENES BMP PARA COMIDAS Y BEBIDAS DE RESTAURAN
Gracias Hermano, bendiciones Saludos, Juan
CASE Studio 2 para diseño y modelado de base de datos
Hola a todos: Hace un rato estaba navegando en la pagina de ADS, y me encontre con esta excelente herramienta para diseño de bases de datos SQL: [url:2erdk7lq]http&#58;//www&#46;casestudio&#46;com[/url:2erdk7lq] Para los que no sepan que es CASE, son las iniciales de Computer Aided Software Engineering, o Ingenieria de Software Auxiliada por Computadora. Lo que me gusto muchísimo es que soporta diseño de practicametne cualquier producto SQL, y no SQL, porque soporta diseño para Clipper 5.x, Advantage Database Server y los favoritos SQL de los programadores (x)Harbour: MySQL, Access, FireBird y SQL Server. Genera diagramas entidad relacion, relaciones multiples, integridad referencial, crea las tablas y todo lo necesario para un buen diseño de bases de datos.
CASE Studio 2 para diseño y modelado de base de datos
Le daremos un vistazo con mucho gusto
CASE Studio 2 para diseño y modelado de base de datos
Rene: Has probado Dezign for databases - <!-- m --><a class="postlink" href="http://www.datanamic.com/dezign/">http://www.datanamic.com/dezign/</a><!-- m --> ? Que mejoras trae sobre él ? Saludos,
CASE Studio 2 para diseño y modelado de base de datos
Hola Rene, Esto es un asunto que me interesa muchisimo. Por lo tanto, me gustaria de saber si alguno de ustedes usa el CASE Studio 2 o alguna otra herramienta CASE pues deseo empezar a usar algo como el CASE Studio 2 y no sé por donde empezar. Saludos, Kleyber Derick
CASIO PrinterLib.lib
Hello I have been asked to get my WindowsMobile application running on a CASIO IT-9000. The program runs OK and done the work to cope with a much higher screen resolution. However the main reason for using this new hardware is it has a built in printer. We are used to using the COM port to send commands to the printer via BlueTooth, but this device has its own Library PrinterLib.lib which I am struggling to link into our exe. I have been told to use the following library from the CASIO SDK C:\Program Files (x86)\CASIO\MBSys\LIB\ARMV4I\PrinterLib.lib but I get the following error. NMAKE : fatal error U1077: 'p:\vce\bin\link' : return code '0x458' Stop. PrinterLib.lib(PrinterLib.dll) : fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM' It looks like the LIB has not been compiled for ARM but I have contacted CASIO and they sent me a PrinterLib.lib from one of there developers working on this device but of course he is using Visual Studio which is the supported development platform. Any suggestions? Has anyone else got this device printing using FiveWin for Pocket PC? Regards Chris Millard
CASIO PrinterLib.lib
Hello, I have an APP on Casio IT 3000 with a built in printer, printing OK. Try add this link option: /MACHINE:THUMB
CAdena JSON
Estimados amigo, obtengo esta cadena JSON pero no puedo procesar la informacion que continua a "licencia", gracias por vuestro apoyo {"status":200,"message":"Exito","data":{"numero_documento":"23869035","grupo_sanguineo":"O+","donacion_organos":"SI","licencia":[{"numero":"Z23869035","categoria":"A I","fecha_vencimiento":"09/03/2031","estado":"VIGENTE","restricciones":"CON LENTES"}]}}
CAdena JSON
Hola Willi, prueba de esta manera: [code=fw:1hsiw33u]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cJs := <span style="color: #ff0000;">'{"status":200,"message":"Exito","data":{"numero_documento":"23869035","grupo_sanguineo":"O+","donacion_organos":"SI","licencia":[{"numero":"Z23869035","categoria":"A I","fecha_vencimiento":"09/03/2031","estado":"VIGENTE","restricciones":"CON LENTES"}]}}'</span><br />hJs := <span style="color: #ff0000;">""</span><br />hb_jsonDecode<span style="color: #000000;">&#40;</span>cJs,@hJs<span style="color: #000000;">&#41;</span><br />hDat := hJs<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"data"</span><span style="color: #000000;">&#93;</span><br />aLic := hDat<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"licencia"</span><span style="color: #000000;">&#93;</span><br />hLic := aLic<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />? hLic<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"numero"</span><span style="color: #000000;">&#93;</span><br /> </div>[/code:1hsiw33u] Saludos cordiales. Carlos.
CAdena JSON
Gracias Carlos, funcionó perfectamente
CAlculo RFC Mexico
Hola, Alguien tiene alguna funcion para calcular el RFC ? Gracias Rene
CAlculo RFC Mexico
Hecha un vistazo a este link, talvez sea lo que buscas... [url:18ihqj2v]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=1380&p=5750&hilit=rfc#p5750[/url:18ihqj2v]
CBS_DROPDOWN select all empty text
Hello, I did this simple test: [code=fw:3uk9ydan]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <fivewin.ch><br /><br />proc main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oWnd, oCombo, cValue<span style="color: #B900B9;">// := Space(100)</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   @ <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">COMBOBOX</span> oCombo <span style="color: #0000ff;">VAR</span> cValue <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN<br />   <span style="color: #B900B9;">//oCombo:oGet:SetSel() //this does nothing</span><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd</div>[/code:3uk9ydan] My problem is that when the application starts, the text inside the combobox is all selected: [img:3uk9ydan]https&#58;//i&#46;imgur&#46;com/HnhXBhL&#46;png[/img:3uk9ydan] I see there is no way to avoid the TGet creation on CBS_DROPDOWN, personally I would prefer the TEdit control
CBS_DROPDOWN select all empty text
hi, [quote="AntoninoP":c7urrw7q] My problem is that when the application starts, the text inside the combobox is all selected: [/quote:c7urrw7q] i see ... empty <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> i'm still a FiveWin Newbie so i not know Syntax. under Xbase++ i "set" most pre-select 1st Element from DropDown List into EDIT Part of ComboBox [code=fw:c7urrw7q]<div class="fw" id="{CB}" style="font-family: monospace;">   oCombo:<span style="color: #000000;">setData</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span></div>[/code:c7urrw7q]
CBS_DROPDOWN select all empty text
[quote="Jimmy":2dtqju47]hi, [quote="AntoninoP":2dtqju47] My problem is that when the application starts, the text inside the combobox is all selected: [/quote:2dtqju47] i see ... empty[/quote:2dtqju47] my problem is the blue rectangle... with [code=fw:2dtqju47]<div class="fw" id="{CB}" style="font-family: monospace;"><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>oCombo:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">SetSel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:2dtqju47] I obtain a semi-acceptable result
CBS_DROPDOWN select all empty text
[quote="AntoninoP":1ptsf8ks] my problem is the blue rectangle...[/quote:1ptsf8ks] sorry i don't understand what your Problem with Frame is <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> do you want "no Frame" or "small Frame with long Text" or other Color of Frame ... [quote="AntoninoP":1ptsf8ks] with [code=fw:1ptsf8ks]<div class="fw" id="{CB}" style="font-family: monospace;"><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>oCombo:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">SetSel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:1ptsf8ks] I obtain a semi-acceptable result[/quote:1ptsf8ks] ok so it is not empty any more a 1st ist select only, or <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
CBS_DROPDOWN select all empty text
Here my final code... [code=fw:25krppaw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <fivewin.ch><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Constant.ch"</span><br /><br />#xcommand @ <nRow>, <nCol> MYCOMBOBOX <span style="color: #000000;">&#91;</span> <oCbx> <span style="color: #0000ff;">VAR</span> <span style="color: #000000;">&#93;</span> <cVar> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <it: <span style="color: #0000ff;">PROMPTS</span>, ITEMS> <aItems> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">SIZE</span> <nWidth>, <nHeight> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <dlg:<span style="color: #0000ff;">OF</span>,<span style="color: #0000ff;">WINDOW</span>,DIALOG> <oWnd> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <help:<span style="color: #000000;">HELPID</span>, <span style="color: #0000ff;">HELP</span> ID> <nHelpId> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <uChange> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">VALID</span> <uValid> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <color: <span style="color: #0000ff;">COLOR</span>,COLORS> <nClrText> <span style="color: #000000;">&#91;</span>,<nClrBack><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <pixel: <span style="color: #000000;">PIXEL</span>> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <update: <span style="color: #000000;">UPDATE</span>> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">MESSAGE</span> <cMsg> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">WHEN</span> <uWhen> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <design: <span style="color: #000000;">DESIGN</span>> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">BITMAPS</span> <acBitmaps> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">ON</span> DRAWITEM <uBmpSelect> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">STYLE</span> <nStyle> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <pict: <span style="color: #000000;">PICT</span>, PICTURE> <cPicture> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">ON</span> <span style="color: #00C800;">EDIT</span> <span style="color: #0000ff;">CHANGE</span> <uEChange> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> HEIGHTGET <nHGet> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> SELHEIGHT <nSelHt> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> ITEMHEIGHT <nItmHt> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lw: <span style="color: #000000;">LISTWIDTH</span>, DROPWIDTH> <nDropW> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> DIRECTORY <cDir> <span style="color: #000000;">&#91;</span>ATTRIB <attr><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span>SAYDIR <oSayDir> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;=> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span> <oCbx> := <span style="color: #000000;">&#93;</span> MyComboBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <nRow>, <nCol>, bSETGET<span style="color: #000000;">&#40;</span><cVar><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<aItems>, <nWidth>, <nHeight>, <oWnd>, <nHelpId>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#123;</span>|Self|<uChange><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>, <<span style="color: #000000;">&#123;</span>uValid<span style="color: #000000;">&#125;</span>>, <nClrText>, <nClrBack>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<.<span style="color: #0000ff;">pixel</span>.>, <oFont>, <cMsg>, <.<span style="color: #0000ff;">update</span>.>, <<span style="color: #000000;">&#123;</span>uWhen<span style="color: #000000;">&#125;</span>>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<.design.>, <acBitmaps>, <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#123;</span>|nItem|<uBmpSelect><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>, <nStyle>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<cPicture>, <span style="color: #000000;">&#91;</span><<span style="color: #000000;">&#123;</span>uEChange<span style="color: #000000;">&#125;</span>><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><<span style="color: #000000;">&#40;</span>oCbx<span style="color: #000000;">&#41;</span>><span style="color: #000000;">&#93;</span>, <nHGet>, <span style="color: #000000;">&#91;</span><nSelHt><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><nItmHt><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><nDropW><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><cDir><span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span><attr><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><oSayDir><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />proc main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWnd, oCombo, oSay, cValue := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> MYCOMBOBOX oCombo <span style="color: #0000ff;">VAR</span> cValue <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN <span style="color: #B900B9;">//ON EDIT CHANGE {|| MsgInfo(oCombo:GetText()) }</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> cValue <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">20</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// I must use both</span><br />&nbsp; &nbsp;oCombo:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bAfterChange</span> := <span style="color: #000000;">&#123;</span>|| oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>oCombo:<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;oCombo:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bUpdate</span> := oCombo:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bAfterChange</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<span style="color: #B900B9;">// ON INIT (oCombo:oGet:SetSel())</span><br /><br /><span style="color: #00C800;">class</span> MyComboBox inherit TComboBox<br />&nbsp; &nbsp; CONSTRUCTOR <span style="color: #00C800;">New</span><br /><span style="color: #00C800;">endclass</span><br /><br /><br /><span style="color: #00C800;">class</span> MyText inherit TEdit<br />&nbsp; &nbsp; <span style="color: #00C800;">DATA</span> bAfterChange<br />&nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> KeyUp<span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> iif<span style="color: #000000;">&#40;</span>!empty<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">bAfterChange</span><span style="color: #000000;">&#41;</span>,eval<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">bAfterChange</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>, ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">KeyUp</span><span style="color: #000000;">&#40;</span>nKey, nFlags<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endclass</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> COMBO_BASE &nbsp; &nbsp; &nbsp;<span style="color: #000000;">320</span><br /><span style="color: #00D7D7;">#define</span> CB_FINDSTRING &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> COMBO_BASE + <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> COLOR_WINDOW &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> COLOR_WINDOWTEXT &nbsp; &nbsp; <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> GW_CHILD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">5</span><br /><span style="color: #B900B9;">// Copied from TComboBox:New</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nRow, nCol, bSetGet, aItems, nWidth, nHeight, oWnd, nHelpId,;<br />&nbsp; &nbsp; bChange, bValid, nClrFore, nClrBack, lPixel, oFont,;<br />&nbsp; &nbsp; cMsg, lUpdate, bWhen, lDesign, acBitmaps, bDrawItem, nStyle,;<br />&nbsp; &nbsp; cPict, bEChange, cVarName, nHGet, ;<br />&nbsp; &nbsp; nSelHt, nItmHt, nListWidth, cDir, nAttr, oSayDir <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> MyComboBox<br /><br /><span style="color: #00C800;">if</span> nClrFore == <span style="color: #00C800;">nil</span><br />nClrBack := GetSysColor<span style="color: #000000;">&#40;</span> COLOR_WINDOW <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nRow &nbsp; &nbsp; := <span style="color: #000000;">0</span>, nCol := <span style="color: #000000;">0</span>, bSetGet := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp;oWnd &nbsp; &nbsp; := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp;oFont &nbsp; &nbsp;:= oWnd:<span style="color: #000000;">oFont</span>,;<br />&nbsp; &nbsp;aItems &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, nWidth := <span style="color: #000000;">40</span>, nHeight := <span style="color: #000000;">60</span>,;<br />&nbsp; &nbsp;nClrFore := GetSysColor<span style="color: #000000;">&#40;</span> COLOR_WINDOWTEXT <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp;lPixel &nbsp; := .f., lUpdate := .f., lDesign := .f.,;<br />&nbsp; &nbsp;nStyle &nbsp; := CBS_DROPDOWNLIST<br /><br />::<span style="color: #000000;">lUnicode</span> &nbsp;= FW_SetUnicode<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">cCaption</span> &nbsp;= <span style="color: #ff0000;">""</span><br />::<span style="color: #000000;">nTop</span> &nbsp; &nbsp; &nbsp;= nRow * <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lPixel, <span style="color: #000000;">1</span>, CMB_CHARPIX_H <span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">nLeft</span> &nbsp; &nbsp; = nCol * <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lPixel, <span style="color: #000000;">1</span>, CMB_CHARPIX_W <span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">nBottom</span> &nbsp; = ::<span style="color: #000000;">nTop</span> &nbsp;+ nHeight - <span style="color: #000000;">1</span><br />::<span style="color: #000000;">nRight</span> &nbsp; &nbsp;= ::<span style="color: #000000;">nLeft</span> + nWidth &nbsp;- <span style="color: #000000;">1</span><br />::<span style="color: #000000;">nAt</span> &nbsp; &nbsp; &nbsp; = <span style="color: #000000;">0</span><br />::<span style="color: #000000;">aItems</span> &nbsp; &nbsp;= aItems<br />::<span style="color: #000000;">bChange</span> &nbsp; = bChange<br />::<span style="color: #000000;">bSetGet</span> &nbsp; = bSetGet<br />::<span style="color: #000000;">uOriginalValue</span> = Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bSetGet</span> <span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp; &nbsp;= oWnd<br />::<span style="color: #000000;">cSearchKey</span> := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">if</span> acBitmaps != <span style="color: #00C800;">nil</span><br />::<span style="color: #000000;">SetBitmaps</span><span style="color: #000000;">&#40;</span> acBitmaps <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />::<span style="color: #000000;">lOwnerDraw</span> = .f.<br /><span style="color: #B900B9;">/*<br />// FWH 17.07<br />if !Empty( nHGet )<br />&nbsp;::nBmpHeight := nHGet<br />endif<br />*/</span><br /><span style="color: #00C800;">endif</span><br /><br />::<span style="color: #000000;">nStyle</span> &nbsp; &nbsp;= nOR<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nStyle == CBS_DROPDOWN, <span style="color: #000000;">0</span>, LBS_NOTIFY <span style="color: #000000;">&#41;</span>, WS_TABSTOP,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LBS_DISABLENOSCROLL, WS_CHILD, WS_VISIBLE, WS_BORDER,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WS_VSCROLL, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDesign, WS_CLIPSIBLINGS, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lOwnerDraw</span>, CBS_OWNERDRAWFIXED, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//::nExStyle &nbsp;= nOr( WS_EX_LEFT, WS_EX_LEFTSCROLLBAR )</span><br /><br />::<span style="color: #000000;">nId</span> &nbsp; &nbsp; &nbsp; = ::<span style="color: #000000;">GetNewId</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">nHelpId</span> &nbsp; = nHelpId<br />::<span style="color: #000000;">bValid</span> &nbsp; &nbsp;= bValid<br />::<span style="color: #000000;">lDrag</span> &nbsp; &nbsp; = lDesign<br />::<span style="color: #000000;">lCaptured</span> = .f.<br />::<span style="color: #000000;">cMsg</span> &nbsp; &nbsp; &nbsp;= cMsg<br />::<span style="color: #000000;">lUpdate</span> &nbsp; = lUpdate<br />::<span style="color: #000000;">bWhen</span> &nbsp; &nbsp; = bWhen<br />::<span style="color: #000000;">bDrawItem</span> = bDrawItem<br /><br />::<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrFore, nClrBack <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">if</span> oFont == <span style="color: #00C800;">nil</span><br />::<span style="color: #000000;">GetFont</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br />::<span style="color: #000000;">oGet</span> := MyText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">nil</span> &nbsp; &nbsp; ,; &nbsp;<span style="color: #B900B9;">// ID not used</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Self</span> &nbsp; &nbsp; &nbsp; &nbsp;,; <span style="color: #B900B9;">//oWnd, </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">bSetGet</span> &nbsp; ,; <span style="color: #B900B9;">//bSetGet, </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cPict &nbsp; &nbsp; &nbsp; ,; <span style="color: #B900B9;">//cPicture,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">nil</span> &nbsp; &nbsp; &nbsp; &nbsp; ,; <span style="color: #B900B9;">//bChanged,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bEChange &nbsp; &nbsp;,; <span style="color: #B900B9;">//bUpdate,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">nil</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">//bHScroll )</span><br /><br /><span style="color: #B900B9;">// FWH 17.07</span><br /><span style="color: #00C800;">if</span> cDir != <span style="color: #00C800;">nil</span><br />::<span style="color: #000000;">cDir</span> &nbsp; &nbsp; &nbsp;:= cDir<br />::<span style="color: #000000;">lDir</span> &nbsp; &nbsp; &nbsp;:= .t.<br />::<span style="color: #000000;">nDirStyle</span> := nAttr<br />::<span style="color: #000000;">oSayDir</span> &nbsp; := oSayDir<br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> nHGet != <span style="color: #00C800;">nil</span><br />::<span style="color: #000000;">hSelectionHeight</span> &nbsp; := nHGet<br />::<span style="color: #000000;">hItemHeight</span> &nbsp; &nbsp; &nbsp; &nbsp;:= nHGet<br /><span style="color: #00C800;">else</span><br />::<span style="color: #000000;">hSelectionHeight</span> &nbsp; := nSelHt<br />::<span style="color: #000000;">hItemHeight</span> &nbsp; &nbsp; &nbsp; &nbsp;:= nItmHt<br /><span style="color: #00C800;">endif</span><br />::<span style="color: #000000;">hDropWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; := nListWidth<br /><span style="color: #B900B9;">// FWH17.07 end</span><br /><br /><span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">Create</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COMBOBOX"</span> <span style="color: #000000;">&#41;</span><br />::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> <span style="color: #000000;">&#41;</span><br />oWnd:<span style="color: #000000;">AddControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />oWnd:<span style="color: #000000;">DefControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">DEFAULT</span> cVarName := <span style="color: #ff0000;">"oCbx"</span> + ::<span style="color: #000000;">GetCtrlIndex</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />::<span style="color: #000000;">cVarName</span> = cVarName<br /><br />::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">hWnd</span> = GetWindow<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, GW_CHILD <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Link</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bLostFocus</span> = ;<br />&nbsp;<span style="color: #000000;">&#123;</span> | hCtlFocus, nAt, cItem| cItem := ::<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp;nAt := ::<span style="color: #000000;">SendMsg</span><span style="color: #000000;">&#40;</span> CB_FINDSTRING, <span style="color: #000000;">0</span>, Trim<span style="color: #000000;">&#40;</span> cItem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span>,;<br />&nbsp; &nbsp; &nbsp;Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bSetGet</span>, cItem <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp;::<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> nAt <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cItem <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bValid</span> != <span style="color: #00C800;">nil</span> .and. ;<br />&nbsp; &nbsp; &nbsp;GetParent<span style="color: #000000;">&#40;</span> hCtlFocus <span style="color: #000000;">&#41;</span> == GetParent<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bValid</span>, ::<span style="color: #000000;">oGet</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">PostMsg</span><span style="color: #000000;">&#40;</span> WM_SETFOCUS <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//::oGet:bKeyChar = { | nKey | ::GetKeyChar( nKey ) }</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">if</span> lDesign<br />::<span style="color: #000000;">CheckDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span></div>[/code:25krppaw]
CC and BCC in Outlook
Hello Fivewinners, How i can set CC or BCC in an Outlook via OLE ? Regards, Norbert
CC and BCC in Outlook
oMail:CC = "..." oMail:BCC = "..." EMG
CC and BCC in Outlook
[quote="EnricoMaria":1psyzq0w]oMail:CC = "..." oMail:BCC = "..." EMG[/quote:1psyzq0w] Many thanks, it works Regards, Norbert
CCCO (con copia oculta) no funciona con windows live mail.
CCCO (con copia oculta) no funciona con windows live mail. Sólo funciona con CC (con copia). ¿Algún cambio en MAIL.CH? Regards, saludos.
CD duplication in Europe
Hi all, the CD duplication company we always use to print the CD for our customers has failed this morning. Anyone know a good CD duplication company based in Europe to suggest me ? Thanks
CDO y @outlook.com TLS
hola cómo enviar correo electrónico utilizando CDO y @outlook.com TLS ? CDO no admite TLS? ver link <!-- m --><a class="postlink" href="http://stackoverflow.com/questions/12812408/is-there-some-trick-to-making-vbscript-cdo-work-with-amazon-ses-smtp">http://stackoverflow.com/questions/1281 ... n-ses-smtp</a><!-- m --> <!-- m --><a class="postlink" href="http://thinkinginsoftware.blogspot.com.br/2012/06/send-email-using-tls-from-windows.html">http://thinkinginsoftware.blogspot.com. ... ndows.html</a><!-- m --> alguien lo hizo? []s
CDO y @outlook.com TLS
<!-- m --><a class="postlink" href="http://www.pctoledo.com.br/forum/viewtopic.php?f=43&t=14189">http://www.pctoledo.com.br/forum/viewto ... 43&t=14189</a><!-- m -->
CDO Email strange behavoir
To All I have been trying to use CDO to send SMTP e-mail from a Project Management application I am writing. I have created a Gmail account and I use Rafa's CDO code mentioned in the Spanish forum... and I have been successful. Unfortunately, when I login to a different network or location ( other than the location\Network that created the Gmail account ) the CDO e-mail fails every time. I am just curious ... I have the same code that runs flawlessly from my office ( location and IP where I created the gmail account ) .. has anyone experienced this behavor in any applications they are currently using ? To clarify .. I am using gmail as an SMTP relay to distribute my application's e-mail to various Project stakeholders. Again .. this code runs perfectly from my office ... but if I login to a different network and run the same code .. it fails. Any Ideas?? Rick Lipkin [code=fw:xouoi4jc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//---------------------------------------------</span><br /><span style="color: #00C800;">Function</span> _SendMail<span style="color: #000000;">&#40;</span>cSmtp_Host,nPort,lSsl,;<br />                           cSmtp_UserId,cSmtp_Password,cFrom,cTo,aCC,cSubject,cMessage,oDlg<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oEmailCfg,oErr,lFailed,oEmailMsg,cAddress,i<br /><br />SysReFresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// smtpauthenticate</span><br /><span style="color: #B900B9;">// 0 cdoAnonymous Perform no authentication.</span><br /><span style="color: #B900B9;">// 1 cdoBasic     Use the basic (clear text) authentication mechanism.</span><br /><span style="color: #B900B9;">// 2 cdoNTLM      Use the NTLM authentication mechanism.</span><br /><br /><span style="color: #00C800;">If</span> empty<span style="color: #000000;">&#40;</span>aCC<span style="color: #000000;">&#41;</span><br />   cAddress := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Else</span><br />   <span style="color: #00C800;">For</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span>aCC<span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">If</span> i = <span style="color: #000000;">1</span><br />          cAddress := aCC<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />       <span style="color: #00C800;">Else</span><br />          cAddress := cAddress+<span style="color: #ff0000;">","</span>+aCC<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />       <span style="color: #00C800;">Endif</span><br />    <span style="color: #00C800;">Next</span><br /><span style="color: #00C800;">Endif</span><br /><br />lFailed := .f.<br /><span style="color: #00C800;">TRY</span><br />  oEmailCfg := CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br />  WITH OBJECT oEmailCfg:<span style="color: #000000;">Fields</span>                                                          <span style="color: #B900B9;">// cSmtp_Host</span><br />  :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>       := cSmtp_Host  <span style="color: #B900B9;">//::smtpServer</span><br />  :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>   := nPort <span style="color: #B900B9;">//465 //::smtpPort</span><br />  :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>        := <span style="color: #000000;">2</span> <span style="color: #B900B9;">//::sendusing  // Remote SMTP = 2, local = 1</span><br />  :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">1</span> <span style="color: #B900B9;">//::AUTH // 0 , 1 ,2</span><br />  :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>       := lSsl <span style="color: #B900B9;">//::SSL</span><br />  :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>     := cSmtp_Userid   <span style="color: #B900B9;">//::username</span><br />  :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>     := cSmtp_Password <br />  :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">15</span> <span style="color: #B900B9;">//::TimerOut</span><br />  :<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  END WITH<br /><br />CATCH oError<br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error in Configuration"</span> <span style="color: #000000;">&#41;</span><br />END<br /><br />oError := <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">TRY</span><br />   oEmailMsg  := CREATEOBJECT <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />   WITH OBJECT oEmailMsg<br />        :<span style="color: #000000;">Configuration</span> = oEmailCfg<br />        :<span style="color: #0000ff;">From</span>     := cFrom<br />        :<span style="color: #0000ff;">To</span>       := cTo <br />        :<span style="color: #000000;">CC</span>       := cAddress<br /><br />        :<span style="color: #000000;">BCC</span>      := <span style="color: #ff0000;">""</span><br />        :<span style="color: #0000ff;">Subject</span>  := cSubject<br />     <span style="color: #B900B9;">// :MDNRequested = .T.       // Solicitud de reconocimiento, o acuse de recibo</span><br />        :<span style="color: #000000;">TextBody</span> := cMessage<br /><br />        * <span style="color: #00C800;">for</span> each cFile in ::<span style="color: #000000;">aFiles</span><br />                *    :<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">&#40;</span> cfile <span style="color: #000000;">&#41;</span><br />        * <span style="color: #00C800;">next</span><br />        :<span style="color: #000000;">Fields</span>:<span style="color: #0000ff;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        :<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #B900B9;">// ? "[ "+Time()+" ] Enviado correo :"+ ::email</span><br />   END<br />CATCH oError<br />      <span style="color: #0000ff;">MsgINfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Error in sending e-mail:"</span>+  oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />      lFailed := .t.<br />END<br /><br />oEmailCfg := <span style="color: #00C800;">NIL</span><br />oEmailMsg := <span style="color: #00C800;">NIL</span><br /><br />oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>lFailed<span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:xouoi4jc]
CDO Email strange behavoir
Rick, Sometimes, if gmail detect that the account is being used from another location it asks to enter a veryfication code. Maybe this will be the issue. Can you use another SMTP provider, ie Amazon cloud services?.
CDO Email strange behavoir
For it could be useful Verify that you have activated the option "two-step verification" of your account. (Security) If so, in Gmail maybe have to enlist the application that you are using and does not allow that protocol and assign a password. When you walk from this application have to put the password defined for that application, not the account. Not if he has anything to do with your problem. This text is translated Translate, so I recommend you look in Google "two-step verification GMail". I've also had a problem on computers that the user has activated the option "Do not close session". I hope you can fix it. regards [url:3mfsvaxs]http&#58;//www&#46;genbeta&#46;com/correo/que-es-la-verificacion-en-dos-pasos-de-gmail-y-por-que-es-importante-activarla[/url:3mfsvaxs] Por si te puede ayudar Comprueba que no tienes activada la opcion "Verificacion en dos pasos" de tu cuenta. (Seguridad) Si es asi, en Gmail quizas tengas que dar de alta la aplicacion que vas a usar y que no permite ese protocolo y ponerle una contraseña. Cuando entras desde esa aplicacion tienes que poner la contraseña definida para esa aplicacion y no la de la cuenta. No se si tiene algo que ver con tu problema. Este texto esta traducido con Translate, por lo que te recomiendo que busques en Google "Verificacion en dos pasos de GMail". Tambien he tenido algun problema en equipos en los que el usuario tiene activa la opcion "No cerrar sesion". Espero que puedas solucionarlo. Saludos
CDO Email strange behavoir
Cristobal I have done some research on Google searching for 'gmail smtp relay' .. and it does seem to be possible. I have entered and verified my security code and the account is active. I am using port 465 and some of the research suggests using port 587. I am continuing my research. Thanks Rick Lipkin
CDO Email strange behavoir
Rick, Two things to try. Check to make sure that the port isn't being blocked at the customer's site. Also, try increasing the timeout interval (it is normally 30). :Item( "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"):Value := 30 Is your code trapping and displaying errors? If not add it. OK, that was three things. James
CDO Email strange behavoir
Rick, Another thought. The customer company may be intentionally blocking the Gmail site to prevent employees from accessing their personal mail at work. James
CDO Email strange behavoir
James I had a second set of eyes look at this and I was getting the infamous "Member not found" ADO error which doesn't really tell me much .. Here is what I found and this seems to be the fix .. the cFrom when dealing with gMail has to be a fully distinguished email address rather than just a value even if it is a dummy name and domain. cFrom := "PMO Admin" // works on my machine but fails everywhere else cFrom := "PMO_Admin@bogus.com" // works all the time <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Apparently when I created my gMail account .. CDO must have pulled a value ( perhaps from the registry ) from my machine and plugged in the value of cFrom and the email was delivered as <Pmo Admin>. Using "Pmo_Admin@bogus.com" ( fully distinguished address ) allows the email to be sent and it does get delivered. I have tested this fix on a different machine in my office and it worked great ( which previously errored to ) .. what I have not done is to test this again on my laptop logged into a different network. I think everything should work .. I will let you know in the morning. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Rick Lipkin
CDO Email strange behavoir
To All As I mentioned in the last post .. sending email with CDO is quite possible and using gMail as a 'SMTP RELAY' is a great way to integrate sending e-mail from your applications. The final solution ( specific to gmail ) was to put a qualified e-mail address in the 'from' parameter even if it is not a real address .. as log as you have a name and domain ( <!-- e --><a href="mailto:name@bogus.com">name@bogus.com</a><!-- e --> ) .. along with a legitimate 'to' .. CDO and gMail makes a great combination. Rick Lipkin
CDO Email strange behavoir
Rick, Glad to hear you solved the problem. I always specify the From field like this: cFrom:= ["James Bott" <jbott@whatever.com>] I never tried using a bogus email address during testing--I just send test emails to myself. Regards, James
CDO Email strange behavoir
I implemented CDO several months back and resolved the remaining SSL issues some of my clients faced. With that said, I do NOT use Gmail. It would not surprise me that any corporation or individual who seeks to not have 100% of their information broadcast to the world would block Gmail. Please carefully read the Privacy Policy ( very easily found ) that applies to all Google services ( and doesn't that include Android phones ? ) . Because I often handle items for others, I cannot voluntarily submit their information to a global server to be sold to anyone with any interest. Nothing is ever FREE. Everything has a cost, and the fee for using "free" services is to allow them to do whatever they want with your data. Tim
CDO Email strange behavoir
Tim I truly understand your concerns .. when using SMTP Relay .. I am using the gMail service to just distribute my e-mail. None of the messages are stored anywhere on any gMail account. All I have done is created a gmail account and then use CDO to point it to SMTP.GMAIL.COM, port 465 with SSl and furnish my email credentials UserId and Password. I can direct mail, cc, bc to anyone I want and all gMail does is handle the Relay.. nothing is stored anywhere, Google is just the traffic handler. Rick Lipkin ps .. and it is free <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
CDO Email strange behavoir
Rick, Well, just because you don't store it, doesn't mean that Google doesn't. Tim, which SMTP server are you using? Or, do you have your own mail server setup? James
CDO Email strange behavoir
Rick, It doesn't have to be stored there. Anything you touch Google is recorded ... even your searches, and cross referenced. The EU is now on the verge of assessing massive fines for privacy violations against them. James, I have Microsoft hosted Exchange accounts. They have a different policy. Its only $4 a month and totally worth the cost. I can also use email accounts with my web hosting service, and that is unlimited. Tim