topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
tsbrowse y tArray ( SOLUCIONADO )
|
EstimadosComo poder editar un celda CHECKBOX con clase tArrayal presionar doble click o tecla espacio no hace NADAadjunto ejemplo[code:im5tt1t7]
REDEFINE BROWSE oLbx[1] ID 110 OF PAGE3 CELLED COLORS CLR_BLACK, RGB( 255, 255, 235)
DEFINE STRUCT oIng:oTramite
STRUCT FIELD tipo INIT space(19)
STRUCT FIELD lsolicita INIT .F.
STRUCT FIELD quienpaga INIT space(10)
STRUCT FIELD Monto INIT 0
STRUCT FIELD documento INIT space(20)
STRUCT FIELD numero INIT 0
STRUCT FIELD banco INIT space(15)
STRUCT FIELD lrealizado INIT .f.
STRUCT FIELD lpagado INIT .f.
STRUCT FIELD Fecha INIT date()
END STRUCT
aArray := {{ "Inscripción RNVM" , .F., PadR("Cliente",10), 0, space(20), 0, space(15), .f., .f., DATE()},;
{ "Revisión Técnica" , .F., PadR("Cliente",10), 0, space(20), 0, space(15), .f., .f., DATE()},;
{ "Seguro Obligatorio" , .F., PadR("Cliente",10), 0, space(20), 0, space(15), .f., .f., DATE()},;
{ "Permiso Circulación" , .F., PadR("Cliente",10), 0, space(20), 0, space(15), .f., .f., DATE()},;
{ "Transferencia" , .F., PadR("Cliente",10), 0, space(20), 0, space(15), .f., .f., DATE()}}
for i := 1 to 5
::oTramite:Append()
::oTramite:tipo := aArray[i,1]
::oTramite:lsolicita := aArray[i,2]
::oTramite:quienpaga := aArray[i,3]
::oTramite:Monto := aArray[i,4]
::oTramite:documento := aArray[i,5]
::oTramite:numero := aArray[i,6]
::oTramite:banco := aArray[i,7]
::oTramite:lrealizado := aArray[i,8]
::oTramite:lpagado := aArray[i,9]
::oTramite:Fecha := aArray[i,10]
::oTramite:Save()
next i
::oTramite:Gotop()
WITH OBJECT oLbx[1]
:SetArray( oIng:oTramite:aDatos )
:lNoChangeOrd:= .t.
:lNoVScroll := .f.
:lNoHScroll := .t.
:nHeightCell += 5 //filas
:nHeightHead += 10 //columnas
:SetColor( { 9, 10 }, { CLR_BLACK, ViewUsu():aTexture[1] } ) // brushed Footers background
:SetColor( { 5, 6, 4, 15 }, ;
{ CLR_WHITE, CLR_BLACK, ; // cursor
ViewUsu():aTexture[1], ; // brushed headers background
CLR_BLACK }, ; // grid lines
NIL )
:nRowPos := 1 // reinitialize for multiple calls to this method
:nColPos := 1
:nCell := 1
:lHitTop := .F.
:lHitBottom := .F.
:HiliteCell( 1 )
:bLogicLen := { || Len( oIng:oTramite:aDatos ) }
:bGoTop := { || oIng:oTramite:Gotop() }
:bGoBottom := { || oIng:oTramite:Gobottom() }
:bSkip := { |nSkip| oIng:oTramite:skip(nSkip) }
END WITH
ADD COLUMN TO BROWSE oLbx[1] DATA oIng:oTramite:tipo;
TITLE "Tip.Tramite" ;
SIZE 100 PIXELS ;
3DLOOK TRUE,TRUE,FALSE ;
ALIGN DT_LEFT,DT_CENTER,DT_CENTER ;
COLORS CLR_BLACK, CLR_HGRAY
ADD COLUMN TO BROWSE oLbx[1] DATA oIng:oTramite:lSolicita ;
TITLE "Solicita" ;
ALIGN DT_CENTER, DT_CENTER;
SIZE 40 EDITABLE CHECKBOX ;
3DLOOK TRUE, TRUE, TRUE;
COLORS CLR_HMAGENTA, RGB( 255, 255, 235)
activate dialog oDlg
return
[/code:im5tt1t7]
aHora si cambio la columna 2
[code:im5tt1t7] ADD COLUMN TO BROWSE oLbx[1] DATA ARRAY ELEMENT 2 ;
TITLE "Solicita" ;
ALIGN DT_CENTER, DT_CENTER;
SIZE 40 EDITABLE CHECKBOX ;
3DLOOK TRUE, TRUE, TRUE;
COLORS CLR_HMAGENTA, RGB( 255, 255, 235)
[/code:im5tt1t7]Todos los elementos de la lista cambian??desde ya muchas gracias
|
tsbrowse y tArray ( SOLUCIONADO )
|
Lo he solucionado momentaneamente por estas lineassi alguien tiene una mejor solución, bienvenida sea..[code:2pb478um] ADD COLUMN TO BROWSE oLbx[1] DATA oIng:oTramite:tipo;
TITLE "Tip.Tramite" ;
SIZE 100 PIXELS ;
3DLOOK TRUE,TRUE,FALSE ;
ALIGN DT_LEFT,DT_CENTER,DT_CENTER ;
COLORS CLR_BLACK, CLR_HGRAY
ADD COLUMN TO BROWSE oLbx[1] DATA oIng:oTramite:lSolicita;
TITLE "Solicita" ;
ALIGN DT_CENTER, DT_CENTER;
SIZE 40 EDITABLE CHECKBOX ;
3DLOOK TRUE, TRUE, TRUE;
COLORS CLR_HMAGENTA, RGB( 255, 255, 235)
oLbx[1]:aColumns[2]:bPostEdit := { |x| oIng:oTramite:lSolicita := x, oIng:oTramite:Save() }
[/code:2pb478um]
|
tsbrowse y tArray ( SOLUCIONADO )
|
[quote="Patricio Avalos Aguirre":2iha9d2s]si alguien tiene una mejor solución, bienvenida sea..[/quote:2iha9d2s]Hola Patricio:Me parece muy buena tu solución.También podrías probar lo siguiente[code:2iha9d2s] ADD COLUMN TO BROWSE oLbx[1] ;
DATA { |lVar| If( lVar == Nil, oIng:oTramite:lSolicita, oIng:oTramite:lSolicita := lVar ) } ;
TITLE "Solicita" ALIGN DT_CENTER, DT_CENTER;
SIZE 40 EDITABLE CHECKBOX 3DLOOK TRUE, TRUE, TRUE;
COLORS CLR_HMAGENTA, RGB( 255, 255, 235)
[/code:2iha9d2s]Un Abrazo.Manuel Mercado
|
tsbrowse y tArray ( SOLUCIONADO )
|
Gracias maestro funcionó, solo con una correccionoIng:oTramite:Save()[code:9ggd5bgd] ADD COLUMN TO BROWSE oIng:oLbx[_TRAMITES] ;
DATA { |lVar| If( lVar == Nil, oIng:oTramite:lSolicita, (oIng:oTramite:lSolicita := lVar, oIng:oTramite:Save()) ) } ;
TITLE "Solicita" ALIGN DT_CENTER, DT_CENTER;
SIZE 40 EDITABLE CHECKBOX 3DLOOK TRUE, TRUE, TRUE;
COLORS CLR_HMAGENTA, RGB( 255, 255, 235)
[/code:9ggd5bgd]
|
tsbrowse y toleauto
|
amigos, logre generar la lib de tsbrowse, estoy usando verce 5.3, fwh 8.04, harbour 1.1, bcc55, workshop 4.5, el tema es cuando quiero enlazar mis prg con la lib, me sale esto; Error: Unresolved external '_HB_FUN_TOLEAUTO' referenced from C:\PROGRAMAS\PROGH\SBROWSEH.LIB|TSBROWSEalguien sabe porque..
|
tsbrowse y toleauto
|
[quote="norte_67":9cgo07a2]amigos, logre generar la lib de tsbrowse, estoy usando verce 5.3, fwh 8.04, harbour 1.1, bcc55, workshop 4.5, el tema es cuando quiero enlazar mis prg con la lib, me sale esto;
Error: Unresolved external '_HB_FUN_TOLEAUTO' referenced from C:\PROGRAMAS\PROGH\SBROWSEH.LIB|TSBROWSE
alguien sabe porque..[/quote:9cgo07a2]Norte_67:Aparentemente, el código de ToleAuto() no está suministrado.Revisa si en el Subdirectorio \TSBROWSE\LIB se encuentran los ficherosHbOle.lib y Ole2.lib. Puede que te falten, ya que mencionas que reconstruiste la librería. No estoy seguro. Si las tienes, prueba incluyendolas en lib de terceros en el Verce. Creo que estas son las lib para exportar a Excel.Yo he hecho pruebas utilizando las librerias que se proporcionan (no las reconstruí) y funcionan.Saludos.FranciscoASaludos.
|
tsbrowse tsbutton twbrowse ultima version de fw y harbour
|
buenos dias
alguien tiene los fuentes de
tsbrowse, tsbutton, del master Mercado
twbrowse de Hernán
que se puedan compilar con la última versión de Fw
y de harbour
saludos cordiales
Wilson
|
tsbrowse tsbutton twbrowse ultima version de fw y harbour
|
<!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/fivewin-contributions/downloads/tsbuttonu.zip">https://bitbucket.org/fivetech/fivewin- ... uttonu.zip</a><!-- m -->
Prueba esta version y vamos viendo
|
tsbrowse tsbutton twbrowse ultima version de fw y harbour
|
gracias jefe ya esta compilado
ahora TsBrowse y twbrowse de Hernan
El tema es que tengo un peque programa que están interesados unas personas y debo hacerle funcionar como esta pero con la nueva version de Fhw y Harbour
gracias
|
tsbrowse tsbutton twbrowse ultima version de fw y harbour
|
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33804&start=0&hilit=tsbrowse">viewtopic.php?f=6&t=33804&start=0&hilit=tsbrowse</a><!-- l -->
|
tsbrowse9 working with latest FWH
|
Has anyone been able to get tsbrowse9 working with latest FWH?
When you try to edit cell (tsget) it just goes to next cell instead of editing it. I have spent some time trying to figure this out but I have not been able to figure it out.
|
tsbrowser y campos MEMO
|
amigos:
Tengo una DBF con un campo memo y necesito editarlo con una TSBROWSER
6.0, se puede hacer esto?
Algun ejemplo?
Gracias
|
tsbrowser y tReport
|
Amigos,
porque si a mi proyecto para mostrar un listado de clientes utilizando REPORT le inserto la libreria TSBROWSER, el preview del reporte no muestra nada?
Si saco la TSBROWSER el preview trabaja perfectamente.
Alguna idea?
|
tsbrowser y tReport
|
lo que sucede es que la libreria sbrowseh.lib contiene
rpreview.prg y Tmetafil, debes eliminarlas y recompilar
sbrowseh
|
tsbrowser y tReport
|
Gracias,.
Funciono a medias, ya que aora los iconos no existen en el preview. mira este pic-.
Pregunta: yo ocupo una .res dentro de mi proyecto, el prev32.dll debe estar contenido dentro del mismo?
[url=http://imageshack.us:1kjfjl6p][img:1kjfjl6p]http://img59.imageshack.us/img59/3972/untitled24zl.jpg[/img:1kjfjl6p][/url:1kjfjl6p]
|
tsbutton duda por favor
|
utilizo la clase tsbutton y necesito cambiar la imagen del boton en tiempo de ejecucion
veo que existe este metodo, ChangeBitMap() , lo utilizo pero no se que estoy haciendo mal
saludos
|
tsbutton duda por favor
|
Tomafa:
No estoy seguro de que es lo que estas buscando...
Al boton de Tsbutton le puedes asignar 4 bitmaps
REDEFINE ...... RESOURCE "bitmap1","bitmap2","bitmap3","bitmap4" of Odlg
Espero te sirva de algo.
Saludos
Ruben Fernandez.
|
tsbutton duda por favor
|
gracias por tu respusta
pero lo que quiero hacer es por decir, tengo un boton con una imagen, pero al querer desabilitar este boton le quiero cambiar la imagen, estuve probando con esta propiedad pero no se que estoy haciendo mal que no me lo hace
lo defino asi
REDEFINE ...... RESOURCE "bitmap1","bitmap2","bitmap3","bitmap4" of Odlg
boton:ChangeBitMap( cfile,cfile, lresource)
asi lo quiero cambiar pero no me lo hace
|
tsbutton or btnbmp ?
|
I must use a control type tsbutton on fwppc because I must change bitmap on buttom ( level1,level2,level3, level4)
How I can make ?
I cannot compile tsbutton on fwppc and the btnbmp class for fwppc not have this possibilities.
|
tsbutton or btnbmp ?
|
Hello Silvio,
could you post a screen of what you want to do.
Best regards,
Otto
|
tsbutton or btnbmp ?
|
Otto,
I must create the beach application I have on Pc into smarthphone
I must show all umbrellas and when I click on each umbrellas I must open a menu popup
But the umbrellas are different and there is also another object as ship , bycicle and others
look the picture please [img:27826nuk]http://img142.imageshack.us/img142/7596/bmpriva.png[/img:27826nuk]
|
tsbutton+xbrowse done a google like app help
|
Hi, After two days working,done a google search mode app.exe manual help.[img:3koe6dqi]http://www.xtech.com.cn/down/googlelike.jpg[/img:3koe6dqi] Codes are simple.FUNCTION weihu17(cvar0)local odlg,obrow,cvar1:=SPACE(30),aRight:=if(ASCAN(aFunctions,"weihu17")>0,aRights[ASCAN(aFunctions,"weihu17")],{"","","","","","",""})local ledit:=aright[2]=="Y"local ofont1,ofont2,font3private odb1DEFINE FONT ofont1 NAME 'arial' underline SIZE 0,-16 DEFINE FONT ofont2 NAME 'arial' SIZE 0,-12 DEFINE FONT ofont3 NAME 'arial' underline SIZE 0,-12 if cvar0<>nil;cvar1:=cvar0+SPACE(20); endodb1:=oserver:query("select * from help where belongto like '%"+ALLTRIM(cvar1)+"%'")DEFINE DIALOG odlg RESOURCE "help" TITLE "帮助" FONT oFont14 REDEFINE GET cvar1 ID 101 OF odlg REDEFINE SBUTTON ID 102 OF odlg PROMPT "搜索" xp ACTION weihu1701(cvar1,odb1,obrow) REDEFINE SBUTTON ID 103 OF odlg PROMPT "详细>>" xp ACTION weihu1702(odb1,obrow,ledit) obrow := TXBrowse():New( odlg ) obrow:SetMySQL(@odb1) obrow:BLDBLClick:={||weihu1702(odb1,obrow,ledit)} oCol := obrow:AddCol() oCol:bStrData := {||ALLTRIM(odb1:ctitle)+CRLF+ALLTRIM(odb1:descrip)+CRLF+ALLTRIM(odb1:belongto)} oCol:cHeader := "说明" ocol:nHeadStrAlign :=AL_LEFT if rsl0<=1 ocol:nwidth:=460 else ocol:nwidth:=560 end obrow:nDataLines := 2 obrow:nrowheight:=92 obrow:CreateFromReSource(201) obrow:nColDividerStyle := LINESTYLE_NOLINES obrow:nRowDividerStyle := LINESTYLE_NOLINES obrow:lColDividerComplete := .f. obrow:lHScroll:=.f. //obrow:nHeaderLines := 0 //obrow:lheader:=.f. //if cvar0<>nil // obrow:bskip:=obrow:bskipper obrow:lRecordSelector:=.f. obrow:nMarqueeStyle := MARQSTYLE_NOMARQUEE //end with object obrow:acols[1] :bPaintText := { |oCol, hDC, cText, aCoord| DrawText( oCol, hDC, cText, aCoord, ofont1, ofont2,ofont3 ) } END REDEFINE SBUTTON ID 301 OF odlg PROMPT "网页格式帮助" nobox COLORS { |oBtn| If( ! oBtn:lActive, CLR_HBLUE, ; If( oBtn:lMouseOver, CLR_HBLUE, ; If( oBtn:lPressed, CLR_HRED, CLR_BLUE ) ) ) }; ACTION htmhelp() REDEFINE SBUTTON ID 302 OF odlg PROMPT "流程图" nobox COLORS { |oBtn| If( ! oBtn:lActive, CLR_HBLUE, ; If( oBtn:lMouseOver, CLR_HBLUE, ; If( oBtn:lPressed, CLR_HRED, CLR_BLUE ) ) ) }; ACTION fromto(cvar0) REDEFINE SBUTTON ID 303 OF odlg PROMPT "打印" nobox COLORS { |oBtn| If( ! oBtn:lActive, CLR_HBLUE, ; If( oBtn:lMouseOver, CLR_HBLUE, ; If( oBtn:lPressed, CLR_HRED, CLR_BLUE ) ) ) }; ACTION obrow:report() REDEFINE SBUTTON ID 304 OF odlg PROMPT "退出" nobox COLORS { |oBtn| If( ! oBtn:lActive, CLR_HBLUE, ; If( oBtn:lMouseOver, CLR_HBLUE, ; If( oBtn:lPressed, CLR_HRED, CLR_BLUE ) ) ) }; ACTION odlg:end() ACTIVATE DIALOG odlg // on INIT (odlg:autoresize()) odb1:end() RELEASE FONT ofont1 RELEASE FONT ofont2 RELEASE FONT ofont3return static function DrawText( oCol, hDC, cText, aCoord, ofont1, ofont2,ofont3 ) local nTop := aCoord[ 1 ], nLeft := aCoord[ 2 ] local nBottom := aCoord[ 3 ], nRight := aCoord[ 4 ] local nRow := nTop local cLine, nFontHt SetTextColor( hDC, CLR_HBLUE) ofont1:Activate( hDC ) nFontHt := GetTextHeight( oCol:oBrw:hWnd, hDC ) DrawTextEx( hDC, ALLTRIM(odb1:ctitle), { nRow, nLeft, nRow + nFontHt + 4, nRight }, oCol:nDataStyle ) ofont1:DeActivate( hDC ) SetTextColor( hDC, CLR_BLACK) nRow += nFontHt + 4 ofont2:Activate( hDC ) DrawTextEx( hDC, odb1:descrip, { nRow, nLeft, nRow + 2*nFontHt + 2, nRight }, oCol:nDataStyle ) ofont2:DeActivate( hDC ) SetTextColor( hDC, CLR_GREEN) nRow += 2*nFontHt ofont3:Activate( hDC ) DrawTextEx( hDC, "适用表单:"+ALLTRIM(odb1:belongto), { nRow, nLeft, nbottom, nRight }, oCol:nDataStyle ) ofont3:DeActivate( hDC )return nil FUNCTION weihu1701(cvar1,odb1,obrow)local ccollocal array1:={}cvar1:=ALLTRIM(cvar1)cvar1:=STRTRAN(cvar1," ",",")ccol:=StrToken( cvar1, 1, "," )AADD(array1,ccol)nfor:=1while .t. cCol := StrToken( cvar1, nFor + 1, "," ) if EMPTY(ccol) exit end AADD(array1,ccol) nfor ++ enddo case case LEN(array1)==1 csql1:="select * from help where belongto like '%"+ALLTRIM(array1[1])+"%' or ctitle like '%"+ALLTRIM(array1[1])+"%' or descrip like '%"+ALLTRIM(array1[1])+"%'"; +" order by ctitle" case LEN(array1)==2 csql1:="select * "; +"from "; +"( select * from help where belongto like '%"+ALLTRIM(array1[1])+"%' or ctitle like '%"+ALLTRIM(array1[1])+"%' or descrip like '%"+ALLTRIM(array1[1])+"%'"; +") a1"; +" where belongto like '%"+ALLTRIM(array1[2])+"%' or ctitle like '%"+ALLTRIM(array1[2])+"%' or descrip like '%"+ALLTRIM(array1[2])+"%'"; +" order by ctitle" otherwise csql1:="select * "; +" from (select * "; +" from ( select * from help where belongto like '%"+ALLTRIM(array1[1])+"%' or ctitle like '%"+ALLTRIM(array1[1])+"%' or descrip like '%"+ALLTRIM(array1[1])+"%'"; +") a1"; +" where belongto like '%"+ALLTRIM(array1[2])+"%' or ctitle like '%"+ALLTRIM(array1[2])+"%' or descrip like '%"+ALLTRIM(array1[2])+"%'"; +") b1 "; +" where belongto like '%"+ALLTRIM(array1[3])+"%' or ctitle like '%"+ALLTRIM(array1[3])+"%' or descrip like '%"+ALLTRIM(array1[3])+"%'"; +" order by ctitle" end odb1:cquery:=csql1odb1:refresh()obrow:refresh()return FUNCTION weihu1702(odb0,obrow,ledit)local odlg,mid1:=odb0:mid,odb1:=oserver:query("select * from help where "+if(mid1==0,"0>1","mid="+cvaltochar(mid1))) DEFINE DIALOG odlg RESOURCE "help02" TITLE "帮助详细" FONT oFont14 if ledit REDEFINE GET odb1:ctitle ID 101 OF odlg REDEFINE GET odb1:descrip TEXT ID 102 OF odlg REDEFINE GET odb1:belongto TEXT ID 103 OF odlg else REDEFINE GET odb1:ctitle TEXT ID 101 OF odlg readonly REDEFINE GET odb1:descrip TEXT ID 102 OF odlg readonly REDEFINE GET odb1:belongto TEXT ID 103 OF odlg readonly end REDEFINE group ID 901 PROMPT "项目" OF odlg transparent REDEFINE group ID 902 PROMPT "详细说明" OF odlg transparent REDEFINE group ID 903 PROMPT "适用表单" OF odlg transparent REDEFINE SBUTTON ID 301 OF odlg PROMPT "保存" xp ACTION (if( odb1:EOF(),odb1:APPEND(),odb1:SAVE())) WHEN ledit REDEFINE SBUTTON ID 302 OF odlg PROMPT "退出" xp ACTION odlg:end() ACTIVATE DIALOG odlg on INIT (odlg:autoresize()) centerodb0:refresh()obrow:refresh()return Regards!Shuming Wang
|
tsbutton+xbrowse done a google like app help
|
Shuming,Nice! Thanks for sharing it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
tsmtp class
|
All,Does anyone have a link to or copy of the modified tsmtp class from L. Krause?There was a link in another thread but it's expired.Thanks,Randal
|
tsmtp class
|
RandalI have the one that Tim Stone sent me and I actually contributed that to the 810 version of FWH .. was heavily modified by Luis .. especially in the area of attachments.Contact me if you like .. <!-- e --><a href="mailto:lipkinrm29063@yahoo.com">lipkinrm29063@yahoo.com</a><!-- e --> .. if there is a newer version than the one that is in 8.10 .. let me know.Rick Lipkin
|
tsmtp class
|
Rick,Thanks for your reply. I have FWH 8.01 so I don't know how the one in 8.10 compares with the modified one you are using.Thanks,Randal[quote="Rick Lipkin":2yrudr1m]Randal
I have the one that Tim Stone sent me and I actually contributed that to the 810 version of FWH .. was heavily modified by Luis .. especially in the area of attachments.
Contact me if you like .. <!-- e --><a href="mailto:lipkinrm29063@yahoo.com">lipkinrm29063@yahoo.com</a><!-- e --> .. if there is a newer version than the one that is in 8.10 .. let me know.
Rick Lipkin[/quote:2yrudr1m]
|
tsmtp class
|
RandalLots of changes have been made from various contributors that never made it to FWH up until 8.10 .. Again, I take NO credit for the contents and the modifications .. Tim Stone shared the updated class with me because I was having attatchment problems which totally NOW works great.... and I mentioned it to Antonio and he included it with the latest build.Hollar if I can helpRick Lipkin
|
ttile ejemplo necesito ejemplo desde recursos
|
Hola amigos:
Alguien seria tan amable de colocar el Wyndows Style y el Extended windows style de la clase ttitle hecho con PelleC
Ej.: 0x110000 o algo parecido.
Lo he creado desde recursos pero los estilo quedo 0x00000 y no funciona.
Muy amab les gracias.
Saludos
Dario Fernandez
|
ttile ejemplo necesito ejemplo desde recursos
|
Dario,
Que estilos quieres darle al control ? cuales WS_... ?
|
ttile ejemplo necesito ejemplo desde recursos
|
Antonio: lo que quiero hacer es usar el tTitle de FWH, pero al crearlo en PellesC, el estilo que queda es 0x000000 y no me muestra nada.
lo tengo asi:
REDEFINE TITLE oTitle ID 222 of oDlgN SHADOW TEXT "Prueba "
oTitle:lBorder:=.T.
oTitle:aGrdBack = { { 1, nRGB( 129, 130, 138 ), nRGB( 59, 60, 62 ) } }
No se ve el texto Prueba no se darle el color al texto....
Saludos y gracias
Dario Fernandez
|
ttile ejemplo necesito ejemplo desde recursos
|
Dario,
Aqui tienes un ejemplo completo:
testtitr.prg
[code=fw:3mgdrwyh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><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> oDlg, oTitle, oFont<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFOnt <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #000000;">1001</span><br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">ID</span> <span style="color: #000000;">222</span> <span style="color: #0000ff;">of</span> oDlg<br /><br /> <span style="color: #B900B9;">// oTitle:lBorder:=.T.</span><br /> <span style="color: #B900B9;">// oTitle:aGrdBack = { { 1, nRGB( 129, 130, 138 ), nRGB( 59, 60, 62 ) } }</span><br /><br /> @ <span style="color: #000000;">25</span>, <span style="color: #000000;">25</span> TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Prueba"</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <br /> oFont:<span style="color: #000000;">End</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></div>[/code:3mgdrwyh]
testtitr.rc
[code=fw:3mgdrwyh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// RESOURCE SCRIPT generated by "Pelles C for Windows, version 7.00".</span><br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br />LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US<br /><br /><span style="color: #000000;">1001</span> DIALOGEX DISCARDABLE <span style="color: #000000;">6</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">294</span>, <span style="color: #000000;">150</span><br /><span style="color: #0000ff;">STYLE</span> DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br />CAPTION <span style="color: #ff0000;">"Dialog"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Tahoma"</span><br /><span style="color: #000000;">{</span><br /> CONTROL <span style="color: #ff0000;">"OK"</span>, IDOK, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">168</span>, <span style="color: #000000;">124</span>, <span style="color: #000000;">45</span>, <span style="color: #000000;">15</span><br /> CONTROL <span style="color: #ff0000;">"Cancel"</span>, IDCANCEL, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">224</span>, <span style="color: #000000;">124</span>, <span style="color: #000000;">45</span>, <span style="color: #000000;">15</span><br /> CONTROL <span style="color: #ff0000;">"Custom control"</span>, <span style="color: #000000;">222</span>, <span style="color: #ff0000;">"TTITLE"</span>, WS_VISIBLE | WS_CHILD, <span style="color: #000000;">8</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">276</span>, <span style="color: #000000;">32</span><br /><span style="color: #000000;">}</span></div>[/code:3mgdrwyh]
|
ttile ejemplo necesito ejemplo desde recursos
|
Gracias Antonio, todo funcionando ok.
Saludos.
Dario Fernandez
|
ttreeview
|
hi.
I'm trying to implement the use of trees for the first time. Having some trouble. I'd like to have a tree inside a dialog window that is really a tab on a folder control.
here is the code I'm using:
[code:31bkz27t]
REDEFINE FOLDER aoFld id 101 of oDlg ;
PROMPTS "&Basic Info", ;
"&Abstract", ;
"&Discharge", ;
"C&onsults", ;
"&Notes", ;
"Do&cuments" ;
DIALOGS "adm_TAB1", ;
"adm_TAB2", ;
"adm_TAB3", ;
"adm_TAB4", ;
"adm_docs"
REDEFINE_Tab1( aoFld:adialogs[1], oDbf)
REDEFINE_Tab2( aoFld:adialogs[2], oDbf)
REDEFINE_Tab3( aoFld:adialogs[3], oDbf )
REDEFINE_Tab4( aoFld:adialogs[4], oDbf )
REDEFINE_documents( aofld:aDialogs[ 12 ], odbf )
.....
*-----------------------------------------------------------------------------------
static function REDEFINE_documents( odlg, odbf )
local oImageList := TImageList():New()
local oBmp1 := TBitmap():Define( "branch",, odlg )
local oBmp2 := TBitmap():Define( "branch_Mask",, odlg )
local oTree := TTreeView():New( 2, 0, oDlg )
local oRep1, oRep2
oImageList:Add( oBmp1, oBmp2 )
oTree:SetImageList( oImageList )
oRep1 := oTree:Add( "Report1" )
oRep1:Add( "Comp1 in Rep1" )
oRep1:Add( "Comp2 in Rep1" )
oRep1:Add( "Comp3 in Rep1" )
oRep1:Add( "Comp4 in Rep1" )
oRep2 := oTree:Add( "Report2" )
oImageList:End()
oBmp1:End()
oBmp2:End()
Return Nil
[/code:31bkz27t]
When this code executes I get an error:
[code:31bkz27t]
Application
===========
Path and name: F:\mp\test.exe (32 bits)
Size: 2,940,416 bytes
Time from start: 0 hours 0 mins 16 secs
Error occurred at: 09/09/2006, 20:08:28
Error description: Error FiveWin/1 Non defined Id: No: 210
Stack Calls
===========
Called from: CONTROL.PRG => TTREEVIEW:INITIATE(0)
[/code:31bkz27t]
Notice I'm not using any code with ID 210 anywhere on my code.
Can someone help?
Reinaldo.
|
ttreeview
|
Reinaldo,
You have to use TTreeView():ReDefine( nId, oWnd, nClrFore, nClrBack, lDesign, cMsg ) instead of TTreeView():New( ... ).
Use SysTreeView32 as the type of the control in your dialog resource.
|
ttreeview
|
Antonio;
Thank you. I no longer get the error. But, no tree is displayed. I see nothing. Another hand?
Reinaldo.
|
ttreeview
|
Reinaldo,
This code has to be executed from the ON INIT clause of the main dialog, as the tree does not has a valid hWnd before:
[code:rl2x3fa2]
oTree:SetImageList( oImageList )
oRep1 := oTree:Add( "Report1" )
oRep1:Add( "Comp1 in Rep1" )
oRep1:Add( "Comp2 in Rep1" )
oRep1:Add( "Comp3 in Rep1" )
oRep1:Add( "Comp4 in Rep1" )
oRep2 := oTree:Add( "Report2" )
[/code:rl2x3fa2]
|
ttreeview
|
Reinaldo,
>Thank you. I no longer get the error. But, no tree is displayed. I see nothing. Another hand?
Perhaps because you are ending the Tree in the redefine_documents() function? I think you don't want to end the tree until the dialog is ended (this would be easier to program if you built a class instead of using functions).
James
|
ttreeview
|
James;
Good to see your note.
I thought of that. Took the end() out. Same result.
Yes, making the whole thing an object would make a lot of sense. I'm just as fanatic about OOP. But I'm only adding a new tab to some very old code. Everything else is working just fine. I'm not about to re-write the whole thing now. Other things to do. Besides, Ending() the tree at dialog end() won't be a problem.
You know, I think I just thought what the problem is:
"local oBmp1 := TBitmap():Define( "branch",, odlg )"
That's the problem. It has been staring me at the eye. "Branch" is a resource. Not a file. I'll get back to you if I'm wrong on this.
Take care,
Reinaldo.
|
ttreeview
|
Antonio;
Thank you. It worked!
Again, Thank you very much.
Reinaldo.
|
ttxtfile():new() return nil if error opening file.
|
If there is a file error, method new() returns nil, but should return self.
METHOD New( cFileName, nMode ) CLASS TTxtFile
Super:New( cFileName, nMode )
IF ::hFile < 0
RETU NIL
// RETU NIL above
// gives an error with xHarbour builder
// I changed this to RETU self
// and now to check for open error
// I check oFile:hFile for < 0
ENDIF
::nMaxLineLength := 1024
::nLine := 1
::nTLines := ::Count( CRLF )
::nOffset := 0
::ReadLine()
RETURN Self
|
ttxtfile():new() return nil if error opening file.
|
Gale,
Fixed. Thanks!
|
turl lock the program
|
I am using xHarbour 1.1 and when I use TURL the program locks on the first line
[code=fw:334uqrho]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oUrl:=turl<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"http://www.ntsinfo.com.br/ntsbuscacep/searchxml.php?cep=07197250&tipoPesq=cep"</span><span style="color: #000000;">)</span><br /> cUrl:=<span style="color: #ff0000;">"http://www.ntsinfo.com.br/ntsbuscacep/searchxml.php?cep=07197250&tipoPesq=cep"</span><br /> opg := TipClientHttp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oUrl ,.t.<span style="color: #000000;">)</span><br /> opg:<span style="color: #000000;">nConnTimeout</span> := <span style="color: #000000;">20000</span><br /> MsgRun<span style="color: #000000;">(</span><span style="color: #ff0000;">"Pesquisando C.E.P.: "</span>+Transform<span style="color: #000000;">(</span>fCEP,<span style="color: #ff0000;">"@R 99.999-999"</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">".Aguarde..."</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> opg:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> cUrl <span style="color: #000000;">)</span><br /> cBuf := opg:<span style="color: #000000;">readAll</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ......<br /> </div>[/code:334uqrho]
|
turl lock the program
|
Try it this way, it works for me
[code=fw:35x30fwf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />cURL := <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> empty<span style="color: #000000;">(</span>cURL<span style="color: #000000;">)</span>, <span style="color: #ff0000;">"http://www.xxxx.com/"</span>, cURL <span style="color: #000000;">)</span><br />oUrl := tURL<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> cURL <span style="color: #000000;">)</span><br /><span style="color: #00C800;">if</span> !empty<span style="color: #000000;">(</span> oUrl <span style="color: #000000;">)</span><br /> oClient := tIPclienthttp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span> oUrl <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">(</span> oClient <span style="color: #000000;">)</span><br /> oClient:<span style="color: #000000;">nConnTimeOut</span> := <span style="color: #000000;">20000</span><br /> <span style="color: #00C800;">if</span> oClient:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> oUrl <span style="color: #000000;">)</span><br /> .....<br /> </div>[/code:35x30fwf]
HTH
Richard
|
turl lock the program
|
Richard
No works !
|
turl lock the program
|
To use the command below which need to link lib
TipClientHttp():New(TURL():New(cUrl))
I tried xHarbour 1.1.0 and 1.2.1 and the program crashes.
|
turllink doesn't runs with last fwh release
|
Hi,
as subject. Simply compule testurl.prg.
Any solution ?
Thanks in advance
Marco
Application
===========
Path and name: K:\TESTURL\testurl.Exe (32 bits)
Size: 1,704,960 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 04/17/09, 15:54:26
Error description: Error BASE/1066 Argument error: conditional
Args:
[ 1] = U
Stack Calls
===========
Called from: .\source\classes\SAY.PRG => TURLLINK:SETTEXT(281)
Called from: .\source\classes\SAY.PRG => TSAY:INITIATE(206)
Called from: .\source\classes\URLLink.PRG => (b)TURLLINK:TURLLINK(23)
Called from: => TURLLINK:INITIATE(0)
Called from: => __OBJSENDMSG(0)
Called from: .\source\function\HARBOUR.PRG => OSEND(235)
Called from: .\source\function\HARBOUR.PRG => ASEND(186)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE(654)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(912)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: K:\TESTURL\TESTURL.PRG => MAIN(54)
|
turllink doesn't runs with last fwh release
|
Marco,
In Class TURLLink you have to add this line in both Methods New() and Redefine():
::lAdjust := .F.
Tested and working fine now <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Thanks,
|
turn off
|
Hi, all !
How to turn off the F1...F12 keys for dialogboxes ?
|
turn off
|
keystrokes are routed to the controls not to the dialog.
So you may need to modify Class TWindow method KeyDown() not to process those keystrokes
|
turn off
|
I use My.CHM for help.
SetHelpFile('MY.chm')
SetKey( VK_F1, { | nKey | My_Hlp() } )
When I press F1 at the same time appear the window of MY.CHM and message "The file My.CHM is not a file of information Windows or it is damaged". What it ?
Excuse for my English.
|
turn off
|
SetHelpFile() does not support CHM files yet.
So just use SetKey( VK_F1, { | nKey | My_Hlp() } )
|
turn off
|
Well, I deleted string SetHelpFile()
Then I press F1 and get message "No Help file aviable"
|
turn off
|
How I can solution this problem ?
|
turn off
|
Maybe this will help:
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=8878&highlight=chm">http://fivetechsoft.com/forums/viewtopi ... hlight=chm</a><!-- m -->
James
|
turn off
|
Another option easier and without adding or modifying the file Help32.prg of Fivewin:
Add within our project the HelpIndex function that is called in the __HelpTopic() method of the TWindow class, since pressing the F1 key is invoked from here by calling this function:
[code=fw:hdm85lpu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> HelpIndex<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span></div>[/code:hdm85lpu]
Thus, we can call in an independent way to an action or function with the F1 key:
[code=fw:hdm85lpu]<div class="fw" id="{CB}" style="font-family: monospace;">SETKEY<span style="color: #000000;">(</span> VK_F1, <span style="color: #000000;">{</span> || <span style="color: #0000ff;">MSGInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Llamando a Ayuda"</span>,<span style="color: #ff0000;">"Mi Función"</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:hdm85lpu]
He clarified that this only to call the help in a general way, because it does not detect that control or number of helpid invokes it ...
I hope will help them greetings..
|
turn on/off hyperv from powershell as admin
|
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
bcdedit /set hypervisorlaunchtype auto
you must restart Windows
|
twBrowse Muestra y no muestra la ultima fila...
|
Se carga el browser. y se produce un error de visualizacion al hacer estos pasos:
[url=http://img144.imageshack.us/my.php?image=dibujodu6.jpg:14kdo531][img:14kdo531]http://img144.imageshack.us/img144/8025/dibujodu6.th.jpg[/img:14kdo531][/url:14kdo531]
1) estando en la ultima fila presiono flecha hacia abajo
2) flecha hacia arriba
3) nuevamente flecha hacia abajo y esforzar otra flecha hacia abajo ( como si supiesemos que hay otra fila mas )
4) la ultima fila desaparece.
[url=http://img83.imageshack.us/my.php?image=dibujo2go2.jpg:14kdo531][img:14kdo531]http://img83.imageshack.us/img83/1482/dibujo2go2.th.jpg[/img:14kdo531][/url:14kdo531]
Que puede estar pasando?
Gracias.
|
twBrowse Muestra y no muestra la ultima fila...
|
Es el TWBrowse de Hernan ¿ verdad ?.
Efectivamente, ese es un bug de las primeras versiones, creo que ya esta corregido, el problema se debe a que el proceso de pintado "piensa" que el browse tiene footers, y entonces no repinta la ultima linea.
|
twBrowse Muestra y no muestra la ultima fila...
|
[quote="RF":4wqdm7rd]Es el TWBrowse de Hernan ¿ verdad ?.
Efectivamente, ese es un bug de las primeras versiones, creo que ya esta corregido, el problema se debe a que el proceso de pintado "piensa" que el browse tiene footers, y entonces no repinta la ultima linea.[/quote:4wqdm7rd]
Y desde donde puedo bajar la nueva? o tengo que actualizar el FWH tambien?
|
twBrowse de Hernan x FwH712..Erro GPF ???
|
Yo recompilei los Fontes del TwBrowse 1.5 de Hernan, gerarando el Lib para compilar junto à FwH712/xHDez/2007, mas ao abrir el browse vem junto el Mgs de GPF, se tira la Lib de twbrowse, no ha problema.
O q podes estas havendo ???
Obs. Ao gerar la Lib...ocorreu estes warning ?
[code:2ht74e62]
Modulos em .C - 0003 WBRWLINE --------------------------------------------------------------
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
WBRWLINE.C:
Warning W8065 WBRWLINE.C 308: Call to function 'hb_itemArrayGet' with no prototype in function PaintTheLine
Warning W8069 WBRWLINE.C 308: Nonportable pointer conversion in function PaintTheLine
Warning W8065 WBRWLINE.C 309: Call to function 'hb_itemType' with no prototype in function PaintTheLine
Warning W8065 WBRWLINE.C 309: Call to function 'hb_itemGetL' with no prototype in function PaintTheLine
Warning W8065 WBRWLINE.C 312: Call to function 'hb_itemGetNL' with no prototype in function PaintTheLine
Warning W8065 WBRWLINE.C 314: Call to function 'hb_itemArrayGet' with no prototype in function PaintTheLine
Warning W8069 WBRWLINE.C 314: Nonportable pointer conversion in function PaintTheLine
Warning W8065 WBRWLINE.C 315: Call to function 'hb_itemType' with no prototype in function PaintTheLine
Warning W8065 WBRWLINE.C 317: Call to function 'hb_itemGetNL' with no prototype in function PaintTheLine
Warning W8065 WBRWLINE.C 320: Call to function 'hb_itemGetC' with no prototype in function PaintTheLine
Warning W8069 WBRWLINE.C 320: Nonportable pointer conversion in function PaintTheLine
Warning W8065 WBRWLINE.C 1138: Call to function 'hb_itemCopy' with no prototype in function HB_FUN_WBRWPANE
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
[/code:2ht74e62]
No será mais possible usar Twbrowse de hernan com fwh712 ????
Saluds
|
twBrowse de Hernan x FwH712..Erro GPF ???
|
Ale,
En el fichero en C tienes que añadir:
#include <hbapiitm.h>
|
twBrowse de Hernan x FwH712..Erro GPF ???
|
Prefect !!! Maestro...Gracias
Saluds
|
twBrowse v18 ?
|
Hernan :
En otro foro te preguntan cunado sale la version 18 de tu clase.
En tu sitio ( <!-- m --><a class="postlink" href="http://www.cesotech.com.ar/">http://www.cesotech.com.ar/</a><!-- m --> ) se puede bajar hasta la version 15.
La pregunta es ¿ donde consigo la version 16 o 17 ? o en otras palabras,
¿ Cual es la ultima version liberada de WBrowse ?
Saludos
Gonzalo
|
twBrowse v18 ?
|
[quote="gdeteran":e6uqhfno]Hernan :
En otro foro te preguntan cunado sale la version 18 de tu clase.
En tu sitio ( <!-- m --><a class="postlink" href="http://www.cesotech.com.ar/">http://www.cesotech.com.ar/</a><!-- m --> ) se puede bajar hasta la version 15.
La pregunta es ¿ donde consigo la version 16 o 17 ? o en otras palabras,
¿ Cual es la ultima version liberada de WBrowse ?
Saludos
Gonzalo[/quote:e6uqhfno]
En estos dias tratare de publicar una version estable
Hernan
|
twbrowse
|
si alguien tiene el conocimiento para saber cual es la funcion del la clase twbrowse que me de las cordenadas o pinte el browse para poder dimensionarlo lo trabajo por medio de un recurso RC, le agradesco
Antonio
|
twbrowse
|
[quote="tomafa":3r9qwd7m]si alguien tiene el conocimiento para saber cual es la funcion del la clase twbrowse que me de las cordenadas o pinte el browse para poder dimensionarlo lo trabajo por medio de un recurso RC, le agradesco
Antonio[/quote:3r9qwd7m]
Antonio , no me quedó clara la necesidad que tienes con el uso de la clase WBrowse.
Podrías ser más especifico en tu problema.
Tratando de darme una idea con lo que pides, si estas trabajando con recursos, no necesitas la ubicación de ningún control, debido a que los controles ya están diseñados previamente por tí con el editor de recursos, en todo caso lo que tienes que usar es el comando:
REDEFEINE bla.bla.bla.bla
|
twbrowse
|
gracias vikthor por la respuesta, me es dificil explicar lo que quiero, lo explico rapido, tengo un browse en donde desplego informacion, el detalle es que quiero eliminar un espacio que me pinta en blanco, se pintan todos los registros pero al final se queda un espacio no se dimenciona hasta el borde del browse, es por eso que preguntaba esto
saludos
|
twbrowse
|
[quote="tomafa":2ek6w1vp]gracias vikthor por la respuesta, me es dificil explicar lo que quiero, lo explico rapido, tengo un browse en donde desplego informacion, el detalle es que quiero eliminar un espacio que me pinta en blanco, se pintan todos los registros pero al final se queda un espacio no se dimenciona hasta el borde del browse, es por eso que preguntaba esto
saludos[/quote:2ek6w1vp]
Asi más claro ni el agua.
Eso resuelve indicando en una variable de instancia de la clase wBrowse que la ultima fila se "alargue" hasta el borde el browse.
Revisa el codigo fuente de la clase y encontraras esa variable.
|
twbrowse
|
gracias
pero cuales si no te molesta decirme
|
twbrowse
|
[quote="tomafa":r5272dvj]gracias
pero cuales si no te molesta decirme[/quote:r5272dvj]
Perdón que me meta, pero quisiera saber si el espacio en blanco que deseas corregir es a la derecha del browse o se produce abajo.
Si es a la derecha del browse la variable que se menciona es:
oLbx:lAdjLastCol:= .F. //.t. estira ultima columna a tamaño del control .f. no lo hace
Si es abajo, (he visto post en el foro sobre ese espacio) no se como resolverlo, pero en 3d se ve más prolijo.
oLbx:Set3DStyle()
|
twbrowse
|
Varia la altura del browse con oBrowse:nHeight = <nValor>
|
twbrowse
|
[quote="Antonio Linares":11x0janc]Varia la altura del browse con oBrowse:nHeight = <nValor>[/quote:11x0janc]
Gracias Master Antonio.
|
twbrowse
|
jose_murugosa
gracias por el apoyo, el problema es que quiero que se ajuste el browse para abajo siempre deja un espacio en blanco, espero me respondan
|
twbrowse
|
tomafa:
utilizando wBrowse de Hernán lo puedes hacer así:
oBrw:SetColor( clrTexto, clrFondo )
saludos
|
twbrowse
|
Hola
Para corregir lo que comentas, debes hacer alguno de estos puntos :
- Ajustar el area del browse dependiendo de los registro que se visualizen
- Si el area del browse esta restringido, entonces :
- Cambiar font / tamaño para ajustar los registros al area
- Ajustar al alto de las lineas
tubrowse:nLineHeight := 30
con cualquiera de estas opciones puedes lograr y evitar que salga una linea "en blanco" en la parte inferior del browse.
Saludos
|
twbrowse
|
gracias por su apoyo,
pero boy a poner mi duda, la mando en esta imagen para que me entiendad, lo que quiero es modificar la clase wbrowse para que el ultimo registro se ajuste al browse y no quede en blanco como lo muestro en la imagen, gracias
[url:2s5mkyt3]http://img398.imageshack.us/my.php?image=mandarjw6.png[/url:2s5mkyt3][/url]
|
twbrowse - texto + bitmap por celula!
|
Amigos, preciso muito colocar por celula na twbrowse texto+bitmap
Alguem sabe como fazer isso ou um browse que o faça?
Grato
Aoki
|
twbrowse last version
|
where i found the last version of twbrowse (hernan), is fwh27 come with this??? i dont understand, fwh incorporated twbrowse or not??
thanks
|
twbrowse last version
|
Norberto,
You may download it from these forums at <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=2502">http://fivetechsoft.com/forums/viewtopic.php?t=2502</a><!-- m -->
No, Hernan's browse is not included in FWH (yet).
|
twbrowse last version
|
Antonio
Be nice if you and Hernan could work a 'deal' to include his work in your libraries <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Rick Lipkin
|
twbrowse last version
|
antonio, thanks, but two browses works fine , how fw /fwh know if i use fw/fwh or hernam browse´s ???
|
twbrowse y los SIZES (SOLUCIONADO)
|
hola.
Como le digo a la TW que los tamanios de las columnas se los estoy pasando en un array?
asi no me funciona:
[code=fw:1pyi7h8a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> aTamanioColumnas:=<span style="color: #000000;">{</span><span style="color: #000000;">10</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">220</span><span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> ::<span style="color: #000000;">oTw</span>;<br /> FIELDS ::<span style="color: #000000;">armarColumna</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>,;<br /> ::<span style="color: #000000;">armarColumna</span><span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>,;<br /> ::<span style="color: #000000;">armarColumna</span><span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span>;<br /> HEADERS <span style="color: #ff0000;">"Campo1"</span>,;<br /> <span style="color: #ff0000;">"Campo2"</span>,;<br /> <span style="color: #ff0000;">"Campo3"</span>;<br /> SIZES aTamanioColumnas;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span><br /> </div>[/code:1pyi7h8a]
Gracias
|
twbrowse y los SIZES (SOLUCIONADO)
|
Hola..
El control TWbrowse tiene una data con identificador aColSizes
[code=fw:5ayots2a]<div class="fw" id="{CB}" style="font-family: monospace;">aColsizes:=<span style="color: #000000;">{</span><span style="color: #000000;">10</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">220</span><span style="color: #000000;">}</span></div>[/code:5ayots2a]
|
twbrowse y los SIZES (SOLUCIONADO)
|
[quote="Ricardo Ramirez E.":ck9p7ku6]Hola..
El control TWbrowse tiene una data con identificador aColSizes
[code=fw:ck9p7ku6]<div class="fw" id="{CB}" style="font-family: monospace;">aColsizes:=<span style="color: #000000;">{</span><span style="color: #000000;">10</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">220</span><span style="color: #000000;">}</span></div>[/code:ck9p7ku6][/quote:ck9p7ku6]
gracias.
|
twbrowse+mysql utilizando recordset é possivel
|
twbrowse+mysql utilizando recordset é possivel?
Alguem teria um exemplo?
muito obrigado
|
twbrowse+mysql utilizando recordset é possivel
|
SGS,
Si es posible, aqui te dejo un pequeÑo ejemplo como guia , altas, bajas y cambios con un Browse de la clase TWbrowse
#Include "FiveWin.ch"
#Include "Ado.ch"
#Include "Report.ch"
//====================
FUNCTION TABLAS()
//====================
Public dTipo[1],dNatural
dNatural :={"Deudora","Acreedora"}
PRIVATE oRs := TOLEAUTO():New("adodb.recordset")
oRs:LockType := adLockOptimistic
oRs:CursorType := adOpenKeyset
oRs:CursorLocation := adUseClient
oRs:ActiveConnection(oCon)
oRs:Source := "Select * from catalogo"
oRs:Open()
Public oDlg,
Public oBtnCancel,oLbx,oBtn
DEFINE DIALOG oDlg RESOURCE 14
REDEFINE LISTBOX oLbx FIELDS oRs:Fields("codigo"):Value, ;
oRs:Fields("nombre"):Value, ;
oRs:Fields("naturaleza"):Value, ;
oRs:Fields("eeff"):Value ,;
oRs:Fields("afectar"):Value ;
FIELDSIZES 100,250,100,250,50 ;
HEADERS "Codigo","Nombre de la Cuenta","Naturaleza","Ubic. EEFF","s/n" ;
COLOR CLR_HBLUE,CLR_WHITE ;
ID 108 of oFld:aDialogs[1]
oLbx:aJustify ={.F.,.F.,.f.,.f.,.f.}
oLbx:bLogicLen = { || oRs:RecordCount }
oLbx:bGoTop = { || oRs:MoveFirst() }
oLbx:bGoBottom = { || oRs:MoveLast() }
oLbx:bSkip = { | nSkip | Skipper( oRs, nSkip ) }
oLbx:cAlias = "ARRAY"
REDEFINE BUTTON ID 102 OF oDlg ACTION( EditC1(.t.,oLbx ), oLbx:Refresh() )
REDEFINE BUTTON ID 103 OF oDlg ACTION( EditC1(.f.,oLbx ),oLbx:Refresh() )
REDEFINE BUTTON ID 104 OF oDlg ACTION( BorrO( oLbx ), oLbx:Refresh() )
REDEFINE BUTTON ID 105 OF oDlg ACTION ( oDlg:End() )
RETURN NIL
//=================================
FUNCTION EditC1(SiNuevo, oLbx )
//=================================
Local oDlg, lSalvar := .f.
IF sinuevo = .t.
oRs:ADDNEW()
oRs:Fields("codigo"):value := SPACE(12)
oRs:Fields("nombre"):value := SPACE(45)
oRs:Fields("naturaleza"):value := SPACE(9)
oRs:Fields("eeff"):value := SPACE(50)
oRs:Fields("afectar"):value := 0
ENDIF
LoadLibrary("BWCC32.DLL")
DEFINE BRUSH oBrush FILENAME "OSXBack.bmp"
DEFINE DIALOG oDlg RESOURCE 23 BRUSH oBrush TRANSPARENT
REDEFINE GET oRs:Fields("codigo"):value ID 101 of oDlg
REDEFINE GET oRs:Fields("nombre"):value ID 102 of oDlg
REDEFINE COMBOBOX oRs:Fields("naturaleza"):value ID 103 of oDlg PROMPTS dNatural
REDEFINE COMBOBOX oRs:Fields("eeff"):value ID 104 of oDlg PROMPTS dTipo
REDEFINE CHECKBOX oRs:Fields("afectar"):value ID 105 of oDlg
REDEFINE BUTTON ID 106 OF oDlg action ( lSalvar := .T. , oDlg:End() )
REDEFINE BUTTON ID 107 OF oDlg ACTION ( lSalvar := .F. , oDlg:End() ) CANCEL
ACTIVATE DIALOG oDlg CENTERED
IF lSalvar
oRs:UPDATE()
IF !empty(oRs:Filter)
oRs:REQUERY()
ENDIF
ELSE
IF SiNuevo
oRs:DELETE()
oRs:REQUERY()
ENDIF
ENDIF
RETURN
//======================================
STATIC FUNCTION SKIPPER( oRs, nSkip )
//======================================
LOCAL nRec := oRs:AbsolutePosition
oRs:Move( nSkip )
IF oRs:EOF()
oRs:MoveLast()
ENDIF
IF oRs:BOF()
oRs:MoveFirst()
ENDIF
RETURN oRs:AbsolutePosition - nRec
//================================
STATIC FUNCTION BORRO( oLbx )
//================================
oRs:Delete()
oRs:Requery()
oLbx:Refresh()
RETURN
// Nota : la estructura de la tabla es la siguiente :
// NOMBRE : CATALOGO
// CODIGO CARACTER 12
// NOMBRE VARCHAR 40
// NATURALEZA CARACTER 10
// EEFF VARCHAR 35
// AFECTAR TYNINT 1
//=======================================================
espero te sea de utilidad,
Desde Managua Nicaragua
Ramon Paredes
|
twbrowse+mysql utilizando recordset é possivel
|
Ramon,
Muito obrigado por ter respondido.
Realmente o seu exemplo será de muita utilidade!
Eu uso SQLRDD (xharbour), é possível utilizar com o seu exemplo?
ex:
[b:4ihyfar3]nID:=SR_GetActiveConnection()[/b:4ihyfar3] //Retorna o ID da conexão atualmente ativa
PRIVATE oRs := TOLEAUTO():New("adodb.recordset")
oRs:LockType := adLockOptimistic
oRs:CursorType := adOpenKeyset
oRs:CursorLocation := adUseClient
[b:4ihyfar3]oRs:ActiveConnection(nID)[/b:4ihyfar3]
oRs:Source := "Select * from catalogo"
Isso é possível ?
Se não, vc poderia me mostrar a parte da conexão do seu codigo?
Muito obrigado Ramon <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
SGS
|
twbrowse+mysql utilizando recordset é possivel
|
Ola SGS
Tambem uso a SQLRDD e não ha a nescessidade de usar RECORDSET, vc pode usar como um DBF normal, basta utilizar USE <tabela> ALIAS <calias> NEW VIA "SQLRDD"
Qualquer coisa grite.
|
twbrowse+mysql utilizando recordset é possivel
|
Jackson,
Eu já utilizo assim hoje, porem:
Em um cliente especifico com um cadastro de produtos de mais de 200.000 itens, estamos instalando o sistema local e o banco remoto, do jeito que esta fica muito lento a consulta de produtos, por isso estou testanto o desempenho com RECORDSET.
De qualquer forma obrigado
SGS
|
twbrowse+mysql utilizando recordset é possivel
|
Ola amigo
Infelizmente para se fazer um BROWSE com 100 mil ou mais registros remotamente fica lento mesmo, isso sendo RECORDSET ou USE normal, vc tera que fazer via consulta e trazer o resultado da consulta, agora tem uma função na SQLRDD que limita o NR de REGISTROS a serem mostrados "só num lembro agora" pois deve servir para o seu proposito
Qualquer coisa grite
|
twbrowse+mysql utilizando recordset é possivel
|
SGS,
Efectivamente como te indica miragerr aun con Recordsets tendrias el problema de lentitud, tendrias que crear querys para tus consultas de productos asi dinamizar el proceso a nivel remoto, ahora SQLRDD lo que crea realmente en tablas SQL es un record set cuando haces : USE "MITABLA" NEW SHARED ALIAS "MI_RECORDSET" VIA "SQLRDD" por lo que no ganarias mucho en velocidad usando ADO con ese volumen de registros.
Otra sugerencia es que crees indices condicionales desde codigo antes del recordset que efectivamente SQLRDD te lo permite y entonces ganas velocidad en procesos selectivos ,
Saludos desde Managua, Nicaragua
Ramon Paredes
|
twbrowse+mysql utilizando recordset é possivel
|
Obrigado Ramon <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
twbrowse+mysql utilizando recordset é possivel
|
Ola Ramon,
Testei a minha base com mais de 200.000 registros com recordset e ficou muito bom, demora um pouquinho para carregar no inicio mais depois é uma maravilha.
Porem, tenho um problema:
Estou usando esta configuração:
oRs:LockType := adLockOptimistic
oRs:CursorType := adOpenDynamic
oRs:CursorLocation := adUseClient
Com esta configuração não estou conseguindo visualizar as alterações feitas por outros usuários. Tenho que fazer mais alguma coisa?
Obrigado
SGS
|
twbrowse+mysql utilizando recordset é possivel
|
Ola amigos
SGS esse é um dos problemas quando vc carrega todos os registros para o CACHE do computador local, ele não atualiza os dados, a não ser que vc recarregue novamente o CACHE, como lhe falei vc esta lidando com SQL que é totalmente diferente de DBF, tambem tive este problema, e tive que mudar minha forma de desenvolver, mais se vc quer que apareçam todos os dados de forma RÁPIDA e que venhan sempre com as alterações igual se faz com DBF, lhe aconcelho a testar o ADS SERVER, esse sim meu amigo, é rápido em tudo, mesmo via remoto, só tem um porem, é caro.
Espero ter ajudado
|
twbrowse+mysql utilizando recordset é possivel
|
Amigos con Ado se puede solo tienes que paginar el browse , como lo hace google y listo
Saludos
|
twbrowse+mysql utilizando recordset é possivel
|
jbrita,
tem um exemplo?
|
twbrowse+mysql utilizando recordset é possivel
|
Amigo aca va una imagen
<!-- m --><a class="postlink" href="http://yfrog.com/jwimagennlj">http://yfrog.com/jwimagennlj</a><!-- m -->
la idea es pagina con botones de paginacion ejemplo
Boton Inicio
Boton Atras
Boton Siguente
Boton Fin
FUNCTION paginar_Adelante(oLbx,oRcs,oTabla,oCbx,cIndice)
*--------------------------------------------------------
Local oOrden:=cIndice[oCbx:nAt]
Local campo
If (oRcs:RecordCount) # 0
oRcs:MoveLast()
campo:=oRcs:Fields(oOrden):value
oRcs:Close()
oRcs:Open("SELECT * FROM "+oTabla+" WHERE "+oOrden+" > '" + Alltrim(campo) +"' ORDER BY "+oOrden+" LIMIT 100", oConexion, 1, 3)
If (oRcs:RecordCount) == 0
oRcs:Close()
oRcs:Open("SELECT * FROM "+oTabla+" Order By "+oOrden+" DESC LIMIT 100", oConexion, 1, 3)
oRcs:Sort:=oOrden
Endif
oRcs:Refresh()
oLbx:refresh(.t.)
oLbx:SetFocus()
Endif
RETURN(.t.)
FUNCTION paginar_Atras(oLbx,oRcs,oTabla,oCbx,cIndice)
*-----------------------------------------------------
Local oOrden:=cIndice[oCbx:nAt]
Local campo
If (oRcs:RecordCount)# 0
oRcs:MoveFirst()
campo:=oRcs:Fields(oOrden):value
oRcs:Close()
oRcs:Open("SELECT * FROM "+oTabla+" WHERE "+oOrden+" < '" + AllTrim(campo) +"' ORDER BY "+oOrden+" desc LIMIT 100", oConexion, 1, 3)
If (oRcs:RecordCount) == 0
oRcs:Close()
oRcs:Open("SELECT * FROM "+oTabla+" Order By "+oOrden+" LIMIT 0,100",oConexion, 1, 3)
Endif
If (oRcs:RecordCount) < 100
oRcs:Close()
oRcs:Open("SELECT * FROM "+oTabla+" ORDER BY "+oOrden+" LIMIT 100",oConexion, 1, 3)
Endif
oRcs:Sort:=oOrden
oRcs:Refresh()
oLbx:refresh(.t.)
oLbx:SetFocus()
Endif
RETURN(.t.)
FUNCTION paginar_Inicio(oLbx,oRcs,oTabla,oCbx,cIndice)
*------------------------------------------------------
Local oOrden:=cIndice[oCbx:nAt]
oRcs:Close()
oRcs:Open("SELECT * FROM "+oTabla+" Order By "+oOrden+" LIMIT 0,100",oConexion, 1, 3)
oRcs:Refresh()
oLbx:refresh(.t.)
oLbx:SetFocus()
RETURN(.t.)
FUNCTION paginar_Fin(oLbx,oRcs,oTabla,oCbx,cIndice)
*---------------------------------------------------
Local oOrden:=cIndice[oCbx:nAt]
oRcs:Close()
oRcs:Open("SELECT * FROM "+oTabla+" Order By "+oOrden+" DESC LIMIT 100", oConexion, 1, 3)
oRcs:Sort:=oOrden
oRcs:Refresh()
oLbx:Refresh(.t.)
oLbx:SetFocus()
RETURN(.t.)
|
twbrowse/txbrowse not show tooltip
|
Hi,
obrow:ctooltip:="a test "
Not show tooltip
Best regard!
Shuming Wang
|
twbrowse/txbrowse not show tooltip
|
Shuming,
We have just tested it with FWH 2.7 march build, both with TWBrowse and TXBrowse, and it works ok.
|
twbrowse/txbrowse not show tooltip
|
Antonio,
Oh! I use fwh 2.5, it's too old.I will conside to upgrade .
Thanks !
Shuming Wang
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.