topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
Ajustar contenido página web en control TDockPnel
|
De esta forma me abre Internet Explorer Suelto, no en una ventana de mi aplicación.
Igualmente no mantine la estetita de la pagina.
Gracias por tu interes João
|
Ajustar contenido página web en control TDockPnel
|
Gracias por la respuesta João. El tema es que no funciona en webs con estilos y jquery.
Con tu ejemplo, solo cambiando la url, me la muestra sin formato
[code=fw:3j1trkcn]<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;">STATIC</span> oActiveX<br /><br /><span style="color: #00C800;">FUNCTION</span> CmSoft_Web<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oChildWnd, cTitle<br /><br /> cTitle := <span style="color: #ff0000;">"FiveWin Brasil"</span><br /><br /> MsgWait<span style="color: #000000;">(</span> <span style="color: #ff0000;">"CONECTANDO AL FIVEWIN MUNDIAL..."</span>, ;<br /> <span style="color: #ff0000;">"AGUARDE UM MOMENTO POR FAVOR... "</span>, <span style="color: #000000;">2.0</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oChildWnd <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;">600</span>, <span style="color: #000000;">800</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> cTitle<br /><br /> oActiveX = TActiveX<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oChildWnd, <span style="color: #ff0000;">"Shell.Explorer.2"</span> <span style="color: #000000;">)</span><br /><br /> oActivex&#<span style="color: #000000;">058</span>;Silent := .T. <span style="color: #B900B9;">//Si le sacas esto muestra los errores de lo que no puede ejecutar</span><br /><br /> oChildWnd:<span style="color: #000000;">oClient</span> = oActiveX<br /><br /> oActiveX&#<span style="color: #000000;">058</span>;Do<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Navigate2"</span>, <span style="color: #ff0000;">"https://app.pedidosbcn.com/tienda/tiendadepizzas"</span> <span style="color: #000000;">)</span><br /><br /> oActivex&#<span style="color: #000000;">058</span>;SetFocus<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oChildWnd<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3j1trkcn]
|
Ajustar contenido página web en control TDockPnel
|
Y ahora?
[code=fw:y29yhofg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// \samples\CMSOFT2.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cUrl, cParam, cUrlFin, oDlg, oBtn, oFnt, oFont<br /><br /> cUrl := <span style="color: #000000;">(</span> <span style="color: #ff0000;">"https://app.pedidosbcn.com/tienda/tiendadepizzas"</span> <span style="color: #000000;">)</span><br /><br /> cParam := <span style="color: #000000;">(</span> <span style="color: #ff0000;">"#hl=br&gs_nf=1&cp=5&gs_id=m&xhr=t&q=fivewin&pf=p&biw=1024&bih=502&sclient=psy-ab&oq=fivew&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp=531bac45c1a76a40"</span> <span style="color: #000000;">)</span><br /><br /> cUrlFin := <span style="color: #000000;">(</span> cUrl + cParam <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <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;">600</span>, <span style="color: #000000;">800</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">(</span> <span style="color: #000000;">(</span> MeuWinExec<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Start Iexplore.Exe "</span> + cUrlFin, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MeuWinExec<span style="color: #000000;">(</span> cParametro <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cExecute := GetPvProfString<span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// NT, 2000 e XP</span><br /> <span style="color: #00C800;">IF</span> IsWinNT<span style="color: #000000;">(</span><span style="color: #000000;">)</span> .OR. IsWin2000<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cExecute := GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"COMSPEC"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" /C "</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> WinExec<span style="color: #000000;">(</span> cExecute + cParametro, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//-> FIN</span><br /> </div>[/code:y29yhofg]
Regarads, saludos.
|
Ajustar contenido página web en control TDockPnel
|
No comprendo porque no funciona con el sitio de CMSOFT??
#Include "FiveWin.ch"
FUNCTION Main()
// FUNCIONA PERFECTO
// LOCAL cURL := "http://forums.fivetechsupport.com/index.php?sid=11ea51a82e1ce30643d2156006fbcb76"
// NO FUNCIONA. No comprendo ???
LOCAL cUrl := "https://app.pedidosbcn.com/tienda/tiendadepizzas"
LOCAL nPost := 1, n
LOCAL cGoTo := cUrl + "p=" + AllTrim( Str( nPost ) ) + "&p=" + AllTrim( Str( nPost ) )
LOCAL cPost := WebPageContents( cGoTo, .T. )
for n = 1 to 1 // 5
cGoTo = cUrl + "p=" + AllTrim( Str( nPost ) ) + "&p=" + AllTrim( Str( nPost ) )
HtmlView( cGoTo )
nPost++
next
RETURN NIL
FUNCTION HtmlView( cUrl, cTitle )
LOCAL oDlg, oActiveX
DEFAULT cTitle := cUrl
DEFINE DIALOG oDlg TITLE cTitle SIZE 1000, 600 RESIZABLE
@ 0, 0 ACTIVEX oActiveX PROGID "Shell.Explorer.2" OF oDlg
oActiveX:nDlgCode = DLGC_WANTALLKEYS
oDlg:oClient = oActiveX
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oDlg:Resize(), oActiveX:Silent := .T., oActiveX:Navigate( cURL ) )
RETURN NIL
Regards, saludos.
|
Ajustar contenido página web en control TDockPnel
|
João, si funciona el sitio, lo que no funciona son los estilos y javascript que tiene el sitio, si lo lanzamos dentro de la ventana.
Si le sacas oActiveX:Silent := .T., veras que te dice que no puede cargar. Eso que no puede cargar es lo que le da estilo y funcionalidad a la web.
Con tu ultimo ejemplo, simplemente me da un error en la carga de la pagina, porque esta no existe mi web.
Con una pequeña correccion la pude hacer andar pero sin exito como lo veo
La clausula RESIZABLE no es valida en mi version de Fivewin.
Asi es como deberia verse mi web <!-- m --><a class="postlink" href="https://app.pedidosbcn.com/tienda/tiendadepizzas">https://app.pedidosbcn.com/tienda/tiendadepizzas</a><!-- m -->
[img:26yuzbov]https://i.postimg.cc/cH8xStVs/image.png[/img:26yuzbov]
Así es como la veo
[img:26yuzbov]https://i.postimg.cc/hvBBRyLr/image.png[/img:26yuzbov]
|
Ajustar contenido página web en control TDockPnel
|
Webview2 for Fivewin
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=40854">viewtopic.php?f=17&t=40854</a><!-- l -->
|
Ajustar contenido página web en control TDockPnel
|
Cristobal:
No funciona con bcc7 cierto?
|
Ajustar contenido página web en control TDockPnel
|
Cesar, es posible que para MinGw intente hacer la lib, pero las pruebas que he hecho con Borland, ha sido imposible. Quizás más adelante lo intente de nuevo pero no tiene pinta de que llegue a ser posible, ya se verá.
|
Ajustar contenido página web en control TDockPnel
|
Entedido, muchas gracias Cristobal.
|
Ajustar controles al cambiar tamaño de ventana MDICHILD.
|
Hola a todos, tengo una ventana MDICHILD y quisiera saber si hay alguna forma de ajustar el tamaño de los controles contenidos en la ventana al tamaño de la misma.Es decir, si agrando la ventana que los controles se ajusten al nuevo tamaño y lo mismo si la achico.Algo como por ejemplo hace la vista previa, que al achicar o agrandar la ventana todos sus controles se adaptan al tamaño.Desde ya muchas gracias.Saludos desde Argentina, Esteban.
|
Ajustar controles al cambiar tamaño de ventana MDICHILD.
|
Esteban,Si algun control esta asignado a oTop, oLeft, oBottom, oRight o oClient entonces se redimensionaran automaticamente.Para los demas tienes que programarlo desde el evento bResized de la ventana.
|
Ajustar controles al cambiar tamaño de ventana MDICHILD.
|
Muchas gracias Antonio.Lo probaré.Saludos, Esteban.
|
Ajustar el Folder.
|
Aunque ya he acabado casi con el tema de las estanterías, fijaros que cuando son varias propfundiades el folder no me queda bien, me gustaria que quedara más ajustado arriba como cuando no uso folder,
Agradecería si alguien tuviera alguna idea para ajustar Con Folder. Gracias de ante mano
Sin folder
[img:1zqoag4h]https://s29.postimg.org/vej71me07/Sin_Folder.jpg[/img:1zqoag4h]
Con Folder :
[img:1zqoag4h]https://s30.postimg.org/9jubeeuip/con_Folder.jpg[/img:1zqoag4h]
Los parametros de style son :
[img:1zqoag4h]https://s29.postimg.org/3tn0kia93/image.jpg[/img:1zqoag4h]
|
Ajustar el Folder.
|
Yo lo tengo definido en mi .rc
[quote:jj8nlvaz]
CONTROL "", 100, "TFOLDEREX", 0x50010000, 5, 4, 550, 370, 0x00000000
[/quote:jj8nlvaz]
|
Ajustar el Folder.
|
Si le pongo estos parametros me da el siguiente error al compilar :
Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: FOLDER_VARIOS
Stack Calls
===========
Called from: .\source\classes\DIALOG.PRG => CREATEDLGERROR(558)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(296)
Called from: .\estanter.PRG => ESTANTERIADATOS(0)
Called from: .\estanter.PRG => (b)ESTANTER(0)
Called from: .\jose.PRG => (b)CODBROWSE_NEW(0)
Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:LDBLCLICK(917)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1733)
Called from: .\source\classes\WBROWSE.PRG => TCBROWSE:HANDLEEVENT(1647)
Called from: .\window.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: .\window.PRG => TMDIFRAME:ACTIVATE(0)
Called from: .\planman.PRG => MAIN(0)
|
Ajustar el Folder.
|
Tambien cambia en tu .prg el REDEFINE FOLDER por REDEFINE FOLDEREX
Esta son las opciones del redefine
[code=fw:malgzrl6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> FOLDEREX <span style="color: #000000;">[</span><oFolder><span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ID</span> <nId> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <of: <span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">WINDOW</span>, DIALOG> <oWnd> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <prm: <span style="color: #0000ff;">PROMPT</span>, <span style="color: #0000ff;">PROMPTS</span>, ITEMS> <cPrompt,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <bm: <span style="color: #0000ff;">BITMAPS</span>, <span style="color: #0000ff;">IMAGES</span>, BMPS> <cbmps,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <dlg: <span style="color: #0000ff;">DIALOG</span>, <span style="color: #0000ff;">DIALOGS</span>, <span style="color: #0000ff;">PAGE</span>, PAGES> <cDlgsName,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> TAB HEIGHT <ntabheight> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> OPTION <nOption> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ROUND</span> <nRound> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">SEPARATOR</span> <nSep> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <lAdjust: <span style="color: #000000;">ADJUST</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lStretch: <span style="color: #000000;">STRETCH</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">POPUP</span> <upop><span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> ALIGN <nAlign,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> BRIGHT <nBright> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ACTION</span> <uAction> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <uChange> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> TAB <uPaint> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #0000ff;">TEXT</span> <uPaintxt> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> HELPTOPICS <cnHelpids,...> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <layout: <span style="color: #000000;">TOP</span>, <span style="color: #0000ff;">LEFT</span>, BOTTOM, RIGHT> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lAnimate: <span style="color: #000000;">ANIMATE</span>> <span style="color: #000000;">[</span> SPEED <nSpeed> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">]</span>; <span style="color: #B900B9;">//-->> byte-one 2010</span><br /> <span style="color: #000000;">[</span> <lTransparent: <span style="color: #000000;">TRANSPARENT</span>> <span style="color: #000000;">]</span></div>[/code:malgzrl6]
|
Ajustar el Folder.
|
Lo he cambiado, y la verdad es que ha mejorado bastante el aspecto, pero el xbrowse no se me ajusta al folder,
Por ejemplo son 10 columnas y solo me salen nueve cuando hay espacio a la derecha.
Se que es cuestión de estética pero la estética es importante también.
Os dejo también el código.
Gracias por vuestra ayuda .
[img:2ximatfu]https://s28.postimg.org/gry4yjhn1/FOLDEREX.jpg[/img:2ximatfu]
[code=fw:2ximatfu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> vcolumnas<span style="color: #000000;">+1</span><br /> <span style="color: #00C800;">if</span> i = <span style="color: #000000;">1</span><br /> AADD<span style="color: #000000;">(</span>V_Header,<span style="color: #ff0000;">" "</span><span style="color: #000000;">)</span><br /> AADD<span style="color: #000000;">(</span>V_Colsize,<span style="color: #000000;">50</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /> AADD<span style="color: #000000;">(</span>V_Header,<span style="color: #ff0000;">"Columna "</span>+alltrim<span style="color: #000000;">(</span>transform<span style="color: #000000;">(</span>i<span style="color: #000000;">-1</span>,<span style="color: #ff0000;">"999"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br />* AADD<span style="color: #000000;">(</span>V_Header,chr<span style="color: #000000;">(</span>VASCII++<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> AADD<span style="color: #000000;">(</span>V_Colsize,<span style="color: #000000;">100</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">next</span> i<br /><br /><br /><br />vprompt:= <span style="color: #ff0000;">'" 1 Profundidad"'</span><br /><span style="color: #00C800;">for</span> i:=<span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> vprofundo<br /><br /> vprompt:=vprompt+<span style="color: #ff0000;">","</span>+<span style="color: #ff0000;">'"'</span>+alltrim<span style="color: #000000;">(</span>transform<span style="color: #000000;">(</span>i,<span style="color: #ff0000;">"999"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">' Profundidad"'</span><br /><span style="color: #00C800;">next</span> i<br />vfolders:=<span style="color: #ff0000;">'"FOLDERS"'</span><br /><span style="color: #00C800;">FOR</span> i:= <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> vprofundo<br /> vfolders:=vfolders+<span style="color: #ff0000;">","</span>+<span style="color: #ff0000;">'"FOLDERS"'</span><br /><span style="color: #00C800;">next</span> i<br /><br /> aData := Array<span style="color: #000000;">(</span> vprofundo <span style="color: #000000;">)</span><br /> aData<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> := Array<span style="color: #000000;">(</span> vfilas, vcolumnas<span style="color: #000000;">+1</span> <span style="color: #000000;">)</span><br /><br /> AEval<span style="color: #000000;">(</span> aData<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, <span style="color: #000000;">{</span> |a,k| a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> := chr<span style="color: #000000;">(</span><span style="color: #000000;">(</span> k <span style="color: #000000;">)</span><span style="color: #000000;">+64</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">for</span> i:= <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> vcolumnas<span style="color: #000000;">+1</span><br /> AEval<span style="color: #000000;">(</span> aData<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, <span style="color: #000000;">{</span> |a,k| a<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span> := space<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span> i<br /> AEval<span style="color: #000000;">(</span> aData, <span style="color: #000000;">{</span> |u,k| aData<span style="color: #000000;">[</span> k <span style="color: #000000;">]</span> := AClone<span style="color: #000000;">(</span> aData<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /> oBrw := Array<span style="color: #000000;">(</span> vprofundo <span style="color: #000000;">)</span><br /><br /> area:=<span style="color: #0000ff;">select</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cdestant := OpenDbf<span style="color: #000000;">(</span>fdestant,<span style="color: #000000;">1</span>, , , , kdestant,<span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">)</span><br /> <span style="color: #000000;">(</span>cdestant<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>DbSetOrder<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #000000;">(</span>cdestant<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>Dbgotop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> acdestan:=<span style="color: #0000ff;">select</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> dbseek<span style="color: #000000;">(</span>vestanteria<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span> .and. <span style="color: #000000;">(</span>cdestant<span style="color: #000000;">)</span>->estanteria = vestanteria<br /> aData<span style="color: #000000;">[</span><span style="color: #000000;">(</span>cdestant<span style="color: #000000;">)</span>->profundo<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">(</span>cdestant<span style="color: #000000;">)</span>->fila,<span style="color: #000000;">(</span>cdestant<span style="color: #000000;">)</span>->columna<span style="color: #000000;">+1</span><span style="color: #000000;">]</span>:= <span style="color: #000000;">(</span>cdestant<span style="color: #000000;">)</span>->articulo<br /> dbskip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /> <span style="color: #000000;">(</span>cdestant<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>Dbclosearea<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">select</span><span style="color: #000000;">(</span>area<span style="color: #000000;">)</span><br /><br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Dialog</span> oDDATOS <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"FOLDER_VARIOS"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Estanteria : "</span>+alltrim<span style="color: #000000;">(</span>vestanteria<span style="color: #000000;">)</span>+<span style="color: #ff0000;">" -- "</span>+alltrim<span style="color: #000000;">(</span>vdetallestanteria<span style="color: #000000;">)</span> <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">aMod</span><span style="color: #000000;">[</span><span style="color: #000000;">20</span><span style="color: #000000;">]</span>:<span style="color: #000000;">oWnd</span><br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvfcliente <span style="color: #0000ff;">Var</span> vfcliente <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvfnombre <span style="color: #0000ff;">Var</span> vfnombre <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvfarticulo <span style="color: #0000ff;">Var</span> vfarticulo <span style="color: #0000ff;">ID</span> <span style="color: #000000;">104</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvfdetalle <span style="color: #0000ff;">Var</span> vfdetalle <span style="color: #0000ff;">ID</span> <span style="color: #000000;">105</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvfcantidad <span style="color: #0000ff;">Var</span> vfcantidad <span style="color: #0000ff;">ID</span> <span style="color: #000000;">106</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvfpaquetes <span style="color: #0000ff;">Var</span> vfpaquetes <span style="color: #0000ff;">ID</span> <span style="color: #000000;">107</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvfcolumna <span style="color: #0000ff;">Var</span> vfcolumna <span style="color: #0000ff;">ID</span> <span style="color: #000000;">108</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvffila <span style="color: #0000ff;">Var</span> vffila <span style="color: #0000ff;">ID</span> <span style="color: #000000;">109</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">get</span> gvfprofundo <span style="color: #0000ff;">Var</span> vfprofundo <span style="color: #0000ff;">ID</span> <span style="color: #000000;">110</span> <span style="color: #0000ff;">of</span> oDDATOS <span style="color: #0000ff;">when</span> lsay<br /><br /> <span style="color: #0000ff;">REDEFINE</span> FOLDEREX oFld <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDDATOS <span style="color: #0000ff;">UPDATE</span>;<br /> <span style="color: #0000ff;">PROMPT</span> &vprompt <span style="color: #0000ff;">DIALOGS</span> &vfolders ;<br /> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">change</span> <span style="color: #000000;">(</span>refrescardatos<span style="color: #000000;">(</span>vestanteria,oBrw<span style="color: #000000;">[</span>oFld:<span style="color: #000000;">nOption</span><span style="color: #000000;">]</span>,oFld:<span style="color: #000000;">nOption</span>,vfilas<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> vprofundo<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> ;<br /> HEADERS V_Header ;<br /> SIZES V_ColSize ;<br /> DATASOURCE aData<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> <span style="color: #0000ff;">AUTOCOLS</span> CELL LINES NOBORDER FASTEDIT <span style="color: #0000ff;">of</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span>i<span style="color: #000000;">]</span><br /><br /> WITH OBJECT oBrw<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">bRClicked</span>:= <span style="color: #000000;">{</span>|| borrararticulo<span style="color: #000000;">(</span>aData,oBrw,oFld:<span style="color: #000000;">nOption</span>,vestanteria,vfilas,oFld<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">{</span>|| buscararticulo<span style="color: #000000;">(</span>aData,oBrw,oFld:<span style="color: #000000;">nOption</span>,vestanteria<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bKeychar</span> := <span style="color: #000000;">{</span>|nkey| iif<span style="color: #000000;">(</span>nkey=<span style="color: #000000;">13</span> .and. oBrw<span style="color: #000000;">[</span>oFld:<span style="color: #000000;">nOption</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nColSel</span> > <span style="color: #000000;">1</span>,buscararticulo<span style="color: #000000;">(</span>aData,oBrw,oFld:<span style="color: #000000;">nOption</span>,vestanteria<span style="color: #000000;">)</span>,<span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> :<span style="color: #000000;">lColChangeNotify</span> := .t.<br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> |oBrw| refrescardatos<span style="color: #000000;">(</span>vestanteria,oBrw,oFld:<span style="color: #000000;">nOption</span>,vfilas<span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> :<span style="color: #000000;">nFreeze</span>:=<span style="color: #000000;">1</span><br /> :<span style="color: #000000;">lFullGrid</span> := .t.<br /><br /> END<br /><br /> AEval<span style="color: #000000;">(</span>oBrw<span style="color: #000000;">[</span> i <span style="color: #000000;">]</span>:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span>|o| o:<span style="color: #000000;">nDataStrAlign</span> := AL_CENTER <span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span> i<br /> <br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">500</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ACEPTAR"</span> <span style="color: #0000ff;">OF</span> oddatos ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>lSalva:=.t. , oddatos:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Guardar cambios y salir del catalogo"</span> ;<br /> <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">(</span> Acceso<span style="color: #000000;">(</span>oApp:<span style="color: #000000;">aUsuarios</span>,<span style="color: #ff0000;">"ESTANTER"</span>, nActua <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">501</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"SALIR"</span> <span style="color: #0000ff;">OF</span> oddatos <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>lSalva := falso, oddatos:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Salir de Estanteria"</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDDATOS <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span>oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">setfocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,.f.<span style="color: #000000;">)</span><br /><br /> </div>[/code:2ximatfu]
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Hola a todos
Al momento de estar editando una celda en el Browse, el font se muestra mas pequeño que los demas, aparte de lo "feito" que se ve, no se aprecia el dato correctamente al momento de introducirlo, hay alguna manera de corregirlo ?
[img:13xc23av]http://img142.imageshack.us/img142/9500/brwfntx0zv.jpg[/img:13xc23av]
Estuve viendo el codigo de la clase, pero no le encuentro el lugar exacto para tal correccion.
Alguien que lo haya hecho, le agradeceria mucho la ayuda
Gracias por anticipado
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Raymundo,
le tienes especificado el tipo de font al browse?
pudieras poner algo de codigo para verlo?
yo tengo un browse que tome del ejemplo que tiene el browse y no me cambia el tipo de letra
salu2
paco
|
Ajustar font en edicion con TWBROWSE de Hernan
|
raymundo,
si le defino la font lo hago asi:
oLbx:SetFont(oFont)
oLbx:bFont:={|nRow,nCol,nStyleLine| ;
IF(nStyleLine==3,oFont:hFont,0) }
y asi me respeta el tipo de letra en la edicion
salu2
paco
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Hola Paco
Gracias por contestar, fijate que cambie como lo indicas y me sigue haciendo lo mismo, anexo un poco de codigo :
Este es el codigo "Original", normalmente asi declaro todos mis Browses :
REDEFINE LISTBOX lbCapDcs ;
FIELDS DtoC( CAPDOCS->CFEC ), ;
Str( CAPDOCS->CAGT, 3 ), ;
CAPDOCS->CFOL, ;
TransForm( CAPDOCS->CIMP, "999,999.99" ), ;
TransForm( CAPDOCS->CDSC1, "99.99" ), ;
TransForm( CAPDOCS->CDSC2, "99.99" ), ;
TransForm( CAPDOCS->CDSC3, "99.99" ), ;
TransForm( CAPDOCS->CDSC4, "99.99" ), ;
TransForm( CAPDOCS->CDSC5, "99.99" ), ;
Str( CAPDOCS->CDYS, 2 ), ;
TransForm( CAPDOCS->CTOTAL, "999,999.99" ) ;
HEAD "FECHA","AGT","FOLIO","IMPORTE","DCT1", ;
"DCT2","DCT3","DCT4","DCT5","DIAS","TOTAL" ;
FIELDSIZES 85,30,90,100,60,60,60,60,60,60,100 ;
ALIAS "CAPDOCS" ;
FONT oFntBrw ;
ID 103 ;
OF oFldOprs:aDialogs[1]
lbCapDcs:nLineStyle := 2
lbCapDcs:nLineHeight := 18
lbCapDcs:lDrawFocusRect := .F.
lbCapDcs:nClrLine := CLR_WHITE
lbCapDcs:bKeyDown := { | nKey | CAPDOCSKEY( nKey ) }
lbCapDcs:AJUSTIFY := { .F.,.T.,.F.,.T.,.T.,.T.,.T.,.T.,.T.,.T. }
lbCapDcs:nClrPane := { || IIF( CAPDOCS->(OrdKeyNo() )%2 = 0, CLR_A, CLR_B ) }
Despues, le quite la declaracion del font : FONT oFntBrw y le agregue lo que indicas :
lbCapDcs:SetFont( oFntBrw )
lbCapDcs:bFont := { |nRow,nCol,nStyleLine| IF( nStyleLine == 2,; oFntBrw:hFont, 0 ) }
Pero, desafortunadamente sigue mostrando una font mas pequeña al editar. <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
Gracias y Saludos
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Raymundo como estas que pena meterme en tu conversión, pero seria posible que me indicaras como haces el folder?, me parace genial el diseño. <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Hola,
Disculpen por meterme, pero una pregunta para poder ayudar, ¿ Como estas editando el browse, con el bloque bedit y una funcion tuya o con los bloques por defecto de wbrowse ??.
Si estas editando con los bloques por defecto del wbrowse debes ir al metodo leditcol y ahí empezar a picar, ya que si te fijas para la edicion el wbrowse crea un dialogo con un get, al que tendrias que agregarle el font que deseas.
Atte,
Lautaro
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Que tal Leandro, realmente todos son controles "normales" y nativos de FWH, el StarDock es el que se encarga de darle la "manita de gato" a las pantallas.
Hola Lautaro, en efecto, uso una funcion que se llama desde el metodo :
lbCapDcs:bKeyDown := { | nKey | [color=red:3psrl3s7]CAPDOCSKEY[/color:3psrl3s7]( nKey ) }
y despues aplico el lEditCol por cada celda :
xVal := IIF( Empty( aDetPay[pDP,nQ] ), 0, ChgStr2Num( aDetPay[pDP,nQ] ) )
IF lbDetPay:lEditCol( nQ, @xVal, aPicArr[nQ], , CLR_YELLOW, CLR_CYAN )
aDetPay[pDP,nQ] := TransForm( xVal, "999,999.99" )
ENDIF
Saludos y Gracias
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Gente.
No puedo hacer editar bien la wbrowse, Raimundo veo que tenes uno, podrias indicarme como hacer para editar una wbrowse, que tengo con 5 columnas.
Gracias.
[quote="Raymundo Islas M.":101f8ddn]Hola a todos
Al momento de estar editando una celda en el Browse, el font se muestra mas pequeño que los demas, aparte de lo "feito" que se ve, no se aprecia el dato correctamente al momento de introducirlo, hay alguna manera de corregirlo ?
[img:101f8ddn]http://img142.imageshack.us/img142/9500/brwfntx0zv.jpg[/img:101f8ddn]
Estuve viendo el codigo de la clase, pero no le encuentro el lugar exacto para tal correccion.
Alguien que lo haya hecho, le agradeceria mucho la ayuda
Gracias por anticipado[/quote:101f8ddn]
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Goos :
Cuando defines tu Browse :[code:29ygfrhc]
lbCapVta:bKeyDown := { | nKey | CAPVTSKEY( nKey ) }
[/code:29ygfrhc]
En la Funcion CAPVTSKEY(), procesas las teclas presionadas :[code:29ygfrhc]
IF nKey == VK_RETURN
EdAllColVta()
ENDIF
[/code:29ygfrhc]
Y en la funcion asignada :
[code:29ygfrhc]Static Function EdAllColVta()
LOCAL nQ, xVal, aPicArr := { "9","@!","99,999.99","999.99","99.99","999.99", ;
"99,999.99", "99,999.99", "@!" }
LOCAL aEleAr := { 4,5,6,7 }, aColAr := {3,4,5,6}
FOR nQ := 1 TO Len( aEleAr )
xVal := aCapVta[pCV,aEleAr[nQ]]
IF lbCapVta:lEditCol( aColAr[nQ], @xVal, aPicArr[aEleAr[nQ]], , CLR_YELLOW, CLR_CYAN )
IF nQ == 2
// Tus validaciones segun la columna
ENDIF
ENDIF
NEXT
lbCapVta:REFRESH()
Return NIL
*-----*
[/code:29ygfrhc]
Asi es como lo manejo, espero te sirva.
Saludos
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Muchísimas gracias.
[quote="Raymundo Islas M.":40tbm96j]Goos :
Cuando defines tu Browse :[code:40tbm96j]
lbCapVta:bKeyDown := { | nKey | CAPVTSKEY( nKey ) }
[/code:40tbm96j]
En la Funcion CAPVTSKEY(), procesas las teclas presionadas :[code:40tbm96j]
IF nKey == VK_RETURN
EdAllColVta()
ENDIF
[/code:40tbm96j]
Y en la funcion asignada :
[code:40tbm96j]Static Function EdAllColVta()
LOCAL nQ, xVal, aPicArr := { "9","@!","99,999.99","999.99","99.99","999.99", ;
"99,999.99", "99,999.99", "@!" }
LOCAL aEleAr := { 4,5,6,7 }, aColAr := {3,4,5,6}
FOR nQ := 1 TO Len( aEleAr )
xVal := aCapVta[pCV,aEleAr[nQ]]
IF lbCapVta:lEditCol( aColAr[nQ], @xVal, aPicArr[aEleAr[nQ]], , CLR_YELLOW, CLR_CYAN )
IF nQ == 2
// Tus validaciones segun la columna
ENDIF
ENDIF
NEXT
lbCapVta:REFRESH()
Return NIL
*-----*
[/code:40tbm96j]
Asi es como lo manejo, espero te sirva.
Saludos[/quote:40tbm96j]
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Raymundo y Goosfancito,
ya modifique la wbrowse para que no pase eso de la font en la edicion, por aqui publique la clase y unas imagenes
salu2
paco
|
Ajustar font en edicion con TWBROWSE de Hernan
|
[quote="Francisco Horta":1sxm6d7v]Raymundo y Goosfancito,
ya modifique la wbrowse para que no pase eso de la font en la edicion, por aqui publique la clase y unas imagenes
salu2
paco[/quote:1sxm6d7v]
Hola Paco
En donde publicaste la wbrowse y como acceso, para bajar la wbrowse.
Saludos y Gracias ...
Hugo Navarro
|
Ajustar font en edicion con TWBROWSE de Hernan
|
que onda hugoooo!!
aqui te dejo el link y ahi esta de donde descargarlo y una imagen de ejemplo ...
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=7517">http://fivetechsoft.com/forums/viewtopic.php?t=7517</a><!-- m -->
gusto en volverte a saludar, existen los milagros!!!
salu2
paco
|
Ajustar font en edicion con TWBROWSE de Hernan
|
Francisco he tratado de bajar la clase pero el link no me funciona, sera que alguien tendra un ejemplo basico de edicion de columnas con el browse o xbrowse o el que sea, lo necesito para un sistema de facturacion, gracias de antemano.
|
Ajustar font en edicion con TWBROWSE de Hernan
|
disculpas a todos,
no la habia subido, aqui esta a su disposicion la wbrowse de HDC con las adaptaciones que hice, yo la uso con harbour, no la he probado con xharbour.
<!-- m --><a class="postlink" href="http://www.savefile.com/files/904332">http://www.savefile.com/files/904332</a><!-- m -->
salu2
paco
|
Ajustar font en edicion con TWBROWSE de Hernan
|
[quote="Francisco Horta":24zo6uua]disculpas a todos,
no la habia subido, aqui esta a su disposicion la wbrowse de HDC con las adaptaciones que hice, yo la uso con harbour, no la he probado con xharbour.
<!-- m --><a class="postlink" href="http://www.savefile.com/files/904332">http://www.savefile.com/files/904332</a><!-- m -->
salu2
paco[/quote:24zo6uua]
Francisco,
Gracias por tu espléndido aporte, te confirmo que funciona de maravillas con xHarbour y que los comboboxes se ven muy bien.
|
Ajustar font en edicion con TWBROWSE de Hernan
|
gracias jose, mi aportacion es minima y con gusto lo hago
por ahi trae la opcion para bloquear (si quieres) las columnas cuando usas el freeze y tambien puedes usar o no el apuntador (esa fue aportacion creo de alfredo arteaga si mal no recuerdo). luego en un rato de tranquilidad voy a ver si puedo bloquear columnas especificadas en arreglo, no unicamente las del freeze.
salu2
paco
|
Ajustar resolucion
|
AntonioComo puedo cambiar la resolución del monitor al inicio de ejecutar la aplicación y dejarla conforme estaba al salir de la misma?Entube buscando en el foro y no fue claro lo poco que encontréGracias por tu orientaciónJairo Barbosa
|
Ajustar resolucion
|
JabaAqui en el foro hay una clase para eso, yo participé en ese hilo que lo inició Manuel Valdenebro ( creo ) e inclusive lo utilizé en una aplicación. En Fivewin Brasil, en Dicas, se encuentra esta clase pero había que hacer unas modificaciones. Saludos
|
Ajustar resolucion
|
[quote="horacio":34zpc2on]Jaba
Aqui en el foro hay una clase para eso, yo participé en ese hilo que lo inició Manuel Valdenebro ( creo ) e inclusive lo utilizé en una aplicación. En Fivewin Brasil, en Dicas, se encuentra esta clase pero había que hacer unas modificaciones.
Saludos[/quote:34zpc2on]HoracioSï... estuve mirando en el foro y note que Manuel desarrollo algo al respecto, le escribí al directo pero no tuve respuesta de el. Agradezco tu reporte y si tienes alguna función o arreglo al respecto le agradece que lo compartas en el foro para que todos tengamos la oportunidad CordialmenteJairo Barbosa
|
Ajustar resolucion
|
JabaEstoy fuera de mi ciudad. El martes regreso y te lo envio. Saludos
|
Ajustar resolucion
|
[quote="horacio":7u62n9em]Jaba
Estoy fuera de mi ciudad. El martes regreso y te lo envio. Saludos[/quote:7u62n9em]//---------------------------------------------------------------------//HoracioBuen viajeAcabo de poner en el foro la función de Don Manuel Valdenebro, que aunque no recibí respuesta de le me tome el atrevimiento y le hice algunas modificaciones para que quedara un poco mas amigable, me gustaría que la ensayes y me dieras tu opinión ya que estando en cualquier resolución de pantalla la pasa sin problemas a la deseada, fue muy fácil, dejo un ejemplo con ejecutable y los fuentes en el siguiente link porque le puede servir a otras personas.<!-- m --><a class="postlink" href="http://rapidshare.com/files/155573089/Tutor02.rar.html">http://rapidshare.com/files/155573089/Tutor02.rar.html</a><!-- m -->CordialmenteJairo Barbosa
|
Ajustar resolucion
|
jaba;Disculpame que no te respondí en tiempo y forma pero tuve algunos inconvenientes con mi proveedor de internet. Aqui te mando el código #define DM_PELSWIDTH nHex("80000")#define DM_PELSHEIGHT nHex("100000") Function CambiaResolucion( nAncho, nAlto, lPreguntar)Local oDevModeLocal lPosibleLocal cBufferLocal lCamReso := .f.Default nAncho := GetSysMetrics( 0 ), nAlto := GetSysMetrics( 1 ), lPreguntar := .t.Struct oDevMode Member cDevName AS STRING LEN 32 Member nSpecVer AS WORD Member nDrvVer AS WORD Member nSize AS WORD Member nDrvExtra AS WORD Member nFields AS DWORD Member nOrientat AS WORD Member nPaperSiz AS WORD Member nPaperLen AS WORD Member nPaperWid AS WORD Member nScale AS WORD Member nCopies AS WORD Member nDefSrc AS WORD Member nPrnQlty AS WORD Member nColor AS WORD Member nDuplex AS WORD Member nYResolut AS WORD Member nTTOpt AS WORD Member nCollate AS WORD Member cFormName AS STRING LEN 32 Member nUnusePad AS WORD Member nBitsPPel AS DWORD Member nPelWidth AS DWORD Member nPelHeigh AS DWORD Member nDisFlags AS DWORD Member nDisFreq AS DWORDEndstructcBuffer := oDevMode : cBuffer// Comprueba si es posible cambiar la resoluciónlPosible := EnumDisplaySettings(0, 0, @cBuffer)// Si es posible cambiar la resoluciónIf( lPosible ) If( lPreguntar ) If( !MsgYesNo("Desea cambiar la resolución?", "Atención") ) Return lCamReso end end oDevMode:nFields := nOr( DM_PELSWIDTH, DM_PELSHEIGHT ) oDevMode:nPelWidth := nAncho oDevMode:nPelHeigh := nAlto cBuffer:=oDevMode:cBuffer Try ChangeDisplaySettings(@cBuffer, 4) lCamReso := .T. Catch MsgStop("Modo no soportado", "Error" ) Endelse MsgStop("Modo no soportado", "Error" )endReturn lCamResoDLL32 FUNCTION EnumDisplaySettings(lpszDeviceName AS DWORD,;iModeNum AS DWORD, ;@lpDevMode AS LPSTR) AS BOOL PASCAL;FROM "EnumDisplaySettingsA" LIB "User32.dll"DLL32 FUNCTION ChangeDisplaySettings(@lpDevMode AS LPSTR,;dwFlags AS DWORD) AS DWORD;FROM "ChangeDisplaySettingsA" LIB "User32.dll"DLL32 FUNCTION ExitWindowsEx(uFlags AS DWORD,;dwReserved AS DWORD) AS DWORD PASCAL;LIB "user32.dll"Probé tu solución y funciona perfectamenteSaludos
|
Ajustar resolucion
|
[quote="horacio":1loaaptt]jaba;
Disculpame que no te respondí en tiempo y forma pero tuve algunos inconvenientes con mi proveedor de internet. Aqui te mando el código
#define DM_PELSWIDTH nHex("80000")
#define DM_PELSHEIGHT nHex("100000")
Function CambiaResolucion( nAncho, nAlto, lPreguntar)
Local oDevMode
Local lPosible
Local cBuffer
Local lCamReso := .f.
Default nAncho := GetSysMetrics( 0 ), nAlto := GetSysMetrics( 1 ), lPreguntar := .t.
Struct oDevMode
Member cDevName AS STRING LEN 32
Member nSpecVer AS WORD
Member nDrvVer AS WORD
Member nSize AS WORD
Member nDrvExtra AS WORD
Member nFields AS DWORD
Member nOrientat AS WORD
Member nPaperSiz AS WORD
Member nPaperLen AS WORD
Member nPaperWid AS WORD
Member nScale AS WORD
Member nCopies AS WORD
Member nDefSrc AS WORD
Member nPrnQlty AS WORD
Member nColor AS WORD
Member nDuplex AS WORD
Member nYResolut AS WORD
Member nTTOpt AS WORD
Member nCollate AS WORD
Member cFormName AS STRING LEN 32
Member nUnusePad AS WORD
Member nBitsPPel AS DWORD
Member nPelWidth AS DWORD
Member nPelHeigh AS DWORD
Member nDisFlags AS DWORD
Member nDisFreq AS DWORD
Endstruct
cBuffer := oDevMode : cBuffer
// Comprueba si es posible cambiar la resolución
lPosible := EnumDisplaySettings(0, 0, @cBuffer)
// Si es posible cambiar la resolución
If( lPosible )
If( lPreguntar )
If( !MsgYesNo("Desea cambiar la resolución?", "Atención") )
Return lCamReso
end
end
oDevMode:nFields := nOr( DM_PELSWIDTH, DM_PELSHEIGHT )
oDevMode:nPelWidth := nAncho
oDevMode:nPelHeigh := nAlto
cBuffer:=oDevMode:cBuffer
Try
ChangeDisplaySettings(@cBuffer, 4)
lCamReso := .T.
Catch
MsgStop("Modo no soportado", "Error" )
End
else
MsgStop("Modo no soportado", "Error" )
end
Return lCamReso
DLL32 FUNCTION EnumDisplaySettings(lpszDeviceName AS DWORD,;
iModeNum AS DWORD, ;
@lpDevMode AS LPSTR) AS BOOL PASCAL;
FROM "EnumDisplaySettingsA" LIB "User32.dll"
DLL32 FUNCTION ChangeDisplaySettings(@lpDevMode AS LPSTR,;
dwFlags AS DWORD) AS DWORD;
FROM "ChangeDisplaySettingsA" LIB "User32.dll"
DLL32 FUNCTION ExitWindowsEx(uFlags AS DWORD,;
dwReserved AS DWORD) AS DWORD PASCAL;
LIB "user32.dll"
Probé tu solución y funciona perfectamente
Saludos[/quote:1loaaptt]//--------------------------------------------------------------------------//Gracias Horacio la Probare....Cordial Saludo Jairo
|
Ajustar resolucion
|
existe actualmente alguna funcion o libreria que cambie la resolucion de la pantalla cuando uno entre a un sistema y al salir restaure la del escritorio de windows, si es que son distintas
|
Ajustar resolucion
|
[quote="elmoiquique":25vp4yqt]existe actualmente alguna funcion o libreria que cambie la resolucion de la pantalla cuando uno entre a un sistema y al salir restaure la del escritorio de windows, si es que son distintas[/quote:25vp4yqt]<!-- m --><a class="postlink" href="http://rapidshare.com/files/155573089/Tutor02.rar.html">http://rapidshare.com/files/155573089/Tutor02.rar.html</a><!-- m -->
|
Ajustar resolucion
|
Hola a todos.Esto está muy interesante... Ahora bien, si no es mucho pedir.A alguien se le ocurre cómo hacer para cambiar el tamaño de fuente también?Ejemplo: Pasar de 800 x 600 Fuentes chichas (96ppp) a 1024 x 768 Fuentes grandes (120ppp)Lograr esto sería un gol de media cancha!!!Si alguien tiene algo hecho al respecto sería buenísimo que lo comparta.Desde ya muchas gracias.Saludos, desde Argentina, Esteban.
|
Ajustar resolucion
|
amigo,isso nao caberia para o usuario deliberar?jah fiz algo parecido, o usuario diz que tem problema de vista e tals...é complicadoeu faço o seguinte, quando vejo q a resolucao eh incompatível com a que o sistema pretende, mando um msgalert...na realidade o computador eh do cliente...
|
Ajustar una imagen al espacio definido en oImage SOLUCIONADO
|
Hola foro, en mi aplicacion tengo
REDEFINE IMAGE oImage ID 10 OF oDlg UPDATE
y cargo la imagen con
oImage:LOADIMAGE(,NomAImg)
Al hacerlo asi, si la imagen es mas grande que el espacio definido, muestra solo una parte, si es mas pequeña, sale en solo una parte del espacio, si uso el ADJUST si ocupa todo el espacio pero la imagen se distorciona si las proporciones no son iguales.
La idea seria que ocupara el espacio ya sea a lo alto o a lo ancho de forma que guarde las proporciones y no se distorcione.
Alguna idea? Salu2
Al no encontrar una solucion ya definida, construi lo siguiente con buenos resultados (seguramente se puede hacer mas sencillo):
[code=fw:23d6ma65]<div class="fw" id="{CB}" style="font-family: monospace;"><br />bBmp:=<span style="color: #000000;">{</span>||<span style="color: #000000;">(</span>oBmp:=PN_AjusImg<span style="color: #000000;">(</span>NomAImg,oImage,oBmp<span style="color: #000000;">)</span>,oImage:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oDlg:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,SYSREFRESH<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">IMAGE</span> oImage oBmp <span style="color: #0000ff;">ID</span> <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> <span style="color: #B900B9;">//Espacio para la foto, Foto a mostrar</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span>EVAL<span style="color: #000000;">(</span>bBmp<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//============================================================================*</span><br /><span style="color: #B900B9;">//Extrae la imagen del archivo que se indique y lo ajusta al espacio correspondiente</span><br /><span style="color: #00C800;">FUNCTION</span> PN_AjusImg<span style="color: #000000;">(</span>NomAImg,oImage,oBmp<span style="color: #000000;">)</span> <span style="color: #B900B9;">//Nombre del Archivo que contiene la imagen con directorio y extencion, Objeto que contendra la imagen, Objeto de la imagen</span><br /> <span style="color: #00C800;">LOCAL</span> CooDisp,AnchoDisp,AltoDisp <span style="color: #B900B9;">//Coordenadas disponibles, Ancho y alto en pixeles que estan disponibles para colocar la imagen</span><br /> <span style="color: #00C800;">LOCAL</span> Ancho,Alto,Zoom:=<span style="color: #000000;">1</span><br /> CooDisp:=oImage:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//Extrae el objeto del marco que contendra la foto</span><br /> AnchoDisp:=CooDisp:<span style="color: #000000;">nRight</span> ; AltoDisp:=CooDisp:<span style="color: #000000;">nBottom</span> <span style="color: #B900B9;">//Extrae el ancho y alto en pixeles del espacio diponible para la foto</span><br /> oBmp:<span style="color: #000000;">LOADIMAGE</span><span style="color: #000000;">(</span>,NomAImg<span style="color: #000000;">)</span> <span style="color: #B900B9;">//Carga la imagen del archivo definido por el usuario</span><br /> Ancho:=oBmp:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; Alto:=oBmp:<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//Ancho y alto originales de la imagen</span><br /> <span style="color: #00C800;">IF</span> Alto>Ancho ; Zoom:=AltoDisp/Alto<br /> <span style="color: #00C800;">ELSE</span> ; Zoom:=AnchoDisp/Ancho<br /> <span style="color: #00C800;">ENDIF</span><br /> oBmp:<span style="color: #000000;">nZoom</span>:=Zoom <span style="color: #B900B9;">//Para que ajuste la imagen al espacio disponible sin distorcionarla</span><br /> Ancho:=oBmp:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ; Alto:=oBmp:<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//Ancho y Alto de la imagen ya ajustada al espacio disponible</span><br /> CooDisp:<span style="color: #000000;">nTop</span>:=INT<span style="color: #000000;">(</span><span style="color: #000000;">(</span>CooDisp:<span style="color: #000000;">nBottom</span>-Alto<span style="color: #000000;">)</span>/<span style="color: #000000;">2</span><span style="color: #000000;">)</span>+oImage:<span style="color: #000000;">nTop</span> <span style="color: #B900B9;">//El espacio disponible para la imagen lo recorre hacia arriba para centrarlo. (AltoDelEspacioDisponible-AltoDeLaImagen/2+LugarDondeIniciabaOriginalmente)</span><br /> CooDisp:<span style="color: #000000;">nBottom</span>:=CooDisp:<span style="color: #000000;">nTop</span>+Alto <span style="color: #B900B9;">//Ajusta el ancho del espacio disponible segun el nuevo espacio disponible</span><br /> CooDisp:<span style="color: #000000;">nLeft</span>:=INT<span style="color: #000000;">(</span><span style="color: #000000;">(</span>CooDisp:<span style="color: #000000;">nRight</span>-Ancho<span style="color: #000000;">)</span>/<span style="color: #000000;">2</span><span style="color: #000000;">)</span>+oImage:<span style="color: #000000;">nLeft</span> <span style="color: #B900B9;">//El espacio disponible para la imagen lo recorre hacia la derecha para centrarlo. (AnchoDelEspacioDisponible-AnchoDeLaImagen)/2+LugarDondeIniciabaOriginalmente</span><br /> CooDisp:<span style="color: #000000;">nRight</span>:=CooDisp:<span style="color: #000000;">nLeft</span>+Ancho <span style="color: #B900B9;">//Ajusta el ancho del espacio disponible segun el nuevo espacio disponible</span><br /> oImage:<span style="color: #000000;">SETCOORS</span><span style="color: #000000;">(</span>CooDisp<span style="color: #000000;">)</span> <span style="color: #B900B9;">//Asigna las nuevas coordenadas al espacio para la imagen</span><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>oBmp<span style="color: #000000;">)</span><br /> </div>[/code:23d6ma65]
Espero le sirva a alguien. +Salu2
|
Ajustar una imagen al espacio definido en oImage SOLUCIONADO
|
Hola, mira se asi te funciona.
[code=fw:25nuky4n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">IMAGE</span> oImagem <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> ;<br /> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> ;<br /> FILENAME DbClientes:<span style="color: #000000;">Fotos</span> ;<br /> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">CURSOR</span> oHand<br /> <br /> oImagem:<span style="color: #0000ff;">Progress</span><span style="color: #000000;">(</span> .F. <span style="color: #000000;">)</span><br /> oImagem:<span style="color: #000000;">lStretch</span> := <span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// .T. o .F.</span><br /> oImagem:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:25nuky4n]
Salu2
|
Ajuste Tamaño Listbox
|
Hola amigos
Me estoy liando y no se porque me sale el listbox como en la imagen siguiente:
[img][url=http://imageshack.us:1t7w17zb][img]http://img242.imageshack.us/img242/6538/ventanawx3.jpg[/img][/url:1t7w17zb][/img]
Porque? no me ocupa la pantalla?
El codigo del listbox es:
[code:1t7w17zb]
@ 30, 0 Listbox oLbx FIELDS dtoc((aAlias[1])->Fecha),;
oemtoansi((aAlias[1])->cnomcli);
HEADER " Fecha ", " Cliente ";
FIELDSIZES 52,200;
ALIAS aAlias[1];
CURSOR dedo;
COLOR CLR_BLACK, nRGB(226,226,208) ;
ON LEFT DBLCLICK (iif(!(aAlias[1])->(eof()),(cTitulo:="Visualización de acciones ",Entalba(aAlias,cTitulo,"V"),oLbx:Refresh()),.T.));
OF Publicas:oWppal;
PIXEL
oLbx:nStyle:= nOr( WS_VSCROLL, WS_HSCROLL )
oLbx:nLineStyle := 1
oLbx:Setcolor(nil,RGB(245,239,191))
oLbx:nClrBackHead := RGB(248,191,36)
oLbx:aJustify := {.F.,.F.}
oLbx:aHJustify := {2,2}
oLbx:nClrPane:={||iIF((oLbx:cAlias)->(OrdKeyNo())%2==0,nRGB(245,219,175),nRGB(245,239,191))}
[/code:1t7w17zb]
Saludos
Jose Luis
|
Ajuste Tamaño Listbox
|
Tienes que avisarle a la ventana contenedora que control es que toma el aera cliente:
Publicas:oWppal:SetControl(oLbx)
Y listo, esto debe de ir antes del ACTIVATE WINDOW
|
Ajuste Tamaño Listbox
|
Gracias por la respuesta René
Aplicando el Setcontro(), me da el siguiente error
*************************************************
Error description: Error BASE/1004 Message not found: TWINDOW:SETCONTROL
Stack Calls
===========
Called from: => TWINDOW:ERROR(179)
Called from: tobject.prg => (b)HBOBJECT:HBOBJECT(105)
Called from: => TWINDOW:MSGNOTFOUND(0)
Called from: WINDOW.PRG => TWINDOW:SETCONTROL(167)
Called from: acciones.prg => MAIN(103)
***********************************************
Yo nunca había tenido que utilizar ésto y me había funcionado, la verdad es que siempre he utilizado listbox en ventanas hijas o Dialogos. En éste caso lo utilizo en ventana pincipal no MDI y el codigo completo es:[code:2xoa221u]
DEFINE WINDOW Publicas:oWPpal FROM 5,5 TO 35,90 NOMAXIMIZE;
TITLE Publicas:cTitulo;
ICON oIco
DEFINE FONT oFont NAME 'MS Sans Serif' SIZE 0,-8
Publicas:oWPpal:oFont:=oFont
SET MESSAGE TO (" (c) GrupoSunade ") CENTERED OF Publicas:oWPpal
DEFINE BUTTONBAR oBar TOP 3d OF Publicas:oWPpal
DEFINE BUTTON RESOURCE "ANADIR" of oBar NOBORDER MESSAGE "Añadir" ACTION (cTitulo:="Creación de nuevas acciones ",;
(aAlias[1])->(OrdSetFocus("Fecha")),oTab:nOption:=1,oTab:refresh(),;
Entalba(aAlias,cTitulo,"A"),oLbx:Refresh());
TOOLTIP "Añadir"
DEFINE BUTTON RESOURCE "MODIFICAR" of oBar NOBORDER MESSAGE "Modificar" ACTION (iif(!(aAlias[1])->(eof()),(cTitulo:="Modificación de envios ",;
Entalba(aAlias,cTitulo,"M"),oLbx:Refresh()),.T.));
TOOLTIP "Modificar"
DEFINE BUTTON RESOURCE "BORRAR" of oBar NOBORDER MESSAGE "Eliminar" ACTION (Entalba());
TOOLTIP "Eliminar"
DEFINE BUTTON RESOURCE "BUSCAR" of oBar NOBORDER MESSAGE "Localizar" ACTION (Entalba());
TOOLTIP "Localizar"
DEFINE BUTTON RESOURCE "VER" of oBar NOBORDER MESSAGE "Visualizar" ACTION (Entalba());
TOOLTIP "Zoom"
DEFINE BUTTON RESOURCE "IMPRESORA" of oBar NOBORDER MESSAGE "Imprimir" ACTION (Entalba());
TOOLTIP "Imprimir Listados"
DEFINE BUTTON RESOURCE "SALIR" of oBar NOBORDER MESSAGE "Salir" ACTION Publicas:oWppal:END();
TOOLTIP "Salir"
@ 30, 0 Listbox oLbx FIELDS dtoc((aAlias[1])->Fecha),;
oemtoansi((aAlias[1])->cnomcli);
HEADER " Fecha ", " Cliente ";
FIELDSIZES 52,200;
ALIAS aAlias[1];
CURSOR dedo;
COLOR CLR_BLACK, nRGB(226,226,208) ;
ON LEFT DBLCLICK (iif(!(aAlias[1])->(eof()),(cTitulo:="Visualización de acciones ",Entalba(aAlias,cTitulo,"V"),oLbx:Refresh()),.T.));
OF Publicas:oWppal;
PIXEL
oLbx:nStyle:= nOr( WS_VSCROLL, WS_HSCROLL )
oLbx:nLineStyle := 1
oLbx:Setcolor(nil,RGB(245,239,191))
oLbx:nClrBackHead := RGB(248,191,36)
oLbx:aJustify := {.F.,.F.}
oLbx:aHJustify := {2,2}
oLbx:nClrPane:={||iIF((oLbx:cAlias)->(OrdKeyNo())%2==0,nRGB(245,219,175),nRGB(245,239,191))}
@ Publicas:oWPpal:nHeight() - 45, 0 TABS oTab ;
PROMPTS "&Fecha","&Cliente" ;
COLOR CLR_BLACK, CLR_WHITE ;
ACTION ((aAlias[1])->(Ordsetfocus(cambia(oTab:nOption))),oLbx:Refresh())
oTab:Default()
* Publicas:oWppal:SetControl(oLbx)
ACTIVATE WINDOW Publicas:oWPpal;
VALID Salir()
[/code:2xoa221u]
Saludos
Jose Luis
|
Ajuste Tamaño Listbox
|
Prueba así:
Publicas:oWppal:oClient := oLbx
|
Ajuste Tamaño Listbox
|
Perfecto Antonio
Saludos
Jose Luis
|
Ajuste de Imagen - WallPaper - TBitmap
|
Cómo Ajustar una imagen utilizando la clase TBitmap para distintas resoluciones de monitor de la misma clase TImage?
TBitmap - [b:3bsufksx]La imagen no se ajusta a la resolución [/b:3bsufksx]
[code=fw:3bsufksx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> BITMAP oBmp<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\S</span>B_Bmps<span style="color: #000000;">\L</span>ogo_04.bmp"</span> <br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">Valid</span> lSair ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">(</span> ABPaint<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">68</span>, oBmp<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">220</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:3bsufksx]
TImage - [b:3bsufksx]Ajusta automáticamente la imagen[/b:3bsufksx]
[code=fw:3bsufksx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">LOCAL</span> vImgfundo := <span style="color: #ff0000;">".<span style="color: #000000;">\B</span>mps<span style="color: #000000;">\L</span>ogo_04.jpg"</span> <br />.<br />.<br />****--- <span style="color: #0000ff;">DEFINE</span> A IMAGEM DE FUNDO ---*******************************************<br /> @ <span style="color: #000000;">4</span>,<span style="color: #000000;">00</span> <span style="color: #0000ff;">Image</span> oImag <span style="color: #0000ff;">Size</span> oWnd:<span style="color: #000000;">nHorzRes</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oWnd:<span style="color: #000000;">nVertRes</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">-156</span> <span style="color: #0000ff;">Of</span> oWnd <span style="color: #0000ff;">Adjust</span><br /> oImag:<span style="color: #0000ff;">Progress</span><span style="color: #000000;">(</span>.F.<span style="color: #000000;">)</span><br /> oImag:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>vImgfundo<span style="color: #000000;">)</span><br /><br /> </div>[/code:3bsufksx]
También puede utilizar el TImage Bmp con alfa en una ventana como WallPaper?
FwH904 - Hb Svn - Bcc55
Saluds, Ale
|
Ajuste de Imagen - WallPaper - TBitmap
|
Up !
|
Ajuste de Posicion del ToolTip en la ToolBar
|
Antonio
Al momento de colocar el puntero sobre una opcion en la ToolBar, muestra el tooltip en forma de Balloon, al parecer tomando como referencia las coordenadas del propio puntero, eso, en ocasiones, "oculta" las imagenes de las demas opciones, habra la manera de indicarle, que muestre el ToolTip digamos, a partir del lado inferior del icono/bitmap ??
ToolTip Actual :
[img:2h0z8ywr]http://img77.imageshack.us/img77/1060/toolt1ok7.jpg[/img:2h0z8ywr]
ToolTip Deseado :
[img:2h0z8ywr]http://img146.imageshack.us/img146/5311/toolt2eo6.jpg[/img:2h0z8ywr]
Ya estuve checando la clase, pero no di con la linea correcta <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
SALUDOS
|
Ajuste de Posicion del ToolTip en la ToolBar
|
Raymundo, creo que aun no es posible hacer esto. La API de Windows que pone el tooltip en la posicion...
Pero Rossine ha trabajando en modificaciones en tooltip y creo que luego podra hacer lo que queres.
Saludos de Brasil
Maurilio
|
Ajuste de Posicion del ToolTip en la ToolBar
|
Ok, enterado amigos
Voy a probar las modificaciones Oscar.
Gracias a ambos
SALUDOS
|
Ajuste de control en splitter
|
Estimados:Tengo el Splitter de la figura y no logro ajustar el texto de un Item.[url=http://img167.imageshack.us/my.php?image=screen2ut2.jpg:l9drv6bi][img=http://img167.imageshack.us/img167/4282/screen2ut2.th.jpg][/url:l9drv6bi]La idea es que se muestre todo el texto sin que aparezca la barra de desplazamiento inferior.Segun la ayuda del testspl2.prg: [quote:l9drv6bi] Con uno o varios de los method de la clase TSplitter:
AdjClient()
AdjTop()
AdjLeft()
AdjBottom()
AdjRight()
colocados en oWnd:bResized se consigue un ajuste automatico
del Splitter o Splitters y de los Controles que tienen asociados,
al cambiar el tamaño de la ventana.
[/quote:l9drv6bi]El codigo:[list:l9drv6bi] @ 29, 250 SPLITTER oSplit ;
VERTICAL _3DLOOK ;
PREVIOUS CONTROLS hP0:oTree ;
RIGHT MARGIN 280 ;
SIZE 4, 0 PIXEL ;
OF h0:oWnd
ACTIVATE WINDOW h0:oWnd ;
ON RESIZE ( oSplit:AdjClient(), oSplit:Adjust( .f., .f., .f., .T. ) ) //
[/list:u:l9drv6bi]cual es la manera de conseguir lo que pretendo?; muchas gracias
|
Ajuste de ventana
|
Hola a migos
En una aplicación arranco una ventana con un degradado como el siguiente:
[url=http://img264.imageshack.us/my.php?image=subidas1ue9.jpg:d2kpyqcd][img:d2kpyqcd]http://img264.imageshack.us/img264/5916/subidas1ue9.th.jpg[/img:d2kpyqcd][/url:d2kpyqcd]
Y me presenta los dialogos bien, etc, pero quiero que me presente en la ventana, el Explorer, y me lo presenta de la siguiente imagen:
[url=http://img392.imageshack.us/my.php?image=subidas2lr9.jpg:d2kpyqcd][img:d2kpyqcd]http://img392.imageshack.us/img392/1001/subidas2lr9.th.jpg[/img:d2kpyqcd][/url:d2kpyqcd]
Y todo esto a pesar de que le digo lo siguiente:
oActiveX = TActiveX():New( oWnd, "Shell.Explorer.2" )
oWnd:oClient = oActiveX // To fill the entire window surface
Sin embargo, si no arranco con el degradado, me funciona perfectamente llenando el explore toda la pantalla
Saludos
Jose luis
|
Ajuste de ventana
|
Cómo haces el degradado ?
Y si quieres que el explorer ocupe toda la ventana, ¿ para que quieres el degradado ?
|
Ajuste de ventana
|
Hola Antonio
El degradado lo hago con un fuente que vi en éste foro, así
[code:3p68ql79]STAT FUNC Refr_Wnd(hDC,oWnd)
LOCAL hWnd, nColor:=255
LOCAL aRect, nSteps
LOCAL oBrush, nI
Local lInit:=.T.
LOCAL aCoor,letras,longi
hWnd :=oWnd:hWnd
aRect :=GetClientRect(hWnd)
nSteps:=(aRect[3]-aRect[1])/3
aRect[3]=0
FOR nI=1 to nSteps
aRect[3]+=3
DEFINE BRUSH oBrush COLOR RGB(nColor,nColor,nColor)
FillRect(hDC,aRect,oBrush:hBrush)
RELEASE BRUSH oBrush
aRect[1]+=3
nColor-=1
NEXT nI
SetBkMode(hDC,1)
SetTextColor(hDC,CLR_WHITE)
letras:="Modulo de Subida de ficheros a Web"
longi:=len(letras)
DrawText(hDC,letras,{oWnd:nHeight-105,1,oWnd:nHeight-10,oWnd:nWidth},1)
RETURN (NIL)
[/code:3p68ql79]
Quiero que el explorer ocupe toda la ventana, después de mostrar en ella otros Dialogos, ya que es un proceso que concluye ejecutando un archivo php en internet, pero antes me va mostrando en la ventana algunos dialogos, y en blanco me parece feo.
De todas las maneras, no se que me pasa que he quitado la rutina que hace el degradado, y me sigue con el mismo problema, cuando antes si me funcionaba. No se que habré tocado.
Saludos
Jose Luis
|
Ajuste de ventana
|
Bueno, para salir del atasco, lo que he hecho ha sido que el explorer lo muestre en otra ventana que se crea en ése momento.
Saludos
Jose Luis
|
Ajuste de ventana
|
Saludos Cordiales Colegas!!!
Poque no nos muestra tu fuente completa para poder ver y probar la falla!!!
Eso seria bueno!!!
|
Ajuste para samples\insptest.prg
|
Tratando de probar el inspector de objetos genérico, me arrojaba un error diciendo que la función __CLASSINS no existía. Claro, ahora en Harbour la función se llama __CLASSINSTANCE.
Eso se corrige añadiendo
[code=fw:1ndpjit8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> #ifdef __HARBOUR__<br /> <span style="color: #00D7D7;">#define</span> __CLASSINS __CLASSINSTANCE<br /> #endif<br /> </div>[/code:1ndpjit8]
para que cambie el nombre de la función si corresponde. No sé si corresponde aplicar el renombrado con xHarbour, pero sería fácil chequearlo con el mismo método.
|
Ajuste para samples\insptest.prg
|
Otro detalle corregido:
en el método New_, en el bucle que determina las variables de instancia (DATAS), si las datas no son públicas el programa falla y no se recupera del error.
Modifiqué el bucle encerrando la llamada al oSend() en un Begin/Secuence
[code=fw:opt3m8dp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #B900B9;">/* Enclose in a custom ErrorBlock to catch OOP Errors */</span><br /> <span style="color: #B900B9;">// bError:= ERRORBLOCK( {|oError| ::Error( oError )} )</span><br /> bError:= ERRORBLOCK<span style="color: #000000;">(</span> <span style="color: #000000;">{</span>|oError| <span style="color: #00C800;">Break</span><span style="color: #000000;">(</span> oError <span style="color: #000000;">)</span><span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// cambio el manejador. </span><br /> BEGIN SEQUENCE<br /><br /> <span style="color: #00C800;">FOR</span> cx = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nLen<br /><br /> <span style="color: #B900B9;">/* ignore strings with a leading Underscore */</span><br /> <span style="color: #00C800;">IF</span> !<span style="color: #000000;">(</span> StrChar<span style="color: #000000;">(</span> aDict<span style="color: #000000;">[</span>cx<span style="color: #000000;">]</span>, <span style="color: #000000;">1</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">'_'</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">/* Method */</span><br /> <span style="color: #00C800;">IF</span> ASCAN<span style="color: #000000;">(</span> aDict, <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"_"</span> + aDict<span style="color: #000000;">[</span>cx<span style="color: #000000;">]</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><br /> AADD<span style="color: #000000;">(</span> aMeth, <span style="color: #000000;">{</span> aDict<span style="color: #000000;">[</span>cx<span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/* Var */</span><br /> <span style="color: #00C800;">ELSE</span><br /> BEGIN SEQUENCE <span style="color: #B900B9;">// <--- desde acá</span><br /> uData = OSend<span style="color: #000000;">(</span> oClient, aDict<span style="color: #000000;">[</span>cx<span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> RECOVER USING oError<br /> uData = <span style="color: #00C800;">NIL</span><br /> END SEQUENCE <span style="color: #B900B9;">// <--- hasta acá</span><br /><br /> AADD <span style="color: #000000;">(</span> aIvar, <span style="color: #000000;">{</span> VALTYPE<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span>, aDict<span style="color: #000000;">[</span>cx<span style="color: #000000;">]</span>, ::<span style="color: #000000;">Val2Char</span><span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">NEXT</span><br /> RECOVER USING oError<br /> eval<span style="color: #000000;">(</span> bError, oError <span style="color: #000000;">)</span><br /><br /> END SEQUENCE<br /> ERRORBLOCK<span style="color: #000000;">(</span> bError <span style="color: #000000;">)</span><br /><br /> </div>[/code:opt3m8dp]
Si bien al producirse un error pone como valor de la DATA en NIL y no es muy elegante, al menos permite acceder y ver el resto de los componentes.
|
Ajuste para samples\insptest.prg
|
Carlos,
Gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
El problema ahora es que recientemente hemos añadido unas DATAs PROTECTED a la Clase TWindow y parece que no se puede recuperar ese error. Habria que ver la forma de detectar si una DATA es PROTECTED antes de intentar acceder a ella...
|
Ajuste para samples\insptest.prg
|
Existe la función __CLSMSGTYPE( oObject:ClassH, cMsgName ), pero necesitariamos __CLSMSGSCOPE( oObject:ClassH, cMsgName )
No es dificil de implementar, vamos a probar... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
Ajuste para samples\insptest.prg
|
Implementada y reportada al grupo de desarrollo de Harbour para que si la encuentran util la incluyan en el próximo build de Harbour:
[url:2eapsmsm]http://groups.google.com/group/harbour-devel/browse_thread/thread/6175d1ca3a54047d#[/url:2eapsmsm]
|
Ajuste para samples\insptest.prg
|
Excelente!
La verdad es que un inspector de objetos es algo que siempre hecho en falta. Alguna vez hablando del tema con Walter Negro, la idea que surgió era que si la DATA estaba como un elemento del array-objeto, sabiendo el índice se podría intentar obtener el valor. En xHarbour Walter lo resolvió, el estaba muy puesto con el tema objetos, pero en Harbour habría que buscar si es posible tener esa funcionalidad.
Gracias.
|
Ajuste para samples\insptest.prg
|
Antonio,
me he puesto a leer classes.c despues de muuucho tiempo. He encontrado que se han implementado las funciones amigas, que aparentemente tienen permitido un acceso menos restringido a los componentes.
HB_FUNC( __CLSADDFRIEND )
permite añadir un símbolo a la lista de funciones amigas, con lo que se podría probar añadir una funcion propia para facilitar la inspección del objeto. No he probado nada, solo lo he estado mirando, en nuestro caso es un método, habrá que crear la función.
|
Ajustes de posicionamiento en la ventana
|
Buenos días, tengo un pequeño problema con el posicionamiento de un objeto en una ventana.
Creo una ventana con una ButtonBar, una ExplorerBar, un Listbox y un Tab. Posiciono automáticamente todos los objetos y el único que se me 'sale' de lugar es el Tab.
Adjunto imagen y código fuente.
[img:hhwm7157]http://www.sigev.com/fw/imagen.jpg[/img:hhwm7157]
[code=fw:hhwm7157]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oBrw, oExplBar, oTab<br /><br /> use C:\FWH\samples\customer<br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Test"</span><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar <span style="color: #0000ff;">of</span> oWnd<br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">50</span> <span style="color: #0000ff;">Listbox</span> oBrw fields <span style="color: #0000ff;">of</span> oWnd<br /> <br /> oTab:=TTabs<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">{</span><span style="color: #ff0000;">"Opción 1"</span>,<span style="color: #ff0000;">"Opción 2"</span><span style="color: #000000;">}</span>,,oWnd,,,,.T.,.F.,<span style="color: #000000;">100</span>,<span style="color: #000000;">30</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">)</span><br /><br /> oWnd:<span style="color: #000000;">oTop</span> := oBar<br /> oWnd:<span style="color: #000000;">oLeft</span> := buildExbar<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">oBottom</span>:= oTab<br /> oWnd:<span style="color: #000000;">oClient</span>:= oBrw<br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">Function</span> BuildExbar<span style="color: #000000;">(</span> oWnd <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oExBar, oPanel1, oPanel2, oPanel3, oPanel4, bClick<br /><br /> <span style="color: #B900B9;">// test only</span><br /> bClick:=<span style="color: #000000;">{</span>|| <span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"clicked"</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oExBar = TExplorerBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">150</span>,<span style="color: #000000;">400</span>,oWnd<span style="color: #000000;">)</span><br /><br /> oPanel1 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel1:<span style="color: #000000;">lSpecial</span> = .T.<br /> oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">)</span><br /><br /> oPanel2 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>ase.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel2:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Fourth item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">)</span><br /><br /> oPanel3 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Three"</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\g</span>raphics.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel3:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">)</span><br /><br /> oPanel4 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Four"</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\g</span>raphics.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"First item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Second item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Third item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dddbf.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Fourth item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\d</span>elete0.bmp"</span> <span style="color: #000000;">)</span><br /> oPanel4:<span style="color: #000000;">AddLink</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Fifth item"</span>, bClick, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\e</span>nvelope.bmp"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> oExBar<br /> </div>[/code:hhwm7157]
Aunque el tTab lo creo en la posición 0,0 es indiferente ya que luego se recoloca automáticamente.
También he probado a sustituir [code=fw:hhwm7157]<div class="fw" id="{CB}" style="font-family: monospace;">oWnd:<span style="color: #000000;">oBottom</span>:= oTab</div>[/code:hhwm7157] por [code=fw:hhwm7157]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">oBottom</span>:= oTab</div>[/code:hhwm7157] pero sigue sin funcionar.
Me gustaría saber si es posible que se alinee con el listbox.
Desde ya, gracias.
Angel Salom
FWH10.11/Habour/BCC582
|
Ajustes de posicionamiento en la ventana
|
Hola,
Yo creo que la única manera de solucionar esto es con un Splitter entre el taskbar y la rejilla de datos. Al menos esa es la única manera que he encontrado. Si te descargas el fichero con mi clase TInforme que publiqué ayer verás que en los ejemplos viene la manera de montar ventanas como estas con mi clase TFSDI, que creo que es lo que estás buscando.
Saludos,
José Luis Sánchez
|
Ajustes de posicionamiento en la ventana
|
Hola Jose Luis, gracias por la info. Hasta ahora lo he tenido con un splitter, pero estaba buscando la forma de eliminarlo.
Le hecho un vistazo.
Saludos,
Angel
|
Ajustes de posicionamiento en la ventana
|
Angel, quieres eliminarlo o simplemente evitar que el usuario pueda moverlo???
Si el caso es el segundo, usa [color=#BF0000:286m4rsw] oSplit:lStatic:= .T. [/color:286m4rsw]
|
Ajustes de posicionamiento en la ventana
|
Trato de eliminarlo ya que me da problemas cuando redimensiono las ventanas.
Angel
|
Ajustes de posicionamiento en la ventana
|
Bueeeeno, asunto solucionado.
Después de activar la ventana hago un :
[code=fw:2f9dsyxj]<div class="fw" id="{CB}" style="font-family: monospace;">oTab:<span style="color: #000000;">nLeft</span>:=oBrw:<span style="color: #000000;">nLeft</span>; oTab:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:2f9dsyxj]
Y listos!
Angel
|
Ajustes en XBrowse.
|
Hola a todos,
Estoy por empezar a cambiar los TWBrowse por XBrowse de mi app y quisiera saber si es correcto y posible ( creo que lo lei hace tiempo ) lo siguiente :
Si ya tengo definido ciertos ajustes ( Colores, Gradientes, BackGround, etc. ) por aplicar y para no andar repitiendolos en cada browse ( son muuchos por convertir ), puedo pasar el objeto a una funcion y desde ahi aplicarlos ?
[code=fw:3e8z86x6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> brw1 <br />... <br />... <br />....<br /><br />AplParms2Brw<span style="color: #000000;">(</span> brw1 <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> AplParms2Brw<span style="color: #000000;">(</span> xBrw <span style="color: #000000;">)</span><br /><br />With Object xBrw<br />xBrw:<span style="color: #000000;">esto</span> := XXXX<br />xBrw:<span style="color: #000000;">aquello</span> := yyyy<br />xBrw:<span style="color: #000000;">aquel</span> := zzzz<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3e8z86x6]
Y para alinear los datos de una columna, debo hacerlo de manera individual ?
aplique JUSTIFY 1 y los datos si se alinearon a la derecha, pero el encabezado queda centrado y el footer queda a la izquierda.
[url=http://img714.imageshack.us/i/xbrw1.jpg/:3e8z86x6][img:3e8z86x6]http://img714.imageshack.us/img714/5940/xbrw1.jpg[/img:3e8z86x6][/url:3e8z86x6]
Sorry, todavia estoy acostumbrado a la clase de Hernan, en la cual se ubican los 3 datos a la alineacion indicada. <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Saludos
|
Ajustes en XBrowse.
|
You can pass oBrw object to a function for assigning common properties.
nHeadStrAlign and nFootStrAlign are to be assigned independantly.
But where XBrowse is defined in an appropriate way, XBrowse automatically decides picture formats and alignments of data and footers appropriate to the data type.
|
Ajustes en XBrowse.
|
Mr. Rao,
Thanks a lot for clarifying this to me.
And yes, you're rigth, my intention is to assign common properties to all and then fine tune when necessary.
Best regards.
|
Ajustes en XBrowse.
|
Mr. Rao,
Just to let you know is working perfect !!!
Thanks again.
Regards
|
Ajustes en XBrowse.
|
Hola Raymundo:
Yo tambien estoy cambiando TWBrowse por XBrowse
Todavia no me queda claro como debo desarrollar para XBrowse, lo equivalente a bEdit de TWBrowse.
Tu me podrias ayudar en esto por favor
De antemanos, gracias
|
Ajustes en XBrowse.
|
Gonzalo,
Siento horrible no poder apoyarte en este punto, tambien estoy dando mis primeros pasos en el Xbrowse. <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
De todos los browses que voy a cambiar ( le calculo unos 100 ), todos son unicamente para mostrar datos, a excepcion de 2 donde si hago edicion de celdas pero los estoy dejando para lo ultimo, ya que le haya entendido bien a esta clase, totalmente nueva para mi.
Espero comprendas que no es que no quiera, sino que en este momento no me es posible por los escazos conocimientos del XBrowse que tengo.
Si te sirve en algo, te puedo enviar algo del tema pero usando la TWBrowse de Hernan, que es la que ha usado toda la vida <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Saludos
|
Ajustes en XBrowse.
|
Antonio/Daniel,
Me aparece otro punto, quiero usar en una columna un SetCheck() para avisar si esta activo o no un valor, viendo ejemplos del foro y de la carpeta SAMPLES lo puedo realizar, el detalle es que el valor/columna a usar NO es logico, lo tengo como 0,1.
Alguna Data o Method por usar para lograrlo ?
Ahora, lo mas curioso del asunto.
[code=fw:24xn5n5p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> lbSCatMar <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oFldCat:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> ;<br /> COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">3</span> ;<br /> HEAD <span style="color: #ff0000;">'NOMBRE'</span>,<span style="color: #ff0000;">'FAV'</span> ;<br /> COLSIZES <span style="color: #000000;">265</span>,<span style="color: #000000;">30</span> ;<br /> ARRAY aSCatMar ;<br /> FOOTERS ;<br /> <span style="color: #0000ff;">FONT</span> aSysFnts<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /><br />AdjRStXBrws<span style="color: #000000;">(</span> lbSCatMar, .T., <span style="color: #000000;">{</span><span style="color: #000000;">0</span>,<span style="color: #000000;">1</span><span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br />lbSCatMar:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> ,.t.<span style="color: #000000;">)</span><br /> </div>[/code:24xn5n5p]
Esto son los datos originales :
[url=http://img98.imageshack.us/i/marcas1.jpg/:24xn5n5p][img:24xn5n5p]http://img98.imageshack.us/img98/7972/marcas1.jpg[/img:24xn5n5p][/url:24xn5n5p]
Y estos cambiando el valor de la columna :
[url=http://img199.imageshack.us/i/marcas2.jpg/:24xn5n5p][img:24xn5n5p]http://img199.imageshack.us/img199/8983/marcas2.jpg[/img:24xn5n5p][/url:24xn5n5p]
Ahora me aparecen todas las columnas en el Browse, aunque al inicio estoy usando solo 2
[url=http://img641.imageshack.us/i/marcas3.jpg/:24xn5n5p][img:24xn5n5p]http://img641.imageshack.us/img641/2268/marcas3.jpg[/img:24xn5n5p][/url:24xn5n5p]
Se que estoy haciendo algo mal, pero no encuentro que cosa es, lo unico que apunta a la falla es lo siguiente :
Al inicio, tengo el array vacio, despues, al obtener los datos tengo un :
[code=fw:24xn5n5p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />lbSCatMar:<span style="color: #000000;">SetArray</span><span style="color: #000000;">(</span> aSCatMar <span style="color: #000000;">)</span><br />lbSCatMar:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:24xn5n5p]
Podrian indicarme cual(es) son mi(s) error(es) ??
Muchas Gracias
Saludos
|
Ajustes en XBrowse.
|
Ok,
Ya encontre el porque de esto :
El valor inicial del array que va a ser mostrado, si es diferente al obtenido despues de inicializado en XBrowse muestra todo el contenido.
Incluso, ya puedo ver mi setcheck() !!! <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Jejejejeje
Uds perdonen el oso ...... <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Pero como comento, estoy empezando con esta clase. <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Saludos
|
Ajustes en XBrowse.
|
[quote="gdeteran":ef3zrjac]Hola Raymundo:
Yo tambien estoy cambiando TWBrowse por XBrowse
Todavia no me queda claro como debo desarrollar para XBrowse, lo equivalente a bEdit de TWBrowse.
Tu me podrias ayudar en esto por favor
De antemanos, gracias[/quote:ef3zrjac]
Te adjunto un ejemplo de como lo hago, espero te sirva.
[code=fw:ef3zrjac]<div class="fw" id="{CB}" style="font-family: monospace;"> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET <br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|oCol, xVal, nKey| iif<span style="color: #000000;">(</span> nKey != VK_ESCAPE, ;<br /> <span style="color: #000000;">(</span>oDbf:<span style="color: #000000;">UBICACION</span>:=upper<span style="color: #000000;">(</span>xVal<span style="color: #000000;">)</span> , oDbf:<span style="color: #000000;">save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> , oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> , <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"@!"</span><br /> </div>[/code:ef3zrjac]
Saludos.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
Ajustes en XBrowse.
|
Gracias Rolando y Raimundo
|
Ajustes en XBrowse.
|
Antonio/Daniel,
Sigo con mis dudas/preguntas con la clase.
El uso del metodo ToExcel() esta excelente, realmente nos ahorra mucho tiempo y codigo, sin embargo, hasta donde lo veo solo nos exporta el contenido del XBrowse, sin darnos opcion a poner al titulo/encabezado.
Me explico, si estoy alguna opcion (X) y si tomo un cliente (Y) con un rango de fechas (Z)
Estaria fenomenal si pudieramos mandar un array con estos datos y que la funcion nos los ponga como titulo/encabezado.
[code=fw:2qqkr0ec]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> CONCENTRADO DE OPERACIONES <span style="color: #000000;">(</span>x<span style="color: #000000;">)</span><br /> EL MUNDO DEL ZAPATO S.A. DE C.V. <span style="color: #000000;">(</span>y<span style="color: #000000;">)</span><br /> DEL : <span style="color: #000000;">01</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2010</span> AL <span style="color: #000000;">15</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2010</span> <span style="color: #000000;">(</span>z<span style="color: #000000;">)</span><br /><br />Y a partir de aqui el contenido del <span style="color: #0000ff;">XBrowse</span><br />..<br />..<br /> </div>[/code:2qqkr0ec]
o quizas ya lo haga, pero no se como hacerlo.
Muchas Gracias y Saludos
|
Ajustes en XBrowse.
|
Antonio/Daniel,
Otra mas :
Es muy similar a la que me pasaba al usar un array, pero ahora con un RecordSet, por mas que indico las columnas que necesito me salen todas.
De momento lo solucione "reconstruyendo" el XBrowse enseguida de obtener los datos del query y ocultando algunas columnas (con indicaciones del Sr. Rao en otros posts ), sin embargo, se mira muy "patiño".
Me explico : De un RecordSet de 4 datos solo quiero mostrar 2, al principio creo el RS vacio, mismo que se llenara de datos segun la opcion seleccionada por el usuario. Asi que cuando se muestra el browse salen las 4 columnas, al obtener datos ya me salen 2, peeero, unicamente si oculto las 2 que no deseo mostrar.
Ya cheque los valores del RS por si eran diferentes ( vease punto anterior con array ) y son de valores correctos.
Gracias y Saludos
|
Ajustes en XBrowse.
|
Raymundo
como creas el browse?
|
Ajustes en XBrowse.
|
Daniel,
Perdon por no contestarte pronto, pero estuve checando algunas cosas.
Acerca del punto anterior, ya hice algunas pruebas y estoy optando por usar solo los XBrowses + arrays, dejando a un lado el XBrowse + recordSet.
Ya que siempre use arrays con el browse de Hernan, me acomoda mas generar el RS, vaciarlo a un array con GetRows() y listo.
Ahora, quiero usar el XBrowse para mostrar un archivo de texto, viendo el ejemplo que viene es facil y rapido, la unica diferencia, es que el archivo a mostrar esta encriptado.
En este momento estoy usando un RichEdit + MemoRead( DeCrypt( archivo.txt, miclave ) )
Mientras con XBrowse es tTxtFile( archivo.txt, 0 ) que me genera un object
Es necesario usar el object ?
o lo puedo hacer de otra manera.
Saludos
|
Ajustes en XBrowse.
|
como puedo sumar una columna del xbrowse
|
Ajustes en XBrowse.
|
Elmo,
Existe un metodo propio del XBrowse que nunca lo he usado asi que no sabria decirte la sintaxis correcta.
Sin embargo lo hago de esta manera :
[code=fw:l9xqze56]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nTotVtas := <span style="color: #000000;">0</span><br /><br />aeval<span style="color: #000000;">(</span> lbConcVtas:<span style="color: #000000;">aArrayData</span>, <span style="color: #000000;">{</span> |nEle,nIndex| nTotVtas += lbConcVtas:<span style="color: #000000;">aArrayData</span><span style="color: #000000;">[</span>nIndex,<span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <-- <span style="color: #000000;">3</span> = a la columna a sumar<br /><br />lbConcVtas:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bFooter</span> := <span style="color: #000000;">{</span> || transform<span style="color: #000000;">(</span> nTotVtas, <span style="color: #ff0000;">"999,999.99"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> </div>[/code:l9xqze56]
Espero te sirva.
Saludos
|
Ajustes en XBrowse.
|
Na imagem que vc postou o ZERO, esta cortado, qual o FONT que vc usou?
Obrigado
Cleber
<!-- e --><a href="mailto:cleberconde@hotmail.com">cleberconde@hotmail.com</a><!-- e -->
FWPPC/FWH 10.6/xDev/Mysql
|
Ajúda com Declaração - VB / Delphi para FWH (resolvido)
|
Amigos, abaixo segue a mesma declaração em DELPHI e VB, como declarar para FIVEWIN?
[b:1yaawffl] Exemplo em DELPHI:[/b:1yaawffl]
function ScopeGetParam (_TipoParam: LongInt;
_lpParam: PParam_Coleta): LongInt; stdcall;
external scope name 'ScopeGetParam';
PParam_Coleta = ^TParam_Coleta;
TParam_Coleta = packed record
Bandeira,
FormatoDado,
HabTeclas: Word;
MsgOp1,
MsgOp2,
MsgCl1,
MsgCl2: array [1..64] of Char;
WrkKey: array [1..17] of Char;
PosMasterKey: Word;
PAN: array [1..20] of Char;
UsaCriptoPinpad,
IdModoPagto,
AceitaCartaoDigitado: Byte;
Reservado: array [1..105] of Char;
end;
[b:1yaawffl]Exemplo em VB:[/b:1yaawffl]
Declare Function ScopeGetParam Lib "SCOPEAPI.DLL" _
(ByVal Status As Long, _
ByRef Coleta As stColeta) As Long
' Estrutura de coleta
Type stColeta
Bandeira As Integer
FormatoDado As Integer
HabTeclas As Integer
MsgOp1 As String * 64
MsgOp2 As String * 64
MsgCl1 As String * 64
MsgCl2 As String * 64
WrkKey As String * 17
' devido ao alinhamento do VB foi necessario quebrar o campo em dois
PosMasterKey As Byte
Filler As Byte
Reservadoas As String * 128
End Type
|
Ajúda com Declaração - VB / Delphi para FWH (resolvido)
|
Ninguem!?
|
Ajúda com Declaração - VB / Delphi para FWH (resolvido)
|
Resolvido assim:
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <hbapiitm.h>
#include <scopeapi.h>
#include <loadlib.h>
typedef dllScopeAPI (WINAPI*SCOPEGETPARAM) (LONG _TipoParam, ptPARAM_COLETA _lpParam);
HB_FUNC(HB_SCOPEGETPARAM)
{
stPARAM_COLETA PColeta;
PHB_ITEM pArrayPlus;
SCOPEGETPARAM pFunc;
memset(&PColeta, 0, sizeof(PColeta)); //zera tudo
pFunc = (SCOPEGETPARAM) GetProcAddress((HINSTANCE)hb_parnl(3), "ScopeGetParam");
hb_retnl(pFunc(hb_parni(1), &PColeta));
pArrayPlus = hb_param(2, HB_IT_ARRAY);
hb_arrayAddForward(pArrayPlus, hb_itemPutNI(NULL, PColeta.Bandeira)); // 1
hb_arrayAddForward(pArrayPlus, hb_itemPutNI(NULL, PColeta.FormatoDado)); // 2
hb_arrayAddForward(pArrayPlus, hb_itemPutNI(NULL, PColeta.HabTeclas)); // 3
hb_arrayAddForward(pArrayPlus, hb_itemPutC(NULL, PColeta.MsgOp1)); // 4
hb_arrayAddForward(pArrayPlus, hb_itemPutC(NULL, PColeta.MsgOp2)); // 5
hb_arrayAddForward(pArrayPlus, hb_itemPutC(NULL, PColeta.MsgCl1)); // 6
hb_arrayAddForward(pArrayPlus, hb_itemPutC(NULL, PColeta.MsgCl2)); // 7
hb_arrayAddForward(pArrayPlus, hb_itemPutC(NULL, PColeta.WrkKey)); // 8
hb_arrayAddForward(pArrayPlus, hb_itemPutCL(NULL, " ", 1)); // 9
hb_arrayAddForward(pArrayPlus, hb_itemPutNI(NULL, PColeta.PosMasterKey)); // 10
hb_arrayAddForward(pArrayPlus, hb_itemPutC(NULL, PColeta.PAN)); // 11
hb_arrayAddForward(pArrayPlus, hb_itemPutNI(NULL, PColeta.UsaCriptoPinpad)); // 12
hb_arrayAddForward(pArrayPlus, hb_itemPutNI(NULL, PColeta.IdModoPagto)); // 13
hb_arrayAddForward(pArrayPlus, hb_itemPutNI(NULL, PColeta.AceitaCartaoDigitado)); // 14
hb_arrayAddForward(pArrayPlus, hb_itemPutCL(NULL, PColeta.Reservado, 105)); // 15
}
#pragma ENDDUMP
|
Ajúda com MYSQL+SQLLIB
|
Amigos tenho a seguinte linha:
cmd:="SELECT co_tipo,co_tfla,co_natu FROM bdacon WHERE co_tipo=´"+VAR+"' ORDER BY co_tipo DESC"
USE SQL(cmd) NEW ALIAS TEMP125
SELECT TEMP125
DO WHILE ! EOF()
SELECT NATUREZA
DBSETORDER(1)
DBSEEK(TEMP125->co_natu)
SELECT TEMP125
AADD(array,{NATUREZA->na_nome,TEMP125->co_tipo})
DBSKIP()
ENDDO
Acontece que, para carregar cerca de 600 registros dessa forma esta demorando nos terminais 4 a 6 segundos. Como posso melhorar isso, parece que este relacionamento que faço, esta deixando lento o processo.
Fiquem com Deus
AOKISANTOS
|
Ajúda com MYSQL+SQLLIB
|
Consegui bons resultados criando indice na coluna que vc coloca no WHERE
melhora bastante
Ari
|
Al Compilar BCC74 64 bits me Da este error
|
Saludos al Forum
Al compilar BCC74 64 bits me Da este error
Error: Unresolved external 'hb_winmainGetInstance' referenced from K:\HARBOUR_V\HARBOUR_BCC74_64\LIB\WIN\BCC\GTWVW.A|gtwvw.o
Error: Unresolved external 'hb_gt_w32_setClipboard' referenced from K:\HARBOUR_V\HARBOUR_BCC74_64\LIB\WIN\BCC\GTWVW.A|gtwvw.o
Error: Unresolved external 'hb_gt_w32_getKbdState' referenced from K:\HARBOUR_V\HARBOUR_BCC74_64\LIB\WIN\BCC\GTWVW.A|gtwvw.o
Error: Unresolved external 'hb_gt_w32_setKbdState' referenced from K:\HARBOUR_V\HARBOUR_BCC74_64\LIB\WIN\BCC\GTWVW.A|gtwvw.o
Error: Unresolved external 'hb_gt_w32_getClipboard' referenced from K:\HARBOUR_V\HARBOUR_BCC74_64\LIB\WIN\BCC\GTWVW.A|gtwvw.o
Error: Unresolved external 'dv_memcpy' referenced from K:\HARBOUR_V\HARBOUR_BCC74_64\LIB\WIN\BCC\GTWVW.A|wvwfuncs.o
|
Al Compilar BCC74 64 bits me Da este error
|
Mira se no te falta:
[code=fw:2fj58rij]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> hbvm.lib<br /> rtl.lib<br /> common.lib<br /> compiler.lib<br /> </div>[/code:2fj58rij]
Regards, saludos.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.