topic
stringlengths
1
63
text
stringlengths
1
577k
editable combobox con busqueda incremental
Antonio, obtengo este error del ejemplo que posteaste [code=fw:ml82dn5w]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\funciones\combo.exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">1</span>,<span style="color: #000000;">684</span>,<span style="color: #000000;">992</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.1</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">17222</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">12.03</span><br />&nbsp; &nbsp;Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7601</span> Service Pack <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">1</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">09</span>/<span style="color: #000000;">26</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">07</span>:<span style="color: #000000;">00</span>:<span style="color: #000000;">28</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> &nbsp;<span style="color: #0000ff;">Message</span> not found: <span style="color: #000000;">TCOMBOBOX</span>:<span style="color: #000000;">GETKEYCHAR</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = O &nbsp; TCOMBOBOX<br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> __ERRRT_SBASE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => TCOMBOBOX:<span style="color: #000000;">ERROR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>HBOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => TCOMBOBOX:<span style="color: #000000;">MSGNOTFOUND</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => TCOMBOBOX:<span style="color: #000000;">GETKEYCHAR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">combo</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\TGET.PRG => TGET:<span style="color: #000000;">KEYCHAR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1028</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1700</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\TGET.PRG => TGET:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">579</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3153</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">270</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">combo</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:ml82dn5w] Saludos
editable combobox con busqueda incremental
[quote="horacio":mh85ozt2]Antonio, obtengo este error del ejemplo que posteaste [code=fw:mh85ozt2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\funciones\combo.exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">1</span>,<span style="color: #000000;">684</span>,<span style="color: #000000;">992</span> bytes<br />   Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.1</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">17222</span><span style="color: #000000;">&#41;</span><br />   FiveWin  Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">12.03</span><br />   Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7601</span> Service Pack <span style="color: #000000;">1</span><br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">1</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">09</span>/<span style="color: #000000;">26</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">07</span>:<span style="color: #000000;">00</span>:<span style="color: #000000;">28</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span>  <span style="color: #0000ff;">Message</span> not found: <span style="color: #000000;">TCOMBOBOX</span>:<span style="color: #000000;">GETKEYCHAR</span><br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = O   TCOMBOBOX<br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => __ERRRT_SBASE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => TCOMBOBOX:<span style="color: #000000;">ERROR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>HBOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => TCOMBOBOX:<span style="color: #000000;">MSGNOTFOUND</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => TCOMBOBOX:<span style="color: #000000;">GETKEYCHAR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">combo</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TGET.PRG => TGET:<span style="color: #000000;">KEYCHAR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1028</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1700</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TGET.PRG => TGET:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">579</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3153</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">270</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">combo</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:mh85ozt2] Saludos[/quote:mh85ozt2] Mira en COMBOBOX.PRG se tiens esto: [code=fw:mh85ozt2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> GetKeyChar<span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TComboBox<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nAt, cText<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nKey == VK_TAB .and. ! GetKeyState<span style="color: #000000;">&#40;</span> VK_SHIFT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> .or. nKey == VK_RETURN<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoNextCtrl</span><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;">return</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nKey == VK_TAB .and. GetKeyState<span style="color: #000000;">&#40;</span> VK_SHIFT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoPrevCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nKey >= <span style="color: #0000ff;">Asc</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"a"</span> <span style="color: #000000;">&#41;</span> .and. nKey >= <span style="color: #0000ff;">Asc</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Z"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Insert</span><span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cText = AllTrim<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">buffer</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := AScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | c | Upper<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> c, Len<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Upper<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgBeep<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> nAt <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">SetPos</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">pos</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> nKey &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp;</div>[/code:mh85ozt2] Salu2
editable combobox con busqueda incremental
Karinha, efectivamente ese método no existe. Hay alguna manera de implementar la búsqueda sin este método ?? Gracias Saludos
editable combobox con busqueda incremental
[quote="horacio":1fmoy0no]Karinha, efectivamente ese método no existe. Hay alguna manera de implementar la búsqueda sin este método ?? Gracias Saludos[/quote:1fmoy0no] No. Necesita de una nueva COMBOBOX.PRG. ¿Dónde tiene nuevos métodos. ¿Por qué no actualizar su versión de FWH? Pregunte al maestro Antonio un muy buen precio. No hay daño en el intento. jejejejejejejejeje Abrazos.
editable combobox con busqueda incremental
UNLIMITED ComboBox, Very good! [code=fw:2sr7a32b]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg , oCombo1, oExit, oLeft, oRight, oFnt, oFont<br /><br />&nbsp; &nbsp;dbcreate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"testdb.dbf"</span>,<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"feld1"</span>,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;USE<br /><br />&nbsp; &nbsp;USE <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"testdb.dbf"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"testdb"</span> <span style="color: #00C800;">NEW</span> EXCLUSIVE<br /><br />&nbsp; &nbsp;testdb-><span style="color: #000000;">&#40;</span>dbappend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;testdb->feld1 := replicate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A"</span>,len<span style="color: #000000;">&#40;</span>testdb->feld1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;testdb-><span style="color: #000000;">&#40;</span>dbappend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;testdb->feld1 := <span style="color: #ff0000;">"ABCDEFGHIJ"</span><br />&nbsp; &nbsp;testdb-><span style="color: #000000;">&#40;</span>dbappend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;testdb->feld1 := replicate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"B"</span>,len<span style="color: #000000;">&#40;</span>testdb->feld1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;testdb-><span style="color: #000000;">&#40;</span>dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SetGetColorFocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Show...</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt &nbsp; <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, &nbsp;<span style="color: #000000;">14</span> BOLD <span style="color: #B900B9;">//UnderLine</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD <span style="color: #B900B9;">//UnderLine</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;">"Combobox CBS_DROPDOWN Search In..."</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">304</span>, <span style="color: #000000;">350</span> <span style="color: #0000ff;">PIXEL</span> COLORS CLR_BLACK, CLR_WHITE TRANSPARENT<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Recno: "</span>+alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>testdb-><span style="color: #000000;">&#40;</span>recno<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">COMBOBOX</span> oCombo1 <span style="color: #0000ff;">VAR</span> testdb->feld1 &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;">PROMPTS</span> <span style="color: #000000;">&#123;</span> replicate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A"</span>,len<span style="color: #000000;">&#40;</span>testdb->feld1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; replicate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"B"</span>,len<span style="color: #000000;">&#40;</span>testdb->feld1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">80</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;oCombo1:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bKeyChar</span> = <span style="color: #000000;">&#123;</span> | nKey | oCombo1:<span style="color: #000000;">GetKeyChar</span><span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// Wow...</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Type a letter for search... God save the king."</span> <span style="color: #0000ff;">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS CLR_HRED, CLR_WHITE<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">4</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">BUTTON</span> oLeft <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Left"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> testdb-><span style="color: #000000;">&#40;</span>recno<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>><span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>testdb-><span style="color: #000000;">&#40;</span>dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">-1</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;oDlg:<span style="color: #0000ff;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Begin of DB"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oLeft:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Use Left For Incremental Search"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">4</span>, <span style="color: #000000;">17</span> <span style="color: #0000ff;">BUTTON</span> oRight <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Right"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> testdb-><span style="color: #000000;">&#40;</span>recno<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><<span style="color: #000000;">3</span>,<span style="color: #000000;">&#40;</span>testdb-><span style="color: #000000;">&#40;</span>dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style="color: #0000ff;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"End of DB"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oRight:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Use Right For Incremental Search"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">6</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"1. Go with > to the second record."</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"2. Go with > to the third record"</span>+CRLF+ &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"3. Go with < return to the second record"</span>+CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"4. Open the Combobox with the arrow"</span>+CRLF+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Now you see, that the second record also is 'AAAAAAAAAA'"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">50</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">7.50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">BUTTON</span> oExit <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Exit"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;oExit:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Exit"</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oLeft &nbsp;<span style="color: #0000ff;">TO</span> oFont<br />&nbsp; &nbsp;SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oRight <span style="color: #0000ff;">TO</span> oFont<br />&nbsp; &nbsp;SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oExit &nbsp;<span style="color: #0000ff;">TO</span> oFont<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oFnt:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:2sr7a32b]
editable combobox con busqueda incremental
ComboBox muy bueno, maito bom saludos.
editable combobox con busqueda incremental
Antonio En tu ejemplo [code=fw:1q02xw13]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oCbx, cDia<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> cDia <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">300</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Lunes"</span>, <span style="color: #ff0000;">"Martes"</span>, <span style="color: #ff0000;">"Miércoles"</span>, <span style="color: #ff0000;">"Jueves"</span>, <span style="color: #ff0000;">"Viernes"</span>, <span style="color: #ff0000;">"Sábado"</span>, <span style="color: #ff0000;">"Domingo"</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> QueDia<span style="color: #000000;">&#40;</span>cDia<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oCbx:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bKeyChar</span> = <span style="color: #000000;">&#123;</span> | nKey | oCbx:<span style="color: #000000;">GetKeyChar</span><span style="color: #000000;">&#40;</span> nKey <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> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> QueDia<span style="color: #000000;">&#40;</span>cDia<span style="color: #000000;">&#41;</span><br />&nbsp; MsgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Hoy día es: "</span>+cDia<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span></div>[/code:1q02xw13] Cómo se hace para que ejecute una acción en intentado con ON CHANGE se ejecuta al entrar al combobox luego al pulsar INTRO no ejecuta la acción Gracias por la ayuda Saludos, Adhemar
editable combobox con busqueda incremental
Adhemar, Aqui lo tienes funcionando: [code=fw:35h7iq6q]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oCbx, cDia<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> cDia <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">300</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Lunes"</span>, <span style="color: #ff0000;">"Martes"</span>, <span style="color: #ff0000;">"Miércoles"</span>, <span style="color: #ff0000;">"Jueves"</span>, <span style="color: #ff0000;">"Viernes"</span>, <span style="color: #ff0000;">"Sábado"</span>, <span style="color: #ff0000;">"Domingo"</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> QueDia<span style="color: #000000;">&#40;</span> cDia <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oCbx:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bKeyChar</span> = <span style="color: #000000;">&#123;</span> | nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_RETURN,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> cDia := oCbx:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, Eval<span style="color: #000000;">&#40;</span> oCbx:<span style="color: #000000;">bChange</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>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCbx:<span style="color: #000000;">GetKeyChar</span><span style="color: #000000;">&#40;</span> nKey <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> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> QueDia<span style="color: #000000;">&#40;</span>cDia<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MsgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Hoy día es: "</span>+cDia<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span></div>[/code:35h7iq6q]
editable combobox con busqueda incremental
Gracias Antonio Funciona, pero no hay manera de que no ejecute la acción en la creación del combobox. Se ejecuta 2 veces, y como no se ha elegido muestra vacío Saludos, Adhemar
editable combobox con busqueda incremental
> no hay manera de que no ejecute la acción en la creación del combobox A que te refieres ? Que quisiera que hiciese más ?
editable combobox con busqueda incremental
Que no vaya a la función hasta que uno elija el ítem. Tras que compilo el ejemplo me muestra: Hoy día es: Saludos, Adhemar
editable combobox con busqueda incremental
En el ejemplo que te he proporcionado, aqui no hace ese comportamiento. Solo al elegir y pulsar intro
editable combobox con busqueda incremental
Debe ser por mi versión de FWH tengo la 12.12, pronto la actualizaré. Y en el COMBOBOX no editable STYLE CBS_DROPDOWN se puede controlar que vaya a la función sólo cuando se elige el ítem. controlándolo con un Eval Gracias, Saludos, Adhemar
editable combobox con busqueda incremental
Adhemar, Es una pregunta o una afirmación ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
editable combobox con busqueda incremental
Es una pregunta. Tengo un COMBOBOX en un xBrowse donde muestro el personal por sector, en la creación del combobox ejecuta la función donde filtro la base. quiero evitar que lo haga hasta que elija el sector. Gracias por la ayuda. Saludos, Adhemar
editable combobox con busqueda incremental
Antonio I have been following this thread .. I would like to be able to have ( multiple Key stroke ) incremental searches on Comboboxes .. are you going to include your solution in the Combobox FW code, or this this something we will need to add in our code ? Thanks Rick Lipkin [code=fw:13fvw560]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;oCbx:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bKeyChar</span> = <span style="color: #000000;">&#123;</span> | nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_RETURN,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> cDia := oCbx:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, Eval<span style="color: #000000;">&#40;</span> oCbx:<span style="color: #000000;">bChange</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>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCbx:<span style="color: #000000;">GetKeyChar</span><span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:13fvw560]
editable combobox con busqueda incremental
Una consulta desde que version funciona ????
editable combobox con busqueda incremental
Si no recuerdo mal, desde FWH 14.08 Anteriormente habia porciones de código pero no estaba todo plenamente integrado. Ahora parece funcionar bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
editar celda siguiente sin dar enter
Foro: doy click a la columna precio y quiero que salte al siguiente registro y se édite sin necesidad de dar enter, como es que se hace [code=fw:33y82sat]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw                                           ;<br />      FIELDS ARTICULO->Cod                                         ;<br />            ,ARTICULO->DesG                                        ;<br />            ,Transform<span style="color: #000000;">&#40;</span>ARTICULO->Pv, <span style="color: #ff0000;">"999.9999"</span><span style="color: #000000;">&#41;</span>                   ;<br />            ,<span style="color: #ff0000;">" "</span>                                                   ;<br />      FIELDSIZES <span style="color: #000000;">70</span>, <span style="color: #000000;">250</span>,<span style="color: #000000;">120</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">10</span>                               ;<br />      HEADERS <span style="color: #ff0000;">"CODIGO"</span>                                             ;<br />            ,<span style="color: #ff0000;">"DESCRIPCION"</span>                                         ;<br />            ,<span style="color: #ff0000;">"PRECIO S/."</span>                                          ;   <span style="color: #B900B9;">//solo esta col quiero editar</span><br />            ,<span style="color: #ff0000;">" "</span>                                                   ;<br />      <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> <span style="color: #0000ff;">OF</span> oDlg                                              ;<br />      AUTOSORT                                                     ;<br />      <span style="color: #0000ff;">UPDATE</span> ;<br />      FASTEDIT<br />                                                            <br />    oBrw:<span style="color: #000000;">lFastEdit</span>:= .t.<br />        oBrw:<span style="color: #000000;">nMoveType</span> := MOVE_DOWN<br />    oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET<br />    oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">"N"</span><br />    oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bOnPostEdit</span>    := <span style="color: #000000;">&#123;</span> | o, x, n | UpdatePrecio<span style="color: #000000;">&#40;</span> x, oBrw, n<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>   <span style="color: #B900B9;">//,oBrw:GoDown()</span><br />    ....<br />    ....<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">function</span> UpdatePrecio<span style="color: #000000;">&#40;</span> x, oBrwf, n <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> nMts<br />    <span style="color: #00C800;">If</span> bloquea<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ARTICULO"</span><span style="color: #000000;">&#41;</span><br />      ARTICULO->pv      := val<span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#41;</span><br />      nMts:=<span style="color: #0000ff;">Round</span><span style="color: #000000;">&#40;</span>ARTICULO->Cap*ARTICULO->conos,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />      ARTICULO->Importe:=<span style="color: #0000ff;">Round</span><span style="color: #000000;">&#40;</span>nMts*ARTICULO->pv,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />      ARTICULO-><span style="color: #000000;">&#40;</span>dbunlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>      <br />      obrwf:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span>  <br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /> </div>[/code:33y82sat] pongo una imagen de lo que quiero [url=http&#58;//subefotos&#46;com/ver/?209b1eb99ebd697dfb0fd33458a33e98o&#46;jpg:33y82sat][img:33y82sat]http&#58;//thumbs&#46;subefotos&#46;com/209b1eb99ebd697dfb0fd33458a33e98o&#46;jpg[/img:33y82sat][/url:33y82sat] Gracias
editar celda siguiente sin dar enter
Hola, Si no es al momento de dar Enter. ¿Cuál sería el criterio o condición para que se comience a editar la siguiente celda? Saludos,
editar celda siguiente sin dar enter
Hola gracias por responder, creo que no me he explicado bien, quisiera que se pueda registrar datos rápidamente en la columna precio para ello selecciono la fila a editar el precio (eso esta Ok) luego de dar de terminar de editar quisiera que al dar enter salte al sgte registro y sin necesidad de dar enter o doble click pueda editar esa fila (la única celda a editar de mi browse va ser la col precio) [color=#8000FF:1nzzvme0]la formula es EDITAR COL PRECIO DE FILA 1 - ENTER - EDITAR COL PRECIO DE FILA 2 - ENTER - EDITAR COL PRECIO DE FILA N - ENTER - ....[/color:1nzzvme0] [code=fw:1nzzvme0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw                                           ;<br />      FIELDS ARTICULO->Cod                                         ;<br />            ,ARTICULO->DesG                                        ;<br />            ,Transform<span style="color: #000000;">&#40;</span>ARTICULO->Pv, <span style="color: #ff0000;">"999.9999"</span><span style="color: #000000;">&#41;</span>                   ;<br />            ,<span style="color: #ff0000;">" "</span>                                                   ;<br />      FIELDSIZES <span style="color: #000000;">70</span>, <span style="color: #000000;">250</span>,<span style="color: #000000;">120</span>, <span style="color: #000000;">90</span>, <span style="color: #000000;">10</span>                               ;<br />      HEADERS <span style="color: #ff0000;">"CODIGO"</span>                                             ;<br />            ,<span style="color: #ff0000;">"DESCRIPCION"</span>                                         ;<br />            ,<span style="color: #ff0000;">"PRECIO S/."</span>                                          ;<br />            ,<span style="color: #ff0000;">" "</span>                                                   ;<br />      <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> <span style="color: #0000ff;">OF</span> oDlg                                              ;<br />      AUTOSORT                                                     ;<br />      <span style="color: #0000ff;">UPDATE</span> ;<br />      FASTEDIT<br />                                                            <br />    oBrw:<span style="color: #000000;">lFastEdit</span>:= .t.<br />    <span style="color: #B900B9;">//oBrw:nMoveType := MOVE_DOWN</span><br />    oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET<br />    oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">"N"</span><br />    oBrw:<span style="color: #000000;">nMarqueeStyle</span>       := MARQSTYLE_HIGHLROW<br />    oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bOnPostEdit</span>    := <span style="color: #000000;">&#123;</span> | o, x, n | UpdatePrecio<span style="color: #000000;">&#40;</span> x, oBrw, n<span style="color: #000000;">&#41;</span> ,obrw:<span style="color: #000000;">godown</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #000000;">nColSel</span> := <span style="color: #000000;">3</span>,oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #00C800;">Edit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>    <br />    oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bGetChange</span> = <span style="color: #000000;">&#123;</span>| k, f, o, oCol | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> RTrim<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Buffer</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == Len<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Buffer</span> <span style="color: #000000;">&#41;</span>,;  <br />                                           <span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">SendMsg</span><span style="color: #000000;">&#40;</span> WM_KEYDOWN, VK_RETURN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #B900B9;">// Esto lo saque de otro mensaje posteado pero no me trabaja</span><br /><br /> </div>[/code:1nzzvme0]
editar celda siguiente sin dar enter
Mira yo lo tengo asi y no tengo la necesidad de dar enter para comenzar a editar solo tecleo en la celda y listo [code=fw:3tymj5pl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />oBrowA:<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := MARQSTYLE_HIGHLCELL<br />oBrowA:<span style="color: #000000;">lFastEdit</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .T.<br />oBrowA:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cEditPicture</span> &nbsp; := <span style="color: #ff0000;">"@!"</span><br />oBrowA:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> &nbsp;&nbsp; &nbsp; := <span style="color: #000000;">1</span><br /><br />&nbsp;</div>[/code:3tymj5pl] Después de terminar de meter los datos si tengo que dar enter para salir y automatico se va a la siguente celda y sin dar enter vuelvo solo a teclear lo necesario y asi sucesivamente Saludos.
editar celda siguiente sin dar enter
Ok Javier y como seria para que salte al sgte registro del xbrowse y se edite la misma columna?
editar celda siguiente sin dar enter
xBrw:Godown( 1 ) -- uno abajo
editar celda siguiente sin dar enter
artu1 En browse que tengo para ir capturando rápidamente En lugar de dar <Enter> al final le doy <Flecha abajo> y listo, ya estoy en el siguiente renglón y misma columna voy tecleando los importes flecha abajo.
editar celda siguiente sin dar enter
Please try [code=fw:qri7gttj]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw &nbsp;;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style="color: #ff0000;">"ARTICULO"</span> ; <span style="color: #B900B9;">// <-- important</span><br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"Cod"</span>, <span style="color: #ff0000;">"Desg"</span>, <span style="color: #ff0000;">"PV"</span> ; <span style="color: #B900B9;">// do not use FIELDS. </span><br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"CODIGO"</span>, <span style="color: #ff0000;">"DESCRIPTION"</span>, <span style="color: #ff0000;">"PRECIO"</span> ;<br />&nbsp; &nbsp; &nbsp; PICTURES <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"999.9999"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> FASTEDIT<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nEditType</span> &nbsp;:= EDIT_GET<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bOnChange</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |oCol| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">Lock</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> ARTICULO->Importe := <span style="color: #0000ff;">ROUND</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">ROUND</span><span style="color: #000000;">&#40;</span> ARTICULO->CAP * ARTICULO->CONOS, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> * oCol:<span style="color: #000000;">Value</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">UnLock</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <br />&nbsp; &nbsp;END<br />&nbsp;</div>[/code:qri7gttj]
editar en xbrowse
Hola quisiera saber como hago para entrar a editar la primera columna y fila de un xbrowse al salir de por ejemplo un get Con wbrowse lo hacía de esta forma REDEFINE get aGet[3] VAR ache:fechin id 103 of odlg1 update picture "@d" VALID (EVAL({|| oBrw:oEditLbx() }),.t.) Como hay que hacerlo con el xbrowse? Gracias
editar en xbrowse
Ola .. Tente assim; oCol:= oLbx:AddCol() oCol:bStrData := { || Arq->NOme } oCol:cHeader := "Nome" oCol:nWidth := 200 [b:oltzwuy7] //--Editar Coluna[/b:oltzwuy7] oCol:bEditvalue := { || ARQ->NOME } oCol:nEditType := EDIT_GET oCol:cEditPicture := "@!" oCol:bonPostEdit := { | oCol, uValue, nLastKey | If( nLastKey == 13, arq->NOME := uValue, nil ) } Abraços
editing yunus invoice
As a friend asked me for a small program to place orders, since I don't have much time to devote to family problems, I'm trying to modify yunus.prg to make it viable in Italy, I will probably have countless problems but i want to try if i can use yunus.prg for my friend I added tax fields because here in Italy we can have a different VAT for each item. 1. I added the tax for each item (items.dbf) 2. I added the tax in the body of the invoice (invitems.dbf) when I go to create an order it makes the wrong calculation ie as you can see in this figure [img:1uk9tpkr]https&#58;//i&#46;postimg&#46;cc/B6jPNd3c/TEST-YUNUS&#46;png[/img:1uk9tpkr] the Net column should be 6 but 4.7595 that is rounded 4.76 where does the calculation of the Net column do? for a sample : Price 25.05 TAX %: 19% Price without Tax: 25.05 Price with tax: 29.81 ( amount) Tax import: 4.76 How i can to implement this on yunus ? I modified on function [b:1uk9tpkr]EditInvoice( oRec )[/b:1uk9tpkr] I add this line before the xbrowse [code=fw:1uk9tpkr]<div class="fw" id="{CB}" style="font-family: monospace;"> bCalcRow := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span>TotalRow<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span>, &nbsp;oBrw:<span style="color: #000000;">RefreshFooters</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #0000ff;">Update</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></div>[/code:1uk9tpkr] [code=fw:1uk9tpkr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">for</span> each cCol in <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"qty"</span>, <span style="color: #ff0000;">"price"</span>, <span style="color: #ff0000;">"discount"</span>,<span style="color: #ff0000;">"tax"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; WITH OBJECT oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> cCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nEditType</span> &nbsp; &nbsp; := EDIT_GET<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bEditValid</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; * :<span style="color: #000000;">bOnChange</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"amount"</span>, <span style="color: #ff0000;">"net"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">RefreshFooters</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bOnChange</span> &nbsp; &nbsp; := bCalcRow<br /><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span></div>[/code:1uk9tpkr] I add this function to cal the total of row [code=fw:1uk9tpkr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> TotalRow<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nPriceUnit := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Value</span><br />   <span style="color: #00C800;">local</span> nQuantity  := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Value</span><br />   <span style="color: #00C800;">local</span> ntax       := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Value</span><br />   <span style="color: #00C800;">local</span> ndescount  := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Value</span><br />   <span style="color: #00C800;">local</span> nTotalRow  := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> nTotalTax  := <span style="color: #000000;">0</span><br /><br />      nTotalRow  := nPriceUnit * nQuantity<br />      nTotalTax  := <span style="color: #000000;">&#40;</span>nTotalRow*<span style="color: #000000;">100</span><span style="color: #000000;">&#41;</span>/ntax<br /><br />        <span style="color: #00C800;">If</span> ndescount ><span style="color: #000000;">0</span><br />            nTotalRow :=  nTotalRow - ndescount<br />         <span style="color: #00C800;">Endif</span><br /><br />     oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span>nTotalRow<span style="color: #000000;">&#41;</span><br />     oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span>nTotalTax<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:1uk9tpkr] But not run !!! thanks
editing yunus invoice
Silvio, In Yunus, the NET is calculated in the header part of the xbrowse. Did you change that also ? Position is now column 9 in your sample. The calculation for tax = // not so : nTotalTax := (nTotalRow*100)/ntax NTotalTax:= (nTotalrow * nTax) / 100 Tip : Consider using that header name in your functions for better reading and sure when you add a column, all formulas will go wrong. With the names you have no problems. oBrw:NET:VarPut( value ) instead of oBrw:acols[9]:varput(value)
editing yunus invoice
Ask your friend also if the discount will be a percentage or a value. I think it will always be a percentage and than you have to rewrite your code accourdingly.
editing yunus invoice
Maybe this code can help you a little : [code=fw:1tmdsswh]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   aVelden :=  <span style="color: #000000;">&#123;</span> ;<br />   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"refnummer"</span>  , <span style="color: #ff0000;">"Code"</span>    ,<span style="color: #00C800;">nil</span>,  <span style="color: #000000;">90</span> <span style="color: #000000;">&#125;</span>, ;<br />   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"aantal"</span>     , <span style="color: #ff0000;">"BES"</span>     ,<span style="color: #00C800;">nil</span>,  <span style="color: #000000;">40</span> <span style="color: #000000;">&#125;</span>, ;<br />   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"geleverd"</span>   , <span style="color: #ff0000;">"LEV"</span>     ,<span style="color: #00C800;">nil</span>,  <span style="color: #000000;">40</span> <span style="color: #000000;">&#125;</span>, ;<br />   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"backorder"</span>  , <span style="color: #ff0000;">"Back"</span>    ,<span style="color: #00C800;">nil</span>,  <span style="color: #000000;">45</span> <span style="color: #000000;">&#125;</span>, ;<br />   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"benaming"</span>   , <span style="color: #ff0000;">"Benaming"</span>,<span style="color: #00C800;">nil</span>, <span style="color: #000000;">530</span> <span style="color: #000000;">&#125;</span>, ;<br />   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"eenh_prijs"</span> , <span style="color: #ff0000;">"Prijs"</span>   ,<span style="color: #00C800;">nil</span>,  <span style="color: #000000;">65</span> <span style="color: #000000;">&#125;</span>, ;<br />   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"korting"</span>    , <span style="color: #ff0000;">"Kor"</span>     ,<span style="color: #00C800;">nil</span>,  <span style="color: #000000;">40</span> <span style="color: #000000;">&#125;</span>, ;<br />   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"totaal"</span>     , <span style="color: #ff0000;">"Totaal"</span>  ,<span style="color: #00C800;">nil</span>,  <span style="color: #000000;">60</span>  <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span>  <span style="color: #0000ff;">XBROWSE</span>  oLbxdet ;<br />      DATASOURCE <span style="color: #ff0000;">"detail"</span> ;<br />      COLUMNS aVelden;<br />      <span style="color: #0000ff;">font</span> oXbrwFont;<br />      <span style="color: #0000ff;">ID</span> <span style="color: #000000;">9000</span> ;<br />      <span style="color: #0000ff;">OF</span>  oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>;<br />      CELL LINES FOOTERS NOBORDER FASTEDIT<br /><br />      oLbxdet:<span style="color: #000000;">lAutoAppend</span>:=.t.<br />.....<br /><br />        WITH OBJECT :<span style="color: #000000;">PRIJS</span><br />           :<span style="color: #000000;">nEditType</span>     := EDIT_GET<br />           :<span style="color: #000000;">bOnChange</span>     := <span style="color: #000000;">&#123;</span> |oCol,uOldVal| Herberekening<span style="color: #000000;">&#40;</span> oLbxdet, oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />           :<span style="color: #000000;">bKeyChar</span>      := <span style="color: #000000;">&#123;</span> |k| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> k == VK_RETURN, <span style="color: #000000;">&#40;</span> oLbxdet:<span style="color: #000000;">GoRight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />        ENDWITH<br /><br />        WITH OBJECT :<span style="color: #000000;">KOR</span><br />           :<span style="color: #000000;">nEditType</span>     := EDIT_GET<br />           :<span style="color: #000000;">bOnChange</span>     := <span style="color: #000000;">&#123;</span> |oCol,uOldVal| Herberekening<span style="color: #000000;">&#40;</span> oLbxdet, oCol:<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />           :<span style="color: #000000;">bKeyChar</span>      := <span style="color: #000000;">&#123;</span> |k| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> k == VK_RETURN, <span style="color: #000000;">&#40;</span> oLbxdet:<span style="color: #000000;">GoRight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />        ENDWITH<br /><br /><span style="color: #00C800;">function</span> Herberekening<span style="color: #000000;">&#40;</span>oBrw,oCol<span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> nTotaal:=<span style="color: #000000;">0</span><br />  nTotaal = <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">BES</span>:<span style="color: #000000;">value</span> * oBrw:<span style="color: #000000;">prijs</span>:<span style="color: #000000;">value</span><span style="color: #000000;">&#41;</span> - ;<br />            <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">BES</span>:<span style="color: #000000;">value*oBrw</span>:<span style="color: #000000;">prijs</span>:<span style="color: #000000;">value</span><span style="color: #000000;">&#41;</span>*oBrw:<span style="color: #000000;">kor</span>:<span style="color: #000000;">value</span>/<span style="color: #000000;">100</span><span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #000000;">totaal</span>:<span style="color: #000000;">varput</span><span style="color: #000000;">&#40;</span>nTotaal<span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #000000;">BACK</span>:<span style="color: #000000;">varput</span><span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">BES</span>:<span style="color: #000000;">value</span> - oBrw:<span style="color: #000000;">LEV</span>:<span style="color: #000000;">value</span><span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> .t.<br /><br /> </div>[/code:1tmdsswh]
editing yunus invoice
[quote="Marc Venken":3t7qkxwt]Silvio, In Yunus, the NET is calculated in the header part of the xbrowse. Did you change that also ? Position is now column 9 in your sample. The calculation for tax = // not so : nTotalTax := (nTotalRow*100)/ntax NTotalTax:= (nTotalrow * nTax) / 100 Tip : Consider using that header name in your functions for better reading and sure when you add a column, all formulas will go wrong. With the names you have no problems. oBrw:NET:VarPut( value ) instead of oBrw:acols[9]:varput(value)[/quote:3t7qkxwt] you're right (nTotalRow*ntax)/100 oBrw:NET:VarPut( nTotalTax )Not run ok oBrw:AMOUNT:VarPut( nTotalRow ) Not run ok
editing yunus invoice
Hello Silvio, Here are some tests for printing from yunus.prg. Best regards, Otto Yunus as a "Web service" [url:z1m5o1tv]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=39356&p=234848&hilit=yunus&sid=e05155d95ce8bc1e7ddb7918b5d4992c&sid=e05155d95ce8bc1e7ddb7918b5d4992c#p234848[/url:z1m5o1tv] EasyReport [url:z1m5o1tv]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=36536&p=218073&hilit=yunus&sid=e05155d95ce8bc1e7ddb7918b5d4992c&sid=e05155d95ce8bc1e7ddb7918b5d4992c#p218073[/url:z1m5o1tv] HTML report for yunus [url:z1m5o1tv]http&#58;//forums&#46;fivetechsupport&#46;com/search&#46;php?keywords=yunus&terms=all&author=Otto&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search&sid=e05155d95ce8bc1e7ddb7918b5d4992c[/url:z1m5o1tv] yunus.exe and the web application work with the same dbf files. [url:z1m5o1tv]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=39823&p=237531&hilit=yunus&sid=e05155d95ce8bc1e7ddb7918b5d4992c&sid=e05155d95ce8bc1e7ddb7918b5d4992c#p237531[/url:z1m5o1tv]
editing yunus invoice
[quote="Silvio.Falconi":ijfi9kmm] oBrw:NET:VarPut( nTotalTax )Not run ok oBrw:AMOUNT:VarPut( nTotalRow ) Not run ok [/quote:ijfi9kmm] The problem is that ndescount = undifined ?? and it failes at if ndescount > 0 if you comment them out, you get no error, but i'm sure that the browse is setup correct. I never use the ADD to oBrw at 6 HEADER "Amount" stuff
editing yunus invoice
[quote="Otto":1firijbv]Hello Silvio, Here are some tests for printing from yunus.prg. Best regards, Otto Yunus as a "Web service" [url:1firijbv]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=39356&p=234848&hilit=yunus&sid=e05155d95ce8bc1e7ddb7918b5d4992c&sid=08faa916dcae6a4af1ca826558c6c5d7#p234848[/url:1firijbv] EasyReport [url:1firijbv]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=36536&p=218073&hilit=yunus&sid=e05155d95ce8bc1e7ddb7918b5d4992c&sid=08faa916dcae6a4af1ca826558c6c5d7#p218073[/url:1firijbv] HTML report for yunus [url:1firijbv]http&#58;//forums&#46;fivetechsupport&#46;com/search&#46;php?keywords=yunus&terms=all&author=Otto&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search&sid=08faa916dcae6a4af1ca826558c6c5d7[/url:1firijbv] yunus.exe and the web application work with the same dbf files. [url:1firijbv]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=39823&p=237531&hilit=yunus&sid=e05155d95ce8bc1e7ddb7918b5d4992c&sid=08faa916dcae6a4af1ca826558c6c5d7#p237531[/url:1firijbv][/quote:1firijbv] Otto, I not asked for print or report features of yunus.prg I wish use yunus.prg and adapt it for a italian invoice , it is too differentbfrom invoice of yunus.prg you know we italians have a tax for each articles
editing yunus invoice
[quote:1xm9vl0j] I wish use yunus.prg and adapt it for a italian invoice , it is too differentbfrom invoice of yunus.prg you know we italians have a tax for each articles[/quote:1xm9vl0j] Silvio, Taxes are no problem. In Belgium there are also several taxes, and you simple put a tax code for each article and you make a tax function to process them when printing. But I suppose that there is more stuff involved ? I get many invoices from Portugal, are they like the once in Italia ?
editor de PDF todo en FW y Harbour sin dll
Hola Esta concluido el editor de archivos PDF, incluyendo el proceso se impresión, todao basado en MUPDF Haber si se aiman a desarrollar una clase para emtir reportes a pdf, para conluir con un nuevo editor de reportes Pueden bajar el ejecutable del siguiente link <!-- m --><a class="postlink" href="http://www.mediafire.com/download/0tci7fr2mu2v8o7/quarkpdf.exe">http://www.mediafire.com/download/0tci7 ... arkpdf.exe</a><!-- m --> Estoy puliendo algunos temas como el meter para la impresión, luego le dosy todas la fuentes Saludos Arturo
editor de PDF todo en FW y Harbour sin dll
Arturo, Muchas gracias por tu trabajo. Quizá esté yo equivocado, pero me pareció más bien un visualizador... no encontré cómo editar. En todo caso magnífico trabajo. Ha quedado una interfaz muy bonita. Enhorabuena ! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saludos
editor de PDF todo en FW y Harbour sin dll
Tiene un aspecto excelente! Sigo el post con interés <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
editor de PDF todo en FW y Harbour sin dll
Si en realidad es un visor de archivos PDFs, la intención es tener un emisor de repotes alternativo al que trae el fw
editor de PDF todo en FW y Harbour sin dll
Tiene muy buena pinta
editor de PDF todo en FW y Harbour sin dll
Quizá este visor es lo unico que le falta a nuestros programas para que todas las impresiones sean hechas a pdf "directamente". Thefulll habia hecho una clase para generar pdfs con el mismo estilo de la existosa TImprime/ImpUtil Amigos.... ahí hay un camino <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
editor de PDF todo en FW y Harbour sin dll
Para visualizarlo esta super a si no tienen el adobe reader instalado ya no importaría <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
editor de PDF todo en FW y Harbour sin dll
Holá, en el scroll del mouse, no está bién. Como hago para llamar el *.pdf directamente via linea de comando? Gracias. Saludos.
editor de PDF todo en FW y Harbour sin dll
Hola tocando el tema de los PDF alguien sabe como evitar este error al abrir un archivo.pdf [img:3v9umxby]http&#58;//2&#46;bp&#46;blogspot&#46;com/_exIhQH8lkAA/R2klQVaV-pI/AAAAAAAAABE/kvltkipHKek/s400/pdfAdobeError&#46;JPG[/img:3v9umxby] me tiene atorada <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
editor de PDF todo en FW y Harbour sin dll
[quote="arturo tamayo":2609odrt]Estoy puliendo algunos temas como el meter para la impresión, luego le dosy todas la fuentes[/quote:2609odrt] Hola Arturo, Estoy muy interesado en ver como lo hiciste. Aguardo los fuentes, mismo que sea bien básico. Saludos
editor de PDF todo en FW y Harbour sin dll
Hora Sr. Arturo, também estou muito interessado.
editor de PDF todo en FW y Harbour sin dll
Nice application Thank you
editor de PDF todo en FW y Harbour sin dll
[quote="bpd2000":1n21ox3j]Nice application Thank you[/quote:1n21ox3j] ++1 Tambien estoy interesado en tu clase.. Saludos cordiales . Atte: Adrian C. C. <!-- e --><a href="mailto:acc69@hotmail.com">acc69@hotmail.com</a><!-- e -->
editor de campo memo !!!!
Preciso de um editor de texto para editar campo memo e que tenha funções de negritar e identar o textoAlguém tem algo parecido ?ficarei grato a quem puder me ajudar !!<!-- e --><a href="mailto:laurentinocarlos@bol.com.br">laurentinocarlos@bol.com.br</a><!-- e --><!-- e --><a href="mailto:mcainformatica@bol.com.br">mcainformatica@bol.com.br</a><!-- e -->
editor de campo memo !!!!
Laurentino:Tal vez la clase TRichEdit pueda servirte, mira un ejemplo en \FWH\Samples\TestRich.Prg y TestRtf.PrgSaludos
editor de campo memo !!!!
Armando,obrigado acho que é isso que preciso !!!!
editor de campo memo !!!!
Onde consigo a RichEdit 3.0 ??? ela tem a opção de justify e resolveria o meu problema.Obrigado a todos que puderem me ajudar !!!
editor de pdf codigo incluido
puden bajar de <!-- m --><a class="postlink" href="http://ifile.it/b6fpxe7/PdfVIew.zip">http://ifile.it/b6fpxe7/PdfVIew.zip</a><!-- m --> por favor testen y enviamen los errores para corregir falta la funcion de imprimir pdf que la estoy trabajando, luego vendra loque ha desarrollado the full la clase utilpdf. con esto podemos dejar de lado el ya obsoleto tprinter y el rpreview todo esta hecho con fwh y harbour salu2 arturo
editor de pdf codigo incluido
Arturo, Gracias, lo voy a revisar cuando tenga un ratito y a ver como lo podemos aprovechar <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
editor de pdf codigo incluido
Muy buen trabajo Arturo Falta la cabecera Tpdfview.ch Saludos, Adhemar
editor de pdf codigo incluido
Arturo, link no funciona más... Gracias, saludos.
editor de pdf codigo incluido
Arturo, muchas gracias. Seria muy bueno de verdad. Aun uso la magnifica clase the full, utilprn. Gracias y saludos Ruben Dario Fernandez
editor de pdf codigo incluido
Arturo, en enlace está roto. Saludos
editor de pdf codigo incluido
[quote="horacio":2rcatjqp]Arturo, en enlace está roto. Saludos[/quote:2rcatjqp] +1
editor de pdf codigo incluido
Hola el Link ya no funciona <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
editor desconocido
¿Qué hacer para evitar este mensaje del windows desconocido? Como en el ejemplo: <!-- m --><a class="postlink" href="http://www.palpitedigital.com/desativar-aviso-de-seguranca-windows/">http://www.palpitedigital.com/desativar ... a-windows/</a><!-- m --> Gracias, saludos.
editor desconocido
Buen TIPS Gracias,,
editor desconocido
Gracias
editor para mysql empotrado...?
Hola. tengo tablas creadas con tdolphin utilizando el metodo empotrado, existe alguna utilidad para abrir las tablas? gracias.
editor para mysql empotrado...?
Estimado No entiendo bien de que si por ser empotrado la utilidad deba ser particular Yo uso MariaDB, que trae una aplicación free: HeidiSQL La podes bajar de: [url:1bfdap5t]http&#58;//www&#46;heidisql&#46;com/download&#46;php[/url:1bfdap5t] Saludos
editor para mysql empotrado...?
Te refieres a Embebbed server cierto? Yo es su oportunidad busque y no encontre...
editor para mysql empotrado...?
exacto.
efecto BLINK en button
Compañeros: Necesito que al pulsar un button cree un efecto BLINK en el button. Tengo el siguiente codigo: [code:mh0dd7j6] for x=1 to 6 if int(x/2)!=(x/2) && numero impar aforo&#91;temporal->nposicion&#93;&#58;SetColor( CLR_WHITE, nRGB(255,128,0), CLR_WHITE ) else aforo&#91;temporal->nposicion&#93;&#58;Setcolor( CLR_WHITE, CLR_BLUE, CLR_WHITE ) endif aforo&#91;temporal->nposicion&#93;&#58;refresh() inkey(1) && si sustituimos inkey por un msginfo('prueba') funciona perfectamente next [/code:mh0dd7j6] Este codigo funciona si sustituimos el inkey por un msginfo para ver la prueba. Obviamente con msginfo() no sería operativo. ¿ Por qué no funciona con inkey() ?, ¿ Hay otra manera ? Mil gracias. LOREN
efecto BLINK en button
Prueba con SysRefresh()
efecto BLINK en button
prueba con esta clase que hice... <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=72767#p72767">viewtopic.php?p=72767#p72767</a><!-- l -->
efecto BLINK en button
jicorral: Perfecto!! funcionó de maravilla. Daniel: Utilizo la clase sButton de Manuel Mercado y me sería un engorro cambiar el codigo a BTNBMP. Mil gracias a ambos. Loren
efectos para dialogos
Aqui les dejo codigo para algunos efectos para dialogos. Espero le gusten #include 'fivewin.ch' #define AW_HOR_POSITIVE 1 // Animates the window from left to right. This flag can be used with roll or slide animation. #define AW_HOR_NEGATIVE 2 // Animates the window from right to left. This flag can be used with roll or slide animation. #define AW_VER_POSITIVE 4 // Animates the window from top to bottom. This flag can be used with roll or slide animation. #define AW_VER_NEGATIVE 8 // Animates the window from bottom to top. This flag can be used with roll or slide animation. #define AW_CENTER 16 // Makes the window appear to collapse inward if AW_HIDE is used or expand outward if the AW_HIDE is not used. #define AW_HIDE 65536 // Hides the window. By default, the window is shown. #define AW_ACTIVATE 131072 // Activates the window. #define AW_SLIDE 262144 // Uses slide animation. By default, roll animation is used. #define AW_BLEND 524288 // Uses a fade effect. This flag can be used only if hwnd is a top-level window. Function Main() Local oDlg Local oBtn Define Dialog oDlg From 10, 10 To 300, 500 Pixel @ 10, 10 Button oBtn Size 50, 10 Of oDlg Pixel Action oDlg : End() Activate Dialog oDlg On Init Centra( oDlg ) Centered Valid( Fade( oDlg ), .t. ) Return 0 Function fade( oDlg ) If( AnimateWindow( oDlg : hWnd, 1000, AW_BLEND + AW_HIDE ) == 0 ) oDlg : Hide() endif Return 0 Function Centra( oDlg ) AnimateWindow( oDlg : hWnd, 200, AW_CENTER ) Return 0 DLL32 function AnimateWindow( hWnd As LONG, dwTime As LONG, dwFlags As LONG ) AS LONG PASCAL ; from "AnimateWindow" lib "user32.DLL"
efectos para dialogos
Horacio, Muy bueno, gracias
efectos para dialogos
Horacio, Buenisimo!!
efectos para dialogos
[img:1bdlbl42]http&#58;//www&#46;pctoledo&#46;com&#46;br/forum/images/smiles/pct32&#46;gif[/img:1bdlbl42] [img:1bdlbl42]http&#58;//www&#46;pctoledo&#46;com&#46;br/forum/images/smiles/pct21&#46;gif[/img:1bdlbl42]
efectos para dialogos
Horacio: Muy buenos efectos para los dialogos mis felicitaciones, solo una duda, porque con dialogos con imagenes en jpg no muestra las imagenes..? Estuve haciendo pruebas con dialogos desde recursos y no muestra la imagen.. Saludos..
efectos para dialogos
cuatecatl82, fijate de hacer un refresh al dialogo después de correr el efecto. Eso es lo que yo hago
efectos para dialogos
Probado, funciona de maravillas, gracias por el aporte..
efectos para dialogos
Perfecto, funciona y se ve muy bien.
efectos para dialogos
<!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> muito show
efectos para dialogos
Espectacular !!!! Podria alguien postear un ejemplo de las otras posibilidades? Saludos y gracias Ruben Fernandez
efectos para dialogos
Suban alguna imagen plisss.. Salu2
efectos para dialogos
!!!!!!!!!!!!!!!!!!!!!!!! DE CHIPOCLES MAESE NADA MAS NOSE DONDE PONER EL ODLG:REFRES() NO ME REFRESCA AL ENTRA EL DIALOGO FELICIDADES POR EL APORTE
efectos para dialogos
YA LE ENCONTRE ENDONDE PAR LOS QUE NO. FUNCTION CENTRA (ODLG) ... ODLG:REFRESH() RETURN 0
efectos para dialogos
Me tome la libertad de hacer unas modificaciones que permiten ver el efecto de forma aleatoria, para darle un poco de mas vista al ejemplo.. FUNCTION Centra( oDlg ) [b:1juwnbfu]LOCAL nSel:= nRandom(4) LOCAL cAni:= "" IF nSel == 1 cAni:= AW_HOR_POSITIVE ELSEIF nSel == 2 cAni:= AW_HOR_NEGATIVE ELSEIF nSel == 3 cAni:= AW_VER_POSITIVE ELSEIF nSel == 4 cAni:= AW_VER_NEGATIVE ELSEIF nSel == 0 cAni:= AW_BLEND ENDIF [/b:1juwnbfu] AnimateWindow( oDlg : hWnd, 200, cAni ) [b:1juwnbfu]oDlg:Refresh()[/b:1juwnbfu] RETURN 0 Saludos desde México.. <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
efectos para dialogos
Horacio: !Espectacular¡ Gracias. Rubén: De lo que entendi. Efecto de izquierda a derecha *----------------------------- Function Izquierda( oDlg ) AnimateWindow( oDlg : hWnd, 200, [color=red:6qit9y2l]AW_HOR_POSITIVE[/color:6qit9y2l]) oDlg:refres() Return 0 Efecto de derecha izquierda *----------------------------- Function Derecha( oDlg ) AnimateWindow( oDlg : hWnd, 200, [color=red:6qit9y2l]AW_HOR_NEGATIVE[/color:6qit9y2l]) oDlg:refres() Return 0 Efecto de arriba hacia abajo *----------------------------- Function Arriba( oDlg ) AnimateWindow( oDlg : hWnd, 200, [color=red:6qit9y2l]AW_VER_POSITIVE[/color:6qit9y2l]) oDlg:refres() Return 0 Efecto de abajo hacia arriba *----------------------------- Function Abajo( oDlg ) AnimateWindow( oDlg : hWnd, 200, [color=red:6qit9y2l]AW_VER_NEGATIVE[/color:6qit9y2l]) oDlg:refres() Return 0 El 200 es tiempo y si haces la prueba y aumentas a 500 o 1000 se te demora mucho más el efecto. Saludos,
efectos para dialogos
BUENA esa Dany con la modificación que hiciste el efecto es aleatorio, mis respetos.. <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Saludos,
efectos para dialogos
Willy: no hay manera de poner imágenes porque el efecto es dinámico. Probá lo que escribió Dany en este post. Ahí podrás ver todos los efectos. Muy bueno Dany la rutina de efectos aleatorios. Como dice Mauro los parámetros de la función son el handle del dialogo, el tiempo de ejecución del efecto y el flags del mismo.
efectos para dialogos
Mauricio: Gracias, funciona de maravillas. Saludos Ruben Fernandez
efectos para dialogos
Sencillamente espectacular, genial el aporte que haces. Pero como siempre quemos mas he intentado colocarlo en la ventana principal de la aplicacion pero no me funciona. ¿Existe alguna forma de hacerlo?
efectos para dialogos
leandro : Si la ventana es MDI no hay manera que funcione. Si la ventana es ¨normal¨ funciona como en un dialogo. Será cuestión de investigar a ver quién encuentra la punta al ovillo. Saludos
ejecutable ya construído
Estimados Antonio, Manuel , Cristobal y todos los que colaboran Muchas gracias por su ayuda en esta herramienta, no se si sea posible incluyan el exe ya construído porque tengo una version antigua de FWH y hasta que no me actualice no podre probarlo y en ese caso han de estar muchso usuarios saludos Wilson
ejecutable ya construído
Que version usas?
ejecutable ya construído
2.7 se que es muuuy antigua pero en poco me actualizo gracias
ejecutable ya construído
Lo tienes en descargas la version construida con los fuentes del repositorio a dia y hora actual
ejecutable ya construído
Cristobal, muchas gracias y perdon por la ignorancia saludos
ejecutable ya construído
Perdonar, no soy quien, Ayudarnos, en lo que se pueda, que bastante difíciles están ya las cosas
ejecutar codigo de bloque dentro de otro
Hola foro, Tengo un wBrowse (hdc) con informacion de una tabla usando tarray, Quiero que al pulsar Click se ejecute otro codigo de bloque dentro del mismo codigo de bloque, algo asi: ::oBrw[6]:bChangeLR := {|| msginfo("cambio columna") } ::oBrw[6]:bLClicked := {|| ::oBrw[6]:bChangeLR } // Resultado "cambio columna" como hacerlo? gracias paco