topic
stringlengths
1
63
text
stringlengths
1
577k
Bug xbrowse - help- me
use fwh 7.01 <!-- m --><a class="postlink" href="http://img255.imageshack.us/img255/1310/seta1cb3.jpg">http://img255.imageshack.us/img255/1310/seta1cb3.jpg</a><!-- m --> <!-- m --><a class="postlink" href="http://img150.imageshack.us/img150/7351/seta2fz5.jpg">http://img150.imageshack.us/img150/7351/seta2fz5.jpg</a><!-- m --> what is this? Aokisantos <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
Bug xbrowse - help- me
THANKS ROSSINE, YOU IS SHOW !!! AOKISANTOS
Bug xbrowse Header
Bug xbrowse click header from test: STATIC FUNCTION NewDialog( oWnd ) local oDlg, oBrw,cod:=10,oget DEFINE DIALOG oDlg RESOURCE "TEST" OF oWnd REDEFINE GET oget var cod id 4001 of odlg picture "999999" valid bod(cod) oBrw := TXBrowse():New( oWnd ) oBrw:CreateFromResource( 101 ) oBrw:SetArray( { { "first", "row" }, { "second", "row" } } ) oBrw:aCols[ 1 ]:cHeader = "An array" oBrw:aCols[ 2 ]:cHeader = "test" oBrw:aCols[ 1 ]:bClrStd = { || { CLR_WHITE, CLR_BLUE } } oBrw:aCols[ 2 ]:bClrStd = { || { CLR_WHITE, CLR_BLUE } } ACTIVATE DIALOG oDlg ; ON INIT ( oBrw:SetColor( CLR_WHITE, CLR_BLUE ) ) RETURN NIL FUNCTION test(COD) LOCAL LRET:=.F. IF COD>5 msginfo("depois de confirmar esta mensagem o header fica louco") LRET:=.F. ELSE LRET:=.T. ENDIF RETURN(LRET)
Bug xbrowse Header
up!!!
Bug xbrowse Header
Sera que é só eu que tenho este problema???
Bug xbrowse header
Amigos, no exemplo abaixo tirado do c:\fwh802\samples\testxbrw, se logo na entrada clicar no header, o sistema vai mostrar a mensagem e em seguida o header vai ficar louco. STATIC FUNCTION NewDialog( oWnd ) local oDlg, oBrw,cod:=10,oget DEFINE DIALOG oDlg RESOURCE "TEST" OF oWnd REDEFINE GET oget var cod id 4001 of odlg picture "999999" valid bod(cod) oBrw := TXBrowse():New( oWnd ) oBrw:CreateFromResource( 101 ) oBrw:SetArray( { { "first", "row" }, { "second", "row" } } ) oBrw:aCols[ 1 ]:cHeader = "An array" oBrw:aCols[ 2 ]:cHeader = "test" oBrw:aCols[ 1 ]:bClrStd = { || { CLR_WHITE, CLR_BLUE } } oBrw:aCols[ 2 ]:bClrStd = { || { CLR_WHITE, CLR_BLUE } } ACTIVATE DIALOG oDlg ; ON INIT ( oBrw:SetColor( CLR_WHITE, CLR_BLUE ) ) RETURN NIL FUNCTION test(COD) LOCAL LRET:=.F. IF COD>5 msginfo("depois de confirmar esta mensagem o header fica louco") LRET:=.F. ELSE LRET:=.T. ENDIF RETURN(LRET) Como resolver? Grato
Bug xbrowse header
UP!
Bug xbrowse header
UP!!
Bug. XBROWSE y SaveState()
Existe un bug a la hora de guardar/restaurar el estado de un xbrowse. La cuestión es que no deja correctamente el orden de las columnas, y las va desplazando. Ejemplo sobre testxbr3.prg modificado. 1.- Selecciona, windows, RDD,Selected Cols. 2.-Una vez que se abre la MDI, mueve la columna Last, y colocala delante de Married. 3.-Ahora presiona el boton que he añadido, GUARDAR segundo estado. ( De esta manera tenemos el estado anterior y el actual ) 4.-Ahora ves presionando el boton de al lado, restaura estados, una y otra vez, y verás el efecto que te digo. Modificaciones a testxbr3.prg, no se como subir un fichero al foro ; [code=fw:3lucldl3]<div class="fw" id="{CB}" style="font-family: monospace;">... al inicio, antes del Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><span style="color: #B900B9;">// Dos staticas, que guardan el estado inicial y el nuevo</span><br /><span style="color: #00C800;">static</span> cPrg, cFunc<br /><span style="color: #00C800;">static</span> s_RestoreBrowse, s_RestoreBrowse2  <span style="color: #B900B9;">// codigo add</span></div>[/code:3lucldl3] En la función static function RddBrwSelColsWin [code=fw:3lucldl3]<div class="fw" id="{CB}" style="font-family: monospace;">  ... codigo de fw....<br />   oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><br />   <span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span> s_RestoreBrowse <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Codigo addd</span><br />      s_RestoreBrowse := oBrw:<span style="color: #000000;">SaveState</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Guardo estado</span><br />   <span style="color: #00C800;">endif</span></div>[/code:3lucldl3] Ahora, en la funcion BtnBar() add estos 2 botones al final [code=fw:3lucldl3]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar ;<br />      <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"SAVE"</span> TOP ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Guardar SEGUNDO Estado"</span> ;<br />      <span style="color: #0000ff;">ACTION</span> s_RestoreBrowse2 := oBrw:<span style="color: #000000;">SaveState</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Guarda el estado del browse"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar ;<br />      <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"RESTAURA"</span> TOP ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Restaura Estados"</span> ;<br />      <span style="color: #0000ff;">ACTION</span> rueda<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Restaura el estado del browse"</span><br /><br /> </div>[/code:3lucldl3] Creamos la funcion rueda() [code=fw:3lucldl3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> rueda<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">static</span> luno := .T.<br /><br />  <span style="color: #00C800;">if</span> lUno<br />     oBrw:<span style="color: #000000;">RestoreState</span><span style="color: #000000;">&#40;</span> s_RestoreBrowse <span style="color: #000000;">&#41;</span><br />     lUno := .F.<br />  <span style="color: #00C800;">else</span><br />    oBrw:<span style="color: #000000;">RestoreState</span><span style="color: #000000;">&#40;</span> s_RestoreBrowse2 <span style="color: #000000;">&#41;</span><br />     lUno := .T.<br />  <span style="color: #00C800;">endif</span><br />  oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3lucldl3]
Bug. XBROWSE y SaveState()
Please replace the Method RestoreState( cState ) in the xbrowse.prg with this code: [code=fw:q8xpj8sk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//--------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> RestoreState<span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrowse<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aCols &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aNewOrder &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nFor, nLen, nHeight, cCol, oCol, nWidth, cHeader, nOrder, lHide<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;nLen &nbsp; := Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nHeight := Val<span style="color: #000000;">&#40;</span>StrToken<span style="color: #000000;">&#40;</span> cState, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">";"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nRowHeight</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nLen<br />&nbsp; &nbsp; &nbsp; cCol := StrToken<span style="color: #000000;">&#40;</span> cState, nFor + <span style="color: #000000;">1</span>, <span style="color: #ff0000;">";"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> cCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span> aNewOrder, Val<span style="color: #000000;">&#40;</span> cCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;ASort<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCols</span>,,, <span style="color: #000000;">&#123;</span> |x,y| x:<span style="color: #000000;">nCreationOrder</span> < y:<span style="color: #000000;">nCreationOrder</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nRowHeight</span> := nHeight<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nLen<br />&nbsp; &nbsp; &nbsp; cCol &nbsp; := StrToken<span style="color: #000000;">&#40;</span> cState, nFor + <span style="color: #000000;">1</span>, <span style="color: #ff0000;">";"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nOrder := Val<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cCol, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">":"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nWidth := Val<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cCol, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">":"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cHeader := &nbsp;StrToken<span style="color: #000000;">&#40;</span> cCol, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">":"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lHide &nbsp;:= <span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cCol, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">":"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"H"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol := ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> nOrder <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">lHide</span> &nbsp;:= lHide<br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">nWidth</span> := nWidth<br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> := cHeader<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aNewOrder, <span style="color: #000000;">&#123;</span> |n| AAdd<span style="color: #000000;">&#40;</span> aCols, ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">aCols</span> &nbsp; &nbsp; &nbsp; &nbsp;:= aCols<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">GetDisplayCols</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #00C800;">Super</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:q8xpj8sk]
Bug. XBROWSE y SaveState()
Muchas horas perdidas buscando porque diablos me pasaba eso y con esto se soluciono. Gracias nageswaragunupudi, espero que ya este corregido en versiones mas recientes.
Bug. XBROWSE y SaveState()
[quote:1pbabmrc]espero que ya este corregido en versiones mas recientes.[/quote:1pbabmrc] Yes.
Bug...Fwh1010 + TGif...
¿Cómo resolver esto: Fwh 1010 + Vc2008 + Harbour FiveHCm.lib(FWGIF.obj) : error LNK2019: símbolo externo _GetWindowLongPtr sin resolver al que se hace referencia en la función _FW_WndProc@16 Saluds, Ale
Bug...Fwh1010 + TGif...
estou com mesmo problema <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Bug...Fwh1010 + TGif...
Please add this code to your app: [code=fw:3tz58m5t]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br />#ifndef _WIN64<br /><br />LONG_PTR WINAPI GetWindowLongPtr<span style="color: #000000;">&#40;</span> HWND hWnd, int nIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   <span style="color: #00C800;">return</span> GetWindowLong<span style="color: #000000;">&#40;</span> hWnd, nIndex <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />#endif<br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:3tz58m5t] [url:3tz58m5t]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/desktop/ms633585(v=vs&#46;85)&#46;aspx[/url:3tz58m5t] [quote:3tz58m5t]Note To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetWindowLongPtr. When compiling for 32-bit Windows, GetWindowLongPtr is defined as a call to the GetWindowLong function.[/quote:3tz58m5t]
Bug...xBrowse( FwH 906 907 )
Hola Antonio; ...por favor, revise el método SetRdd de xBrowse( FwH 906 y 907 ), esto es erróneo :  If ( "ADS"$( ::cAlias )->( RddName() ) .or. 'ADT' $ ( ::cAlias )->( RddName() ) ) [color=#BF0000:1unnpykh].and. ;         ( ::cAlias )->( LastRec() ) > 200[/color:1unnpykh] sería la correcta : If ( "ADS"$( ::cAlias )->( RddName() ) .or. 'ADT' $ ( ::cAlias )->( RddName() ) ) No podía usar [color=#BF0000:1unnpykh].and. ( ::cAlias )->( LastRec() ) > 200[/color:1unnpykh],... ....no seria correcto determinar la quantidade de Registros, de acuerdo? Saluds, Ale
Bug...xBrowse( FwH 906 907 )
Ale, Corregido, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bug? cGetDir() on utf8
Hi Mr.Rao Any news?
Bug? cGetDir() on utf8
[code=fw:1b8zlgj9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />        HB_SetCodePage<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"UTF8"</span><span style="color: #000000;">&#41;</span><br />        HB_CDPSELECT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"UTF8"</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #B900B9;">//</span><br />        FW_SetUnicode<span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br />        cIniDir:=<span style="color: #ff0000;">"c:/temp/????"</span><br />        cTmpDir := AllTrim<span style="color: #000000;">&#40;</span> cGetDir<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"?????????"</span>,  cIniDir, .T. <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1b8zlgj9] please change '/' to '\' Title is ugly code!! [img:1b8zlgj9]https&#58;//i&#46;imgur&#46;com/M8aGaU2&#46;jpg[/img:1b8zlgj9]
Bug? cGetDir() on utf8
As I don't understand Chinese, try this model. [code=fw:h6ljvgew]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> BIF_NONEWFOLDERBUTTON &nbsp;0x200<br /><span style="color: #00D7D7;">#define</span> BIF_RETURNONLYFSDIRS &nbsp; 0x0001<br /><span style="color: #00D7D7;">#define</span> BIF_DONTGOBELOWDOMAIN &nbsp;0x0002<br /><span style="color: #00D7D7;">#define</span> BIF_STATUSTEXT &nbsp; &nbsp; &nbsp; &nbsp; 0x0004<br /><span style="color: #00D7D7;">#define</span> BIF_RETURNFSANCESTORS &nbsp;0x0008<br /><span style="color: #00D7D7;">#define</span> BIF_EDITBOX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x0010<br /><span style="color: #00D7D7;">#define</span> BIF_VALIDATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0020<br /><span style="color: #00D7D7;">#define</span> BIF_NEWDIALOGSTYLE &nbsp; &nbsp; 0x0040<br /><span style="color: #00D7D7;">#define</span> BIF_USENEWUI &nbsp;<span style="color: #000000;">&#40;</span>BIF_NEWDIALOGSTYLE | BIF_EDITBOX<span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> BIF_BROWSEINCLUDEURLS &nbsp;0x0080<br /><span style="color: #00D7D7;">#define</span> BIF_BROWSEFORCOMPUTER &nbsp;0x1000<br /><span style="color: #00D7D7;">#define</span> BIF_BROWSEFORPRINTER &nbsp; 0x2000<br /><span style="color: #00D7D7;">#define</span> BIF_BROWSEINCLUDEFILES 0x4000<br /><span style="color: #00D7D7;">#define</span> BIF_SHAREABLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x8000<br /><span style="color: #00D7D7;">#define</span> MAX_PATH <span style="color: #000000;">260</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitle, cPath, cCarpDest, cPathDest<br /><br />&nbsp; &nbsp;cTitle &nbsp; &nbsp;:= <span style="color: #ff0000;">"Seleccione Carpeta"</span><br /><br />&nbsp; &nbsp;cPath := GETCURDIR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cCarpDest := <span style="color: #ff0000;">"Seleccione la carpeta donde copiar las novedades"</span><br /><br />&nbsp; &nbsp;cPathDest := cGetDir<span style="color: #000000;">&#40;</span> cTitle, cPath,, cCarpDest, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BIF_RETURNONLYFSDIRS + BIF_DONTGOBELOWDOMAIN + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BIF_USENEWUI + BIF_NONEWFOLDERBUTTON <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> .NOT. EMPTY<span style="color: #000000;">&#40;</span> cPathDest <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ? cPathDest<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:h6ljvgew] Regards, saludos.
Bug? cGetDir() on utf8
[quote="karinha":59zttm6o]As I don't understand Chinese, try this model. [code=fw:59zttm6o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> BIF_NONEWFOLDERBUTTON  0x200<br /><span style="color: #00D7D7;">#define</span> BIF_RETURNONLYFSDIRS   0x0001<br /><span style="color: #00D7D7;">#define</span> BIF_DONTGOBELOWDOMAIN  0x0002<br /><span style="color: #00D7D7;">#define</span> BIF_STATUSTEXT         0x0004<br /><span style="color: #00D7D7;">#define</span> BIF_RETURNFSANCESTORS  0x0008<br /><span style="color: #00D7D7;">#define</span> BIF_EDITBOX            0x0010<br /><span style="color: #00D7D7;">#define</span> BIF_VALIDATE           0x0020<br /><span style="color: #00D7D7;">#define</span> BIF_NEWDIALOGSTYLE     0x0040<br /><span style="color: #00D7D7;">#define</span> BIF_USENEWUI  <span style="color: #000000;">&#40;</span>BIF_NEWDIALOGSTYLE | BIF_EDITBOX<span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> BIF_BROWSEINCLUDEURLS  0x0080<br /><span style="color: #00D7D7;">#define</span> BIF_BROWSEFORCOMPUTER  0x1000<br /><span style="color: #00D7D7;">#define</span> BIF_BROWSEFORPRINTER   0x2000<br /><span style="color: #00D7D7;">#define</span> BIF_BROWSEINCLUDEFILES 0x4000<br /><span style="color: #00D7D7;">#define</span> BIF_SHAREABLE          0x8000<br /><span style="color: #00D7D7;">#define</span> MAX_PATH <span style="color: #000000;">260</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> cTitle, cPath, cCarpDest, cPathDest<br /><br />   cTitle    := <span style="color: #ff0000;">"Seleccione Carpeta"</span><br /><br />   cPath := GETCURDIR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   cCarpDest := <span style="color: #ff0000;">"Seleccione la carpeta donde copiar las novedades"</span><br /><br />   cPathDest := cGetDir<span style="color: #000000;">&#40;</span> cTitle, cPath,, cCarpDest,                     ;<br />                         BIF_RETURNONLYFSDIRS + BIF_DONTGOBELOWDOMAIN + ;<br />                         BIF_USENEWUI + BIF_NONEWFOLDERBUTTON <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> .NOT. EMPTY<span style="color: #000000;">&#40;</span> cPathDest <span style="color: #000000;">&#41;</span><br />      ? cPathDest<br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:59zttm6o] Regards, saludos.[/quote:59zttm6o] Sorry!! I test it and still fail.
Bug? cGetDir() on utf8
you can try this cDirTmp:=OemToAnsi(HB_UTF8ToStr(cGetDir()))
Bug? cGetDir() on utf8
[quote="Natter":289iozgz]you can try this cDirTmp:=OemToAnsi(HB_UTF8ToStr(cGetDir()))[/quote:289iozgz] There are two problems!! 1. Title is showing garbled characters. 2. The initial directory is not expanded [img:289iozgz]https&#58;//i&#46;imgur&#46;com/oYLXYRQ&#46;jpg[/img:289iozgz]
Bug? cGetDir() on utf8
The present implementation has limitations in Unicode support. If the user selects a folder containting Unicode characters, the function returns the Unicode test correctly. Limitations: 1) Title of the dialog can not be Unicode. This is provided in next version. Sencond title, inside the dialog can be Unicode even in this version 2) Initdir can not be Unicode text. We are still to find a solution. With the present version, this can be tried: [code=fw:ccgzt8w4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />? cGetDir<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span>, cInitDir, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"?????????"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">// cInitDir can not contain Unicode characters"</span><br /> </div>[/code:ccgzt8w4] [url=https&#58;//imageshack&#46;com/i/pm7cHuuDp:ccgzt8w4][img:ccgzt8w4]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/7cHuuD&#46;png[/img:ccgzt8w4][/url:ccgzt8w4] In the next version to be released soon we can have dialog title in Unicode [code=fw:ccgzt8w4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cTitle &nbsp; := <span style="color: #ff0000;">"?????????"</span><br />&nbsp; &nbsp;? cGetDir<span style="color: #000000;">&#40;</span> cTitle, cInitDir, <span style="color: #00C800;">nil</span>, cTitle + <span style="color: #ff0000;">" ????"</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:ccgzt8w4] [url=https&#58;//imageshack&#46;com/i/plQ0iV65p:ccgzt8w4][img:ccgzt8w4]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/921/Q0iV65&#46;png[/img:ccgzt8w4][/url:ccgzt8w4] Still, cInitDir can not contain Unicode path. We are working on it.
Bug? cGetDir() on utf8
I have solved this problem! [img:250hifvf]https&#58;//i&#46;imgur&#46;com/AbfidG4&#46;jpg[/img:250hifvf]
Bug? cGetDir() on utf8
Can you please share with us how did you solve this problem?
Bug? cGetDir() on utf8
[quote="nageswaragunupudi":261liuz4]Can you please share with us how did you solve this problem?[/quote:261liuz4] Give me some rewards, ex: free update once! <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
Bugs in Samples\Tgraph\test.prg
Has anyone have a working copy of the Samples\Tgraph\test.prg ? When running it, and you try to open a graph or define a new one, it crashes. Thank you.
Bugs in Samples\Tgraph\test.prg
Hello HunterEC,I compiled sample : TEST.prg with no problems.There have been no errors ( it shows a column-graphic ).RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Bugs in Samples\Tgraph\test.prg
Uwe:My Test.prg has a this timestamp: June 05, 2003 8:53AM. Can you email yours ? Thank you.
Bugs in Samples\Tgraph\test.prg
Hello,No changes. The Timestamp is the same.I wanted to send a complete working-dir with exe and rmk.The Email Returns with delivery-problem.I don't know what's wrong.The Make-file :[code:3dxhm837] #Borland make sample, &#40;c&#41; FiveTech Software 2005 HBDIR=d&#58;\xharbour BCDIR=d&#58;\bcc55 FWDIR=d&#58;\fwh &#46;path&#46;OBJ = &#46;\obj &#46;path&#46;PRG = &#46;\ &#46;path&#46;CH = $&#40;FWDIR&#41;\include;$&#40;HBDIR&#41;\include &#46;path&#46;C = &#46;\ &#46;path&#46;rc = &#46;\ PRG = \ Test&#46;PRG PROJECT &#58; Test&#46;exe Test&#46;exe &#58; $&#40;PRG&#58;&#46;PRG=&#46;OBJ&#41; $&#40;C&#58;&#46;C=&#46;OBJ&#41; echo off echo $&#40;BCDIR&#41;\bin\c0w32&#46;obj + > b32&#46;bc # OBJ # ------------- echo obj\Test&#46;obj, + >> b32&#46;bc echo test&#46;exe, + >> b32&#46;bc echo test&#46;map, + >> b32&#46;bc # Fivewin Lib`s für xHARBOUR # -------------------------- echo $&#40;FWDIR&#41;\lib\Fivehx&#46;lib $&#40;FWDIR&#41;\lib\FiveHC&#46;lib + >> b32&#46;bc # xHARBOUR-Lib`s # ----------------------- echo $&#40;HBDIR&#41;\lib\rtl&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\vm&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\gtgui&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\lang&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\macro&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\rdd&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\dbfntx&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\dbfcdx&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\dbffpt&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\hbsix&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\debug&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\common&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\pp&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\codepage&#46;lib + >> b32&#46;bc echo $&#40;HBDIR&#41;\lib\pcrepos&#46;lib + >> b32&#46;bc # Uncomment these two lines to use Advantage RDD # echo $&#40;HBDIR&#41;\lib\rddads&#46;lib + >> b32&#46;bc # echo $&#40;HBDIR&#41;\lib\Ace32&#46;lib + >> b32&#46;bc echo $&#40;BCDIR&#41;\lib\cw32&#46;lib + >> b32&#46;bc echo $&#40;BCDIR&#41;\lib\import32&#46;lib + >> b32&#46;bc echo $&#40;BCDIR&#41;\lib\psdk\odbc32&#46;lib + >> b32&#46;bc echo $&#40;BCDIR&#41;\lib\psdk\nddeapi&#46;lib + >> b32&#46;bc echo $&#40;BCDIR&#41;\lib\psdk\iphlpapi&#46;lib + >> b32&#46;bc echo $&#40;BCDIR&#41;\lib\psdk\msimg32&#46;lib + >> b32&#46;bc echo $&#40;BCDIR&#41;\lib\psdk\rasapi32&#46;lib, >> b32&#46;bc $&#40;BCDIR&#41;\bin\ilink32 -Gn -aa -Tpe -s @b32&#46;bc del b32&#46;bc &#46;PRG&#46;OBJ&#58; $&#40;HBDIR&#41;\bin\harbour $< /L /N /W /Oobj\ /I$&#40;FWDIR&#41;\include;$&#40;HBDIR&#41;\include $&#40;BCDIR&#41;\bin\bcc32 -c -tWM -I$&#40;HBDIR&#41;\include -oobj\$& obj\$&&#46;c &#46;C&#46;OBJ&#58; echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp echo -I$&#40;HBDIR&#41;\include;$&#40;FWDIR&#41;\include >> tmp $&#40;BCDIR&#41;\bin\bcc32 -oobj\$& @tmp $&&#46;c del tmp //------- Sample 2 --------- PRG = \ captura&#46;PRG PROJECT &#58; Captura&#46;exe captura&#46;exe &#58; $&#40;PRG&#58;&#46;PRG=&#46;OBJ&#41; $&#40;C&#58;&#46;C=&#46;OBJ&#41; echo off echo $&#40;BCDIR&#41;\bin\c0w32&#46;obj + > b32&#46;bc # OBJ # ------------- echo obj\captura&#46;obj, + >> b32&#46;bc echo captura&#46;exe, + >> b32&#46;bc echo captura&#46;map, + >> b32&#46;bc // ----------- sample 3 --------- PRG = \ tsttimer&#46;PRG PROJECT &#58; tsttimer&#46;exe tsttimer&#46;exe &#58; $&#40;PRG&#58;&#46;PRG=&#46;OBJ&#41; $&#40;C&#58;&#46;C=&#46;OBJ&#41; echo off echo $&#40;BCDIR&#41;\bin\c0w32&#46;obj + > b32&#46;bc # OBJ # ------------- echo obj\Tsttimer&#46;obj, + >> b32&#46;bc echo tsttimer&#46;exe, + >> b32&#46;bc echo tsttimer&#46;map, + >> b32&#46;bc [/code:3dxhm837]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Bugs in Samples\Tgraph\test.prg
Uwe:Please send it to this address: [color=blue:36at2gy5]morenoec2007@hotmail.com[/color:36at2gy5] Thank you.
Bugs in TButtonBmp
1. There are the line [code=fw:d1am8s5p]<div class="fw" id="{CB}" style="font-family: monospace;">fwlog empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">clayout</span> <span style="color: #000000;">&#41;</span>, ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span></div>[/code:d1am8s5p] in the method new(). Should be erased. 2. When i use clausula GDIPLUS and call the method ::loadbitmap() to change the bitmap, no bitmap to see. Without GDIPLUS is ok!
Bugs in TButtonBmp
1) done. 2) Working for me with and without GDIP btn:loadbmp( newfile ), btn:refresh()
Bugs in TButtonBmp
Thanks, but i use a resource, not a file. Without GDIP is functioning perfect. I use a 16x16 bitmap.
Bugs in TButtonBmp
I tried with this code [code=fw:29e21t1f]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; @ <span style="color: #000000;">100</span>, <span style="color: #000000;">90</span> BUTTONBMP <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Text"</span> + CRLF + <span style="color: #ff0000;">"Top"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">140</span>,<span style="color: #000000;">140</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; BITMAP <span style="color: #ff0000;">"CLIP"</span> TEXTTOP GDIP <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#123;</span> |b| b:<span style="color: #000000;">loadbitmap</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"STAR"</span> <span style="color: #000000;">&#41;</span>, b:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:29e21t1f] This is the relevant part of the rc file [code=fw:29e21t1f]<div class="fw" id="{CB}" style="font-family: monospace;">CLIP BITMAP <span style="color: #ff0000;">"../bitmaps/clip.bmp"</span><br />STAR BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/favorite.bmp"</span><br />&nbsp;</div>[/code:29e21t1f] This is working for me. Probably this may not be working with some bitmaps. Can you suggest any bitmap in the fwh\bitmaps folder to reproduce the problem?
Bugs in TButtonBmp
Try with REDEFINE?? If i not change with :loadbitmap() the the bitmap is shown normal. I will tomorrow use a other bitmap.
Bugs in TButtonBmp
Can you please provide a simple rc file with dialog and some fwh bitmaps?
Bugs in TButtonBmp
I found that this is only if GDIPLUS [b:2wp2fvtc][u:2wp2fvtc]and[/u:2wp2fvtc][/b:2wp2fvtc] SkinButtons() are using!!! In my program i am using Skinbuttons(). If i switch off the skins all is ok!
Bugs in TButtonBmp
Any news about this? The bug is in the functions of skinbuttons(), but i have not the complete Code. Antonio?
Bugs in TButtonBmp
As of now, skinbuttons are compatible only with the legacy paint behavior. Actually skinbuttons replaces the paint method of the button. While the paint method of buttons is greatly enhanced ( any kind of images, auto-resizing of images and also new styles of alignments) the skinbuttons paint method still handles the oldest painting logic. Till we totally *re-write* skinbuttons code, this is compatible only with simple buttonbmps without gdiplus.
Bugs in TButtonBmp
[quote="nageswaragunupudi":vxyuizvq]As of now, skinbuttons are compatible only with the legacy paint behavior. Actually skinbuttons replaces the paint method of the button. While the paint method of buttons is greatly enhanced ( any kind of images, auto-resizing of images and also new styles of alignments) the skinbuttons paint method still handles the oldest painting logic. Till we totally *re-write* skinbuttons code, this is compatible only with simple buttonbmps without gdiplus.[/quote:vxyuizvq] Dear Mr.Rao Any News ... *re-write* skinbuttons code for TButtonBmp within bmp and TGet Action Button bmp. [code=fw:vxyuizvq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; &nbsp; ::<span style="color: #000000;">oGet4</span> <span style="color: #0000ff;">VAR</span> ::<span style="color: #000000;">cNo4</span> &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">104</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> <span style="color: #0000ff;">UPDATE</span> CHRGROUP CHR_WIDE BITMAP <span style="color: #ff0000;">"BTN_FIND16"</span> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oThis:<span style="color: #000000;">Select_DC_NO</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> BUTTONBMP oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">701</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BITMAP <span style="color: #ff0000;">"BTN_CALENDAR16"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"????????"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> ChooseCal2<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGet1</span>, ::<span style="color: #000000;">cNo1</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:vxyuizvq] [img:vxyuizvq]https&#58;//i&#46;postimg&#46;cc/P58QKj5B/Skin-Buttons-problem&#46;jpg[/img:vxyuizvq]
Bugs in TButtonBmp
Good evening Richard, PLS test this example. With XHARBOUR it works fine. With HARBOUR it doesn't work well(fail), it's something for the FiveTech Team(Rao) to check. Buenas noches Richard, PLS prueba este ejemplo. Con XHARBOUR funciona bien. Con HARBOUR no funciona bien (falla), es algo que debe verificar el equipo de FiveTech (Rao). Download complete: [url:2wmzoqg4]https&#58;//mega&#46;nz/file/EF9xUAYK#tk7-xn_ptC-isI6Mlkvizmzp14Va6KOvjNe533lxekU[/url:2wmzoqg4] Regards, saludos.
Bugs in TButtonBmp
[quote="karinha":1s0xzd5d]Good evening Richard, PLS test this example. With XHARBOUR it works fine. With HARBOUR it doesn't work well(fail), it's something for the FiveTech Team(Rao) to check. Buenas noches Richard, PLS prueba este ejemplo. Con XHARBOUR funciona bien. Con HARBOUR no funciona bien (falla), es algo que debe verificar el equipo de FiveTech (Rao). Download complete: [url:1s0xzd5d]https&#58;//mega&#46;nz/file/EF9xUAYK#tk7-xn_ptC-isI6Mlkvizmzp14Va6KOvjNe533lxekU[/url:1s0xzd5d] Regards, Saludos.[/quote:1s0xzd5d] These code look good, but I don't want it. [code=fw:1s0xzd5d]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oGet1:<span style="color: #000000;">lBtnTransparent</span> := .T. &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// transparent button get oGet1</span><br />oGet1:<span style="color: #000000;">lAdjustBtn</span> := .T.<br />&nbsp;</div>[/code:1s0xzd5d] Just waiting for Mr.Rao
Bugs in TButtonBmp
Mr. Richard How can I reproduce your problem at my end so that I can understand what is happening?
Bugs in TButtonBmp
[quote="nageswaragunupudi":l9p2b2h8]Mr. Richard How can I reproduce your problem at my end so that I can understand what is happening?[/quote:l9p2b2h8] Mr.Rao I found problem. Problem code below: [code=fw:l9p2b2h8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />Dialog1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Dialog2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />oSQL_Erp32u := TWinCrane365<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TWinCrane365<br /><br /> SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:l9p2b2h8] No problem code below: [code=fw:l9p2b2h8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Dialog1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Dialog2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />oSQL_Erp32u := TWinCrane365<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TWinCrane365<br /> <br /> </div>[/code:l9p2b2h8] SkinButtons() put in Function Main() no problem. SkinButtons() put in CLASS xxx Method New() problem.
Bugs in TGgiplus
[code=fw:2l4ap0j0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cFile , cResname <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> GDIBmp<br />.<br />.<br /> <span style="color: #00C800;">IF</span>  FindResource<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, cResName , <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>  != <span style="color: #000000;">0</span><br />             aBmpPal    = PalBmpLoad<span style="color: #000000;">&#40;</span> cResName <span style="color: #000000;">&#41;</span><br />             <span style="color: #B900B9;">// if len(aBmpPal) = 0       -> this line is wrong!!   </span><br />             <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span>aBmpPal<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><br />              ::<span style="color: #000000;">hBmp</span> = GdiPlusCreateImageFromRes<span style="color: #000000;">&#40;</span> aBmpPal<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBmpPal<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />             <span style="color: #00C800;">else</span><br />              <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Recurso no encontrado"</span> <span style="color: #000000;">&#41;</span><br />             <span style="color: #00C800;">endif</span><br />         <span style="color: #00C800;">else</span><br />.<br />.<br /> </div>[/code:2l4ap0j0] In declaration and in code: [code=fw:2l4ap0j0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//METHOD DrawImage( oBmp,nTop,nleft, nWidth, nHeight ) -> wrong</span><br />   <span style="color: #00C800;">METHOD</span> DrawImage<span style="color: #000000;">&#40;</span> oBmp,nLeft,nTop, nWidth, nHeight <span style="color: #000000;">&#41;</span></div>[/code:2l4ap0j0]
Bugs in TGgiplus
Have anyone see this? (programmer from tgdi-class)
Bugs in TGgiplus
Günther, is it working fine for you with your changes ?
Bugs in TGgiplus
It is included for the next version Thanks
Bugs in TGgiplus
Thanks all!
Bugs in TGgiplus
Strange i use fwh gen release and i use drawimage on my slotmachine application and it seems run ok perhaphs i change it but i not remember
Bugs in TGgiplus
In case there will be changes a image is displayed normally from TOP, LEFT but in GDI+ reverse -> LEFT, TOP As well maybe checking out why deleted on RESIZE ( happens on BUTTONACTION ) ?. best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Bugs in TGgiplus
Mr Antonio and Mr Cristobal I suggest we may follow standard FWH convention of nTop, nLeft ... etc
Bugs in TGgiplus
[quote="nageswaragunupudi":nina93b1]Mr Antonio and Mr Cristobal I suggest we may follow standard FWH convention of nTop, nLeft ... etc[/quote:nina93b1] Mr Rao, these are the change updated [code=fw:nina93b1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <br /><span style="color: #00C800;">METHOD</span> DrawImage<span style="color: #000000;">&#40;</span> oImage, nTop, nLeft, nWidth, nHeight <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> Graphics<br /> <br />- <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>nWidth <span style="color: #000000;">&#41;</span> .or. Empty<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span><br />-    GdiPlusDrawImage<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hGraphics</span>, oImage:<span style="color: #000000;">hBmp</span>, nTop, nLeft <span style="color: #000000;">&#41;</span><br />- <span style="color: #00C800;">else</span><br />-    GdiPlusDrawImage<span style="color: #000000;">&#40;</span>  ::<span style="color: #000000;">hGraphics</span>, oImage:<span style="color: #000000;">hBmp</span>,nTop,nLeft, nWidth, nHeight <span style="color: #000000;">&#41;</span><br />-<span style="color: #00C800;">endif</span><br /><br />+  <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> nWidth <span style="color: #000000;">&#41;</span> .or. Empty<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span><br />+     GdiPlusDrawImage<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hGraphics</span>, oImage:<span style="color: #000000;">hBmp</span>, nLeft, nTop <span style="color: #000000;">&#41;</span><br />+  <span style="color: #00C800;">else</span><br />+     GdiPlusDrawImage<span style="color: #000000;">&#40;</span>  ::<span style="color: #000000;">hGraphics</span>, oImage:<span style="color: #000000;">hBmp</span>, nLeft, nTop, nWidth, nHeight <span style="color: #000000;">&#41;</span><br />+  <span style="color: #00C800;">endif</span><br /> <br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:nina93b1] an this is function GdiPlusDrawImage [code=fw:nina93b1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GDIPLUSDRAWIMAGE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br /><br />.../...<br /><br />   <span style="color: #00C800;">switch</span> <span style="color: #000000;">&#40;</span>iParams<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br /><br />    <span style="color: #00C800;">case</span> <span style="color: #000000;">4</span>:<br />      nLeft = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />      nTop = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />    graphics->DrawImage<span style="color: #000000;">&#40;</span> newImage, nLeft, nTop <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">case</span> <span style="color: #000000;">6</span>:<br />     nLeft = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />     nTop = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />     nWidth =  hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />     nHeight = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br /><br />    graphics->DrawImage<span style="color: #000000;">&#40;</span> newImage, nLeft, nTop, nWidth, nHeight <span style="color: #000000;">&#41;</span>;  <span style="color: #B900B9;">//Rect object whose x-coordinate, y-coordinate, width, and height</span><br /><br />  <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:nina93b1]
Bugs in TGgiplus
I created a little testtool to add multiple images. there is a problem : 1. Image added ON PAINT 2. and 3. image added on button-action changing the background, only the image painted with button 2 stays visible. The transparent-painting is OK. is there a possible solution to keep ALL images visible ? The same happens on RESIZE DOWNLOAD <!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/Gdiplus3.zip">http://www.pflegeplus.com/DOWNLOADS/Gdiplus3.zip</a><!-- m --> [img:2zpib5al]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Gdiplus7&#46;jpg[/img:2zpib5al] best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Bugs in TGgiplus
Uwe, try this I do not know if I understand your problem [code=fw:2dxe4krb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">Static</span> c_Path<br /><span style="color: #00C800;">Static</span> c_Path1 <br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd<br />   <span style="color: #00C800;">local</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">local</span> oTextFont<br />   <span style="color: #00C800;">local</span> cImage    := <span style="color: #ff0000;">"Logo.png"</span><br />   <span style="color: #00C800;">local</span> nLeft     := <span style="color: #000000;">10</span><br />   <span style="color: #00C800;">local</span> nTop      := <span style="color: #000000;">10</span><br />   <span style="color: #00C800;">local</span> oBmp<br />   <span style="color: #00C800;">local</span> oImg1<br />   <span style="color: #00C800;">local</span> oImg2<br />   <span style="color: #00C800;">local</span> oImg3<br />   <span style="color: #00C800;">local</span> lIni      := .T.<br /><br />   c_Path  := cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   c_Path1 := c_Path + <span style="color: #ff0000;">"IMAGES<span style="color: #000000;">\"</span><br /><br />   DEFINE IMAGE oBmp FILENAME c_path1 + "</span>Back.png<span style="color: #ff0000;">"<br /><br />   oTextFont := TFont():New( "</span>Arial<span style="color: #ff0000;">", 0, 20,.F.,.F.,  0,  0,  0,.F.,.F.)<br /><br />   DEFINE WINDOW oWnd  FROM 10, 10 TO 700, 900 TITLE "</span>GDI+ TEST<span style="color: #ff0000;">" PIXEL // ;<br />      // STYLE WS_POPUP BRUSH oBrush1<br />   oWnd:bRClicked := {|| oWnd:End() }<br /><br />   @ oWnd:nHeight - 100, oWnd:nWidth - 370 BTNBMP oBtn[1] SIZE 100, 50 OF oWnd  2007 ;<br />      FILENAME c_path1 + "</span><span style="color: #0000ff;">Paint</span>.bmp<span style="color: #ff0000;">" ;<br />      LEFT ;<br />      PROMPT "</span>&Paint <span style="color: #000000;">1</span><span style="color: #ff0000;">" ;<br />      FONT oTextFont ;<br />      ACTION ( cImage := "</span>Logo.png<span style="color: #ff0000;">", ; //nLeft := 500, nTop := 10, ;<br />               oImg1  := DRAWIMAGE(oWnd, cImage, 500, 10 ) )<br />      oBtn[1]:bClrGrad = { | lMouseOver | If( ! lMouseOver,; <br />        { { 0.5, 10526975, 16777215 }, ;<br />          { 0.5, 16777215, 10526975 } }, ;<br />        { { 0.5, 16768185, 16777215 }, ;<br />           { 0.5, 16777215, 16768185  } } ) }<br />      oBtn[1]:nLayout := 2<br />      oBtn[1]:SetColor( 128 )<br />      oBtn[1]:cTooltip :=  { "</span>Exit<span style="color: #ff0000;">" + CRLF + ;<br />                             "</span>GDI-test<span style="color: #ff0000;">","</span>EXIT<span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br /><br />   @ oWnd:nHeight - 100, oWnd:nWidth - 260 BTNBMP oBtn[2] SIZE 100, 50 OF oWnd  2007 ;<br />      FILENAME c_path1 + "</span><span style="color: #0000ff;">Paint</span>.bmp<span style="color: #ff0000;">" ;<br />      LEFT ;<br />      PROMPT "</span>&Paint <span style="color: #000000;">2</span><span style="color: #ff0000;">" ;<br />      FONT oTextFont ;<br />      ACTION ( cImage := "</span>Logo.png<span style="color: #ff0000;">", ; //nLeft := 250, nTop := 250, ;<br />               oImg2  := DRAWIMAGE( oWnd, "</span>Logo.png<span style="color: #ff0000;">", 250, 250 ) )<br />      oBtn[2]:bClrGrad = { | lMouseOver | If( ! lMouseOver,; <br />        { { 0.5, 10526975, 16777215 }, ;<br />          { 0.5, 16777215, 10526975 } }, ;<br />        { { 0.5, 16768185, 16777215 }, ;<br />           { 0.5, 16777215, 16768185  } } ) }<br />      oBtn[2]:nLayout := 2<br />      oBtn[2]:SetColor( 128 )<br />      oBtn[2]:cTooltip :=  { "</span><span style="color: #0000ff;">Image</span> <span style="color: #000000;">2</span><span style="color: #ff0000;">" + CRLF + ;<br />                             "</span>test<span style="color: #ff0000;">","</span>TEST<span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br />      <br />// -------------<br /><br />@ oWnd:nHeight - 100, 20 BTNBMP oBtn[6] SIZE 110, 50 OF oWnd  2007 ;<br />FILENAME c_path1 + "</span><span style="color: #0000ff;">Color</span>.bmp<span style="color: #ff0000;">" ;<br />LEFT ;<br />PROMPT "</span>&Color<span style="color: #ff0000;">" ;<br />FONT oTextFont ;<br />ACTION DRAW_BACK( oWnd, 1, 3194624 ) <br />oBtn[6]:bClrGrad = { | lMouseOver | If( ! lMouseOver,; <br />    { { 0.5, 16765863, 16777215 }, ;<br />      { 0.5, 16777215, 16765863 } }, ;<br />    { { 0.5, 16768185, 16777215 }, ;<br />       { 0.5, 16777215, 16768185  } } ) }<br />oBtn[6]:nLayout := 2<br />oBtn[6]:SetColor( 128 )<br />oBtn[6]:cTooltip :=  { "</span>use <span style="color: #0000ff;">color</span><span style="color: #ff0000;">" + CRLF + ;<br />                                        "</span>Background<span style="color: #ff0000;">","</span><span style="color: #0000ff;">COLOR</span><span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br /><br />@ oWnd:nHeight - 100, 135 BTNBMP oBtn[7] SIZE 110, 50 OF oWnd  2007 ;<br />FILENAME c_path1 + "</span>Gradient.bmp<span style="color: #ff0000;">" ;<br />LEFT ;<br />PROMPT "</span>&Gradient<span style="color: #ff0000;">" ;<br />FONT oTextFont ;<br />ACTION DRAW_BACK( oWnd, 2, 16762767, 16773088, .T., 0.5 ) <br />oBtn[7]:bClrGrad = { | lMouseOver | If( ! lMouseOver,; <br />    { { 0.5, 16765863, 16777215 }, ;<br />      { 0.5, 16777215, 16765863 } }, ;<br />    { { 0.5, 16768185, 16777215 }, ;<br />       { 0.5, 16777215, 16768185  } } ) }<br />oBtn[7]:nLayout := 2<br />oBtn[7]:SetColor( 128 )<br />oBtn[7]:cTooltip :=  { "</span>use Gradient<span style="color: #ff0000;">" + CRLF + ;<br />                                        "</span>Background<span style="color: #ff0000;">","</span>GRADIENT<span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br /><br />@ oWnd:nHeight - 100, 250 BTNBMP oBtn[8] SIZE 110, 50 OF oWnd  2007 ;<br />FILENAME c_path1 + "</span><span style="color: #0000ff;">Brush</span>.bmp<span style="color: #ff0000;">" ;<br />LEFT ;<br />PROMPT "</span>&Brush<span style="color: #ff0000;">" ;<br />FONT oTextFont ;<br />ACTION DRAW_BACK( oWnd, 3, , , , , "</span><span style="color: #0000ff;">Brush</span>.bmp<span style="color: #ff0000;">" ) <br />oBtn[8]:bClrGrad = { | lMouseOver | If( ! lMouseOver,; <br />    { { 0.5, 16765863, 16777215 }, ;<br />      { 0.5, 16777215, 16765863 } }, ;<br />    { { 0.5, 16768185, 16777215 }, ;<br />       { 0.5, 16777215, 16768185  } } ) }<br />oBtn[8]:nLayout := 2<br />oBtn[8]:SetColor( 128 )<br />oBtn[8]:cTooltip :=  { "</span>use <span style="color: #0000ff;">Brush</span><span style="color: #ff0000;">" + CRLF + ;<br />                                        "</span>Background<span style="color: #ff0000;">","</span><span style="color: #0000ff;">BRUSH</span><span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br /><br /><br />@ oWnd:nHeight - 100, 365 BTNBMP oBtn[9] SIZE 110, 50 OF oWnd  2007 ;<br />FILENAME c_path1 + "</span><span style="color: #0000ff;">Image</span>.bmp<span style="color: #ff0000;">" ;<br />LEFT ;<br />PROMPT "</span>&Image<span style="color: #ff0000;">" ;<br />FONT oTextFont ;<br />ACTION DRAW_BACK( oWnd, 4, , , , , ,"</span>Backgrd.jpg<span style="color: #ff0000;">" ) <br />oBtn[9]:bClrGrad = { | lMouseOver | If( ! lMouseOver,; <br />    { { 0.5, 16765863, 16777215 }, ;<br />      { 0.5, 16777215, 16765863 } }, ;<br />    { { 0.5, 16768185, 16777215 }, ;<br />       { 0.5, 16777215, 16768185  } } ) }<br />oBtn[9]:nLayout := 2<br />oBtn[9]:SetColor( 128 )<br />oBtn[9]:cTooltip :=  { "</span>use <span style="color: #0000ff;">Image</span><span style="color: #ff0000;">" + CRLF + ;<br />                                        "</span>Background<span style="color: #ff0000;">","</span><span style="color: #0000ff;">IMAGE</span><span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br /><br /><br />@ oWnd:nHeight - 100, oWnd:nWidth - 150 BTNBMP oBtn[10] SIZE 100, 50 OF oWnd  2007 ;<br />FILENAME c_path1 + "</span>Exit.bmp<span style="color: #ff0000;">" ;<br />LEFT ;<br />PROMPT "</span>&Exit<span style="color: #ff0000;">" ;<br />FONT oTextFont ;<br />ACTION oWnd:End() <br />oBtn[10]:bClrGrad = { | lMouseOver | If( ! lMouseOver,; <br />    { { 0.5, 10526975, 16777215 }, ;<br />      { 0.5, 16777215, 10526975 } }, ;<br />    { { 0.5, 16768185, 16777215 }, ;<br />       { 0.5, 16777215, 16768185  } } ) }<br />oBtn[10]:nLayout := 2<br />oBtn[10]:SetColor( 128 )<br />oBtn[10]:cTooltip :=  { "</span>Exit<span style="color: #ff0000;">" + CRLF + ;<br />                        "</span>GDI-test<span style="color: #ff0000;">","</span>EXIT<span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br /><br />//oWnd:bPainted := {|| DRAWIMAGE(oWnd, cImage, nLeft, nTop ) }<br /><br />ACTIVATE WINDOW oWnd CENTER ; <br />ON INIT ( oImg3 := DRAWIMAGE( oWnd, cImage, nLeft, nTop ) ) ;<br />ON PAINT ( ABPaint( oWnd:hDC, 30, 30, oBmp:hBitmap, 255 ), ;<br />           if( !lIni, ( DrawImage( oWnd, oImg1, 500, 10 ),;<br />                        DrawImage( oWnd, oImg2, 250, 250 ),;<br />                        DrawImage( oWnd, oImg3, nLeft, nTop ) ), lIni := .F. ) ) //;           <br />oTextFont:End()<br /><br />RETURN NIL <br /><br />// -------------<br /><br />FUNCTION DRAWIMAGE( oWnd, cImage, nLeft, nTop )<br />   <br />   local hDC       := oWnd:GetDc()<br />   local cNew<br />   local oGraphics := Graphics():New( oWnd:hDC ) <br />   local oImage<br />   if Valtype( cImage ) = "</span>C<span style="color: #ff0000;">"<br />      cNew      := c_Path1 + cImage<br />      oImage    := GDIBmp():New( cNew )  <br />   else<br />      oImage    := cImage<br />   endif<br />   if !Empty( oImage )<br />      oGraphics:DrawImage( oImage, nTop, nLeft  ) //, nTop )<br />      oGraphics:Destroy()<br />   endif<br />   oWnd:ReleaseDc() <br /><br />Return oImage<br /><br />// --------  Background ---------------<br /><br />FUNCTION DRAW_BACK( oWnd, nStyle, nColor1, nColor2, lDirect, nMove, cBrush, cImage ) <br /><br />   local hDC<br />   local oBrush<br />   local oImage<br />   local aGrad<br />   local aRect   := GETCLIENTRECT( oWnd:hWnd ) <br />   local hBmp<br />   local hBmpOld<br /><br />   IF nStyle = 1 // COLOR<br />    DEFINE BRUSH oBrush COLOR nColor1<br />   ENDIF<br />   IF nStyle = 2 // GRADIENT<br />    aGrad := { { nMove, nColor1, nColor2 }, { nMove, nColor2, nColor1 } }<br />    hDC = CreateCompatibleDC( oWnd:GetDC() )<br />    hBmp = CreateCompatibleBitMap( oWnd:hDC, aRect[4], aRect[3] )<br />    hBmpOld = SelectObject( hDC, hBmp )<br />    GradientFill( hDC, 0, 0, aRect[3], aRect[4], aGrad, lDirect )<br />    oBrush := TBrush():New( ,,,, hBmp )<br />    oBrush:Cargo  := aGrad<br />    SelectObject( hDC, hBmpOld )<br />    ReleaseDC(hDC)<br />   ENDIF<br />   IF nStyle = 3 // BMP-BRUSH<br />    IF FILE( c_path1 + cBrush ) <br />        DEFINE BRUSH oBrush FILE c_path1 + cBrush<br />    ELSE<br />        IF !EMPTY(cImage)<br />            MsgAlert( "</span>File : <span style="color: #ff0000;">" + cBrush + CRLF + ;<br />                    "</span>does not exist<span style="color: #ff0000;">" + CRLF + ; <br />                        "</span><span style="color: #0000ff;">to</span> create Background !<span style="color: #ff0000;">", "</span>ATTENTION<span style="color: #ff0000;">" ) <br />        ENDIF<br />    ENDIF<br />   ENDIF<br />   IF nStyle = 4 // Image ADJUSTED<br />    IF FILE( c_path1 + cImage ) <br />        DEFINE IMAGE oImage FILE c_path1 + cImage<br />        oBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], .T. ) ) <br />        oImage:End()<br />    ELSE<br />        IF !EMPTY(cImage)<br />            MsgAlert( "</span>File  : <span style="color: #ff0000;">" + cImage + CRLF + ;<br />                       "</span>does not exist<span style="color: #ff0000;">" + CRLF + ; <br />                           "</span><span style="color: #0000ff;">to</span> create Background !<span style="color: #ff0000;">", "</span>ATTENTION<span style="color: #ff0000;">" ) <br />        ENDIF<br />    ENDIF<br />   ENDIF<br />   oWnd:Setbrush( oBrush )<br />   oBrush:End()<br />   <br />RETURN( NIL)   <br /><br /></span></div>[/code:2dxe4krb] Please, change for your test [code=fw:2dxe4krb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; oGraphics:<span style="color: #000000;">DrawImage</span><span style="color: #000000;">&#40;</span> oImage, nTop, nLeft &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//, nTop )</span><br />&nbsp;</div>[/code:2dxe4krb] with [code=fw:2dxe4krb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; oGraphics:<span style="color: #000000;">DrawImage</span><span style="color: #000000;">&#40;</span> oImage, nLeft, nTop <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2dxe4krb]
Bugs in TGgiplus
Cristobal, it comes close to the solution I'm looking for. Windows-resize and multiple image-painting is working now. Still I have to do some finetuning and I will add a new Download-link thank You very much best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Bugs in TGgiplus
I'm working on making a proportional resize the images to resize we do in Windows, but so far without success Regards
Bugs in TGgiplus
[quote="ukoenig":3bv8ezv0]Cristobal, it comes close to the solution I'm looking for. Windows-resize and multiple image-painting is working now. Still I have to do some finetuning and I will add a new Download-link thank You very much best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->[/quote:3bv8ezv0] Please, modify my code, add clausule VALID ( End objects ) [code=fw:3bv8ezv0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTER</span> ; <br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oImg3 := DrawImage<span style="color: #000000;">&#40;</span> oWnd, cImage, nLeft, nTop <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">&#40;</span> ABPaint<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hDC</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span>, oBmp:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, ;<br />                 <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !lIni, <span style="color: #000000;">&#40;</span> DrawImage<span style="color: #000000;">&#40;</span> oWnd, oImg1, <span style="color: #000000;">500</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>,;<br />                              DrawImage<span style="color: #000000;">&#40;</span> oWnd, oImg2, <span style="color: #000000;">250</span>, <span style="color: #000000;">250</span> <span style="color: #000000;">&#41;</span>,;<br />                              DrawImage<span style="color: #000000;">&#40;</span> oWnd, oImg3, nLeft, nTop <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, lIni := .F. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oImg1 <span style="color: #000000;">&#41;</span>, oImg1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span>, ;<br />              <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oImg2 <span style="color: #000000;">&#41;</span>, oImg2:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span>, ;<br />              <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oImg3 <span style="color: #000000;">&#41;</span>, oImg3:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span>, ;<br />              .T. <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:3bv8ezv0]
Bugs in TGgiplus
Christobal, I completed the TESTTOOL Now RESIZE and BACKGROUND-change works perfect. Tomorrow I will add a new DOWNLOAD [img:38h2abt0]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Gdiplus8&#46;jpg[/img:38h2abt0] Thank You very much for Your help best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Bugs in TGgiplus
Antonio, in this context i point to a bug in HB_FUNC( ROUNDRECT ) // hDC, nLeftRect, nTopRect, nRightRect, nBottomRect, nEllipseWidth, nEllipseHeight, hPen ) There are also changed left and top bzw. right and bottom [code=fw:akxqehr1]<div class="fw" id="{CB}" style="font-family: monospace;">  BOOL bResult = RoundRect<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>,<br />                             hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:akxqehr1] Should be [code=fw:akxqehr1]<div class="fw" id="{CB}" style="font-family: monospace;">  BOOL bResult = RoundRect<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>,<br />                             hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:akxqehr1] Also the documentation is wrong. Please call rectangle(...) an roundrect(...) with same parameters! Should be same direction and size!
Bugs in TGgiplus
Mr Günther The existing code exactly matches the syntax given along with the function and also gives the correct results. Will you please recheck? Incidentally this is not related to GDI+
Bugs in TGgiplus
Mr. Rao, not GDI+ but we should follow (as you above said) the FWH-syntax nTop, nLeft ... etc also in normal GDI!? Please call rectangle(...) an roundrect(...) [b:245x38ae]with same parameters in same order[/b:245x38ae]! Should be same direction and size, but is different!
Bugs in TGgiplus
[quote="byte-one":2htyvwcn]Mr. Rao, not GDI+ but we should follow (as you above said) the FWH-syntax nTop, nLeft ... etc also in normal GDI!? Please call rectangle(...) an roundrect(...) [b:2htyvwcn]with same parameters in same order[/b:2htyvwcn]! Should be same direction and size, but is different![/quote:2htyvwcn] Personally I too like using the same style everywhere including RoundRect. I am with you. But this function with this syntax has been there for quite long. Not only in other parts of FWH library but in many user applications also this syntax is/ might have been used. Any change at this stage may break existing applications. Hope you understand. I made the suggestion in the above case because the best time to change is the first time.
Bugs in latest Harbour
Harbour doesn't recognize the following operator: [code=fw:82eqmcfj]<div class="fw" id="{CB}" style="font-family: monospace;">^^</div>[/code:82eqmcfj] Compiling the following sample [code=fw:82eqmcfj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">STATIC</span> n<br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; n = <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; ? n<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:82eqmcfj] I get [code=fw:82eqmcfj]<div class="fw" id="{CB}" style="font-family: monospace;">Warning W0003 &nbsp;Variable <span style="color: #ff0000;">'N'</span> declared but not used in <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'TEST(1)'</span><br />Warning W0001 &nbsp;Ambiguous reference <span style="color: #ff0000;">'N'</span><br />Warning W0001 &nbsp;Ambiguous reference <span style="color: #ff0000;">'N'</span></div>[/code:82eqmcfj] EMG
Bugs in latest Harbour
Impossible. You are wrong. Test function is not defined in your prg sample OR Delete /n flag in compiling line
Bugs in latest Harbour
This is a sample of the bug: [code=fw:18wgxglj]<div class="fw" id="{CB}" style="font-family: monospace;">Microsoft Windows <span style="color: #000000;">&#91;</span>Versione <span style="color: #000000;">10.0</span><span style="color: #000000;">.10586</span><span style="color: #000000;">&#93;</span><br /><span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">2015</span> Microsoft Corporation. Tutti i diritti sono riservati.<br /><br />E:\HARBOUR>SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w3<br /><br />E:\HARBOUR>harbour test<br />Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1601050904<span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2015</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />test.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> Warning W0003 &nbsp;Variable <span style="color: #ff0000;">'N'</span> declared but not used in <span style="color: #00C800;">function</span> <span style="color: #ff0000;">'TEST(1)'</span><br />test.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> Warning W0001 &nbsp;Ambiguous reference <span style="color: #ff0000;">'N'</span><br />test.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> Warning W0001 &nbsp;Ambiguous reference <span style="color: #ff0000;">'N'</span><br /><br />No code generated.</div>[/code:18wgxglj] [code=fw:18wgxglj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">STATIC</span> n<br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; n = <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; ? n<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:18wgxglj] EMG
Bugs in latest Harbour
Try with clipper and xharbour compiler. After write here results. Remember they are simple warnings.
Bugs in latest Harbour
I can't try with Clipper. With xHarbour I correctly get: [code=fw:2evlpu5v]<div class="fw" id="{CB}" style="font-family: monospace;">E:\XHARBOUR>SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w3<br /><br />E:\XHARBOUR>harbour test<br />xHarbour <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20151110</span><span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">1999</span><span style="color: #000000;">-2015</span>, http:<span style="color: #B900B9;">//www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --></span></div>[/code:2evlpu5v] EMG
Bugs in latest Harbour
My try with harbour r1512050958 it's ok. [code=fw:2mlqnxra]<div class="fw" id="{CB}" style="font-family: monospace;"><br />C:\P>\hb32\bin\harbour test.prg /a /es2 /gc0 /m /n /w3<br />Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1512050958<span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2015</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />Compiling <span style="color: #ff0000;">'test.prg'</span>...<br />Lines <span style="color: #000000;">10</span>, Functions/Procedures <span style="color: #000000;">1</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'test.c'</span>... Done.</div>[/code:2mlqnxra] So, you are ok. Compiling error is on latest harbour.
Bugs in latest Harbour
I just tried with [code=fw:2g19p3je]<div class="fw" id="{CB}" style="font-family: monospace;">Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1601101942<span style="color: #000000;">&#41;</span></div>[/code:2g19p3je] Same problem. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
Bugs in latest Harbour
Enrico, Already reported to the Harbour developers group: [url:3uba1m6u]https&#58;//groups&#46;google&#46;com/forum/#!topic/harbour-devel/DEFqWDk-jgQ[/url:3uba1m6u]
Bugs in latest Harbour
Thank you! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Bugs in latest Harbour
And what about [code=fw:3gdum2sk]<div class="fw" id="{CB}" style="font-family: monospace;">^^</div>[/code:3gdum2sk] operator? EMG
Bugs in latest Harbour
Enrico, Please post here a small example so Harbour devs review it too, thanks
Bugs in latest Harbour
Here it is: [code=fw:2c154vpm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; ? <span style="color: #000000;">1</span> ^^ <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:2c154vpm] [code=fw:2c154vpm]<div class="fw" id="{CB}" style="font-family: monospace;">Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1601101942<span style="color: #000000;">&#41;</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2015</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />TEST2.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> Error E0030 &nbsp;Syntax error <span style="color: #ff0000;">"syntax error at '^'"</span><br /><span style="color: #000000;">1</span> error<br /><br />No code generated.</div>[/code:2c154vpm] EMG
Bugs in latest Harbour
Enrico, Przemek already answered us... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bugs in latest Harbour
And what has he answered? EMG
Bugs in latest Harbour
Please read the thread, I posted the url <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bugs in latest Harbour
Master Antonio se puede hacer asi, ó no? [code=fw:2voqjjhq]<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 />MEMVAR x<br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// ? 1 ^^ 2</span><br /><br />&nbsp; &nbsp;x := Cube<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;? x<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">Function</span> Cube<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> n ** <span style="color: #000000;">1.585</span><br />&nbsp;</div>[/code:2voqjjhq] Asi, funciona com Harbour y xHarbour, mas no see se está correcto.  [url:2voqjjhq]https&#58;//books&#46;google&#46;com&#46;br/books?id=vrtI4i8kA4EC&pg=PA41&lpg=PA41&dq=operadores+matem%C3%A1ticos+clipper&source=bl&ots=TJukevCRHR&sig=m4pui-IeRVXiRIGHbDlRyk5Mfh4&hl=pt-BR&sa=X&ved=0ahUKEwidhKDsqqLKAhWMIZAKHXKIAo8Q6AEIIjAB#v=onepage&q=operadores%20matem%C3%A1ticos%20clipper&f=false[/url:2voqjjhq]
Bugs in latest Harbour
Antonio, ops, sorry, I missed the url! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Anyway, I used both /n and /w3, as in my sample up in this thread. EMG
Bugs in latest Harbour
João, Yo entiendo que debería ser asi: Function Cube( n ) Return n ** 3
Bugs in latest Harbour
master, in xHarbour: [img:er3pblwy]http&#58;//i&#46;imgur&#46;com/4pDEaqV&#46;png[/img:er3pblwy]
Bugs in latest Harbour
Master xHarbour con *: [img:94wvik0h]http&#58;//i&#46;imgur&#46;com/yhdfUFg&#46;png[/img:94wvik0h] ???? Cual és el correcto? Gracias, saludos.
Bugs in latest Harbour
João, In xHarbour ^^ has this meaning: [quote:1k6a44sw]<x> ^^ <y> - bit xor[/quote:1k6a44sw] [url:1k6a44sw]https&#58;//github&#46;com/harbour/core/blob/master/doc/xhb-diff&#46;txt[/url:1k6a44sw]
Bugs in latest Harbour
It looks like SET HARBOURCMD does not work like you expect. I get the same error if I use [code=fw:2b2hdr6r]<div class="fw" id="{CB}" style="font-family: monospace;">C:\HARBOUR>SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w3 <br />C:\HARBOUR>harbour test<br />&nbsp;</div>[/code:2b2hdr6r] It compiles ok if I use [code=fw:2b2hdr6r]<div class="fw" id="{CB}" style="font-family: monospace;">C:\HARBOUR>harbour test /a /es2 /gc0 /m /n /q /w3<br />&nbsp;</div>[/code:2b2hdr6r]
Bugs in latest Harbour
I confirm, HARBOURCMD is broken in Harbour, even in the latest nightly build. As an example: SET HARBOURCMD=-a -es2 -gc0 -ie:\harbour\include -n -q -w3 The switch -i in HARBOURCMD is ignored (while the other switches seem to work). But this work instead: harbour test -ie:\harbour\include <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
Bugs: TGet bchange /Outlook/ suggestion to .ch
Antonio, I upgrade to FWH 2.7 to use with xHB comercial due to the _hbstack bug and I found any fixed bugs from 2.6 that came back. I'll be glad if you can review this issues: AnsiUpper() function: In any cases AnsiUpper generate a GPF (I tested under XP) and our app crash (but in any way stay running because the exe can't be erased), we must restart computer... --------------------------------------- TOutLook.prg: Bug: The first time we click in button your action isn't fired. We must click button a second time. Possible solution: In method ADDITEM comment the lines: oBmp:bMMoved := ... oBmp:blButtonUp := ... ---------------------------- On change (TGET class) bug: bChange don't consider last character typed in oGet object. In other words the buffer is updated with one character of "delay" Working sample: Code: #include "FiveWin.ch" function Main() local oDlg local cVar := space(40) local oGet DEFINE DIALOG oDlg TITLE "Just a get" @ 2, 2 SAY "Text:" OF oDlg @ 2, 6 GET oGet VAR cVar OF oDlg oGet[2]:bChange := {|| oGet:Assign(), oDlg:SetText(oGet:cText) } @ 3, 7 BUTTON "&Ok" OF oDlg SIZE 30, 12 ACTION oDlg:End() @ 3, 16 BUTTON "&Cancel" SIZE 30, 12 OF oDlg ACTION oDlg:End() CANCEL ACTIVATE DIALOG oDlg CENTERED return nil Possible solution (thanks to Rossine): Code: METHOD KeyChar( nKey, nFlags ) CLASS TGet This code is placed on wrong place: if ::bChange != nil lAccept = Eval( ::bChange, nKey, nFlags, Self ) if ValType( lAccept ) == "L" .and. ! lAccept return 0 endif endif The correct place if before otherwise clause at end of method METHOD KeyChar( nKey, nFlags ) CLASS TGet (...) if ::oGet:TypeOut if ! Set( _SET_CONFIRM ) ::oWnd:nLastKey = VK_RETURN ::oWnd:GoNextCtrl( ::hWnd ) else if Set( _SET_BELL ) MsgBeep() endif endif endif // Rossine if ::bChange != nil lAccept = Eval( ::bChange, nKey, nFlags, Self ) if ValType( lAccept ) == "L" .and. ! lAccept return 0 endif endif // Rossine Eval( ::bPostKey, Self, ::oGet:Buffer ) otherwise return Super:KeyChar( nKey, nFlags ) endcase return 0 --------------------------------- Suggestion: We have any problems to create/activate dialogs with valid/init into classes because in .ch files the name Self is used. See this sample METHOD MyMethod CLASS MyClass define dialog ::oDlg ... activate dialog ::oDlg nomodal valid ::MyValid() (...) The activate code will conflict with Self name, see the PPO: ::oDlg:Activate(::oDlg:bLClicked,::oDlg:bMoved,::oDlg:bPainted,.T.,,! .T. ,{|Self|::MyValid()},::oDlg:bRClicked,,) "valid ::MyValid()" turn into "{|Self|::MyValid()}" We suggest change Self to This into .ch files -------------------------------------------------------------------- A little suggestion to .ch too: Include clause PICT like Clipper: [ <pict:PICT,PICTURE> <cPicture> ] ------------------------------------------------------------------- Another suggest to .ch: DEFAULT command: #xcommand DEFAULT <uVar1> := <uVal1> ; [, <uVarN> := <uValN> ] => ; if( <uVar1> == nil, <uVar1> := <uVal1>, ) ;; [ if( <uVarN> == nil, <uVarN> := <uValN>, ); ] This translated declararion: DEFAULT x := 1 if(x == nil, x == 1, ) Appears to be more efficient that: x := if(x == nil, x == 1, x) Because assign a value to variable only when value is nil
Bugs: TGet bchange /Outlook/ suggestion to .ch
Maurilio, We have not modified AnsiUpper() at all. It just makes a call to Win32 AnsiUpper() function. Its a one line source code function.
Bugs: TGet bchange /Outlook/ suggestion to .ch
Maurilio, We have just tested samples\TestOutL.prg and it works ok. Could you please test it ? Are you using some classes with modifications of your own ?
Bugs: TGet bchange /Outlook/ suggestion to .ch
Maurilio, > bChange don't consider last character typed in oGet object. In other words the buffer is updated with one character of "delay" > Fixed. Thanks! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Bugs: TGet bchange /Outlook/ suggestion to .ch
Maurilio, > We suggest change Self to This into .ch files Its a good suggestion, but we can't implement it or we will break many users source code.
Bugs: TGet bchange /Outlook/ suggestion to .ch
Maurilio, > A little suggestion to .ch too: Include clause PICT like Clipper: [ <pict:PICT,PICTURE> <cPicture> ] > Implemented, thanks!
Bugs: TGet bchange /Outlook/ suggestion to .ch
Maurilio, > Another suggest to .ch: DEFAULT command: Excellent suggestion. Implemented. Many thanks! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Bugs: TGet bchange /Outlook/ suggestion to .ch
[quote="Antonio Linares":aefzz47c] We have just tested samples\TestOutL.prg and it works ok. Could you please test it ? Are you using some classes with modifications of your own ?[/quote:aefzz47c] No, I´m using original class. The problem occur when we click any button by first time. In 1st time, the action isn´t launched. Any times it work other times no <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> We comment these lines and it worked. I´ll try with a self contained sample... About AnsiUpper( ) I can´t figura what occur. I call ansiupper( ) and my program exit without error messages. I search in my source code if i redefined it in any place but it is ok... Any news I post here... Many thanks to accept my suggestions <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Best regards, Maurilio
Build 16.01 Menu Problem
After I switched to build 16.01, I have noticed the problem shown below. Menu items are nested as you see. This problem occurs only on Win XP machines. [img:1wkdws33]https&#58;//imagizer&#46;imageshack&#46;us/v2/234x103q90/923/XmAwlQ&#46;png[/img:1wkdws33] Win 7 and Win 10 there is no problem [img:1wkdws33]https&#58;//imagizer&#46;imageshack&#46;us/v2/236x137q90/923/8ykgve&#46;png[/img:1wkdws33] Best regards,
Build 16.01 Menu Problem
With Buid 1 or Build 2?
Build 16.01 Menu Problem
Build 2 (February 2016)
Build 16.01 Menu Problem
With all styles? ( non style, 2007, 2010, 2013, 2015 )?