topic
stringlengths
1
63
text
stringlengths
1
577k
metro buttons (solved)
There is no separate dll or anything else that is to be present. The bitmap files should be available exactly in the same path as specified in the prg. You may modify the path of the bmp files depending where you keep the bmp files while deploying.
metro buttons (solved)
The path is ok i have a msginfo for the file names and it returns ok IF file("..\bitmaps\AlphaBmp\handnew.bmp") MSGINFO("handnew ok") ELSE MSGINFO("handnew absent") ENDIF DEFINE IMAGE oImgTouch FILENAME "..\bitmaps\AlphaBmp\handnew.bmp" DEFINE IMAGE oImgEnd FILENAME "..\bitmaps\pngs\end.png" the above 2 lines are not showing ...., what can prevent them ? any idea ? using fwh 13.02 windows 8 pro harbour
metro buttons (solved)
Richard, working with different path-defines, I save the path-structure to a array, to avoid mistakes. ( better to handle ). [code=fw:2coo6ypt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"metropnl.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> CLR_DIALOGS RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">123</span>, <span style="color: #000000;">140</span>, <span style="color: #000000;">223</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">static</span> oWnd, oFontLarge, oFontMed, oFontUL, oFontSmall, c_Path<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oVSlider, oImgTouch, oImgEnd<br /><br /><span style="color: #B900B9;">// starting from the FWH-sub-dir SAMPLES !</span><br /><br />c_path<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> := 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> <span style="color: #B900B9;">// Appl..path = Subdir of FWH</span><br /><span style="color: #B900B9;">// MsgAlert( c_path[1], "Application-path ( Subdirectory SAMPLES of FWH\ )" )</span><br /><br />lChDir<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\"</span> )  <br />c_path[2] := GETCURDIR() + "</span>\<span style="color: #ff0000;">"<br />// MsgAlert( c_path[2], "</span><span style="color: #0000ff;">Get</span> Fwh-Main<span style="color: #ff0000;">" )<br /><br />c_path[3] := c_path[2] + "</span><span style="color: #0000ff;">BITMAPS</span>\<span style="color: #ff0000;">"<br />// MsgAlert( c_path[3], "</span>Sub-dir <span style="color: #0000ff;">Bitmaps</span>  <span style="color: #000000;">1</span>. <span style="color: #0000ff;">Image</span> path<span style="color: #ff0000;">" )<br /><br />c_path[4] := c_path[3] + "</span>ALPHABMP\<span style="color: #ff0000;">" <br />// MsgAlert( c_path[4], "</span>Sub-dir <span style="color: #0000ff;">Bitmaps</span>\ALPHABMP  <span style="color: #000000;">2</span>. <span style="color: #0000ff;">Image</span> path<span style="color: #ff0000;">" )<br /><br />c_path[5] := c_path[3] + "</span>PNGS\<span style="color: #ff0000;">" <br />// MsgAlert( c_path[5], "</span>Sub-dir <span style="color: #0000ff;">Bitmaps</span>\PNGS  <span style="color: #000000;">3</span>. <span style="color: #0000ff;">Image</span> path<span style="color: #ff0000;">" )<br /><br />lChDir( c_path[1] )  <br />// MsgAlert( GETCURDIR() + "</span>\<span style="color: #ff0000;">", "</span>back <span style="color: #0000ff;">to</span> Application-path<span style="color: #ff0000;">" )<br /><br />// SetDlgGradient( { { 1, RGB( 103, 120, 203 ), RGB( 153, 170, 253 ) } } )<br /><br />DEFINE FONT oFontLarge NAME "</span>Segoe UI Light<span style="color: #ff0000;">" SIZE 0, -60 BOLD<br />DEFINE FONT oFontMed   NAME "</span>Segoe UI Light<span style="color: #ff0000;">" SIZE 0, -30 BOLD<br />DEFINE FONT oFontUL    NAME "</span>Segoe UI Light<span style="color: #ff0000;">" SIZE 0, -30 UNDERLINE<br />DEFINE FONT oFontSmall NAME "</span>Segoe UI Light<span style="color: #ff0000;">" SIZE 0, -20 BOLD<br /><br />DEFINE IMAGE oImgTouch FILENAME c_path[4] + "</span>handnew.bmp<span style="color: #ff0000;">"<br />DEFINE IMAGE oImgEnd FILENAME c_path[5] + "</span>end.png<span style="color: #ff0000;">"<br /><br />DEFINE WINDOW oWnd STYLE nOr( WS_POPUP, WS_VISIBLE ) ;<br />COLOR CLR_BLACK, CLR_BLUE<br />...<br />...<br /></span></div>[/code:2coo6ypt] [img:2coo6ypt]http&#58;//www&#46;pflegeplus&#46;com/pictures/Touch1&#46;jpg[/img:2coo6ypt] Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
metro buttons (solved)
Thanks Uwe I finally got it working I don't really know what happened, related to a test project (uestudio), i have done another project and it is working now. Thanks for help anyway (as usual) regards,
metro buttons (solved)
Richard Just curious about your reaction.. I looked at the WinRt ( metro ) interface and I liked it however, in keeping with the Metro ( tiled main menu) Window style, there is no frame to minimize or 'x' to close the application, nor is there a task bar visible without having to hit the Windows key. [url=http&#58;//imageshack&#46;us/photo/my-images/248/metrov&#46;jpg/:djjcbggh][img:djjcbggh]http&#58;//img248&#46;imageshack&#46;us/img248/3175/metrov&#46;jpg[/img:djjcbggh][/url:djjcbggh] In a ( windows ) business setting ( my humble opinion ) I think it is quite rude for an application to take up and 'hog' the screen especially if you have several applications open. Another thing that bothers me is if you click anywhere on the screen the application will close. As far as using the Metro opening ( tiled ) menu interface ( as is ) .. it is not very pc friendly and would have to be modified to be used in a Business class environment. In defense of many of our FiveWin friends, I will say that you can still use many aspects of the Metro style for other data entry screens .. like browses and sliders - on off switches .. otherwise using the tiled beginning menu interface does not lend itself to be used as the main menu for a pc application. Rick Lipkin
metro buttons (solved)
Rick You are right, i have noticed the same odd behaviour from windows 8 interface Though we are targetting a tablet pc in replacement of our pocket pc software and because there is a big demand from our customers. As business is low.... we try to go where the demand is. I have an Ipad 3 and an android Samsung tablet , and to be honest i don't like them both for the programming part. I like the idea of windows 8 tablet more friendly to program and easier for communication (in our business world). This is why i am exploring this interface and as you said we can combine both worlds (sliders metro btn and normal windows). My son and other people at the company have done some work in java with Eclipse and sql , it is an alternative but communication with our main software (fwh) gets complex and so far not giving satisafaction. I think we need to share experience , Otto has issued the process with a beautiful application (congrats), more has to come from other fivewinners. Antonio needs surelyy our feedback to improve this interface. Right now , Otto is alone (i may be wrong) , hopefully i will join shortly. Best regards,
metro buttons (solved)
Rick, [quote:2o7ev62x]Another thing that bothers me is if you click anywhere on the screen the application will close[/quote:2o7ev62x] We implemented that behavior just for testing purposes, but we can easily remove it and I agree it is an absurd behavior <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> As Richard comments, we need the feedback from other FiveWinners to evolve this way if there is a new market opportunity for all of us. Recently I enjoyed testing GitHub for Windows as they have implemented a similar solution like we have done. Otto you may enjoy reviewing this app and may give us good ideas: [url:2o7ev62x]http&#58;//windows&#46;github&#46;com/[/url:2o7ev62x] These are screenshots from the [b:2o7ev62x]DESKTOP[/b:2o7ev62x] app. It is not a Win8 WinRT neither a web app: [img:2o7ev62x]http&#58;//img843&#46;imageshack&#46;us/img843/388/capture1ip&#46;jpg[/img:2o7ev62x] [img:2o7ev62x]http&#58;//img706&#46;imageshack&#46;us/img706/2995/capture2rt&#46;jpg[/img:2o7ev62x] [img:2o7ev62x]http&#58;//img694&#46;imageshack&#46;us/img694/1489/capture3fc&#46;jpg[/img:2o7ev62x] [img:2o7ev62x]http&#58;//img89&#46;imageshack&#46;us/img89/8886/capture4fft&#46;jpg[/img:2o7ev62x]
metro buttons (solved)
Antonio I like your example of GitHub for Windows.. very Elegant!! Rick Lipkin
metro buttons (solved)
Rick, Yes, I agree, thats why it catched my attention <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Anyhow I think it is not very standard. Otto whats your opinion about it ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
metro buttons (solved)
I have been trying to find github.exe and it seems as it is not a desktop app, in fact I am not sure about what it is <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> See this: [quote:2xrfvzj6]http://github-windows.s3.amazonaws.com/GitHub.application#GitHub.application, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86[/quote:2xrfvzj6] what is this ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
metro buttons (solved)
A Java applet? <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> EMG
metro buttons (solved)
Maybe some useful infos ? <!-- m --><a class="postlink" href="http://en.wikipedia.org/wiki/GitHub">http://en.wikipedia.org/wiki/GitHub</a><!-- m --> Download ( A green Download-button on upper right corner ) : <!-- m --><a class="postlink" href="http://windows.github.com/">http://windows.github.com/</a><!-- m --> The welcome-screen after install [img:3r6xlybd]http&#58;//www&#46;pflegeplus&#46;com/pictures/github&#46;jpg[/img:3r6xlybd] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
metro style header
Hello Antonio, Can you please provide a metro style header menu. [quote:3j0s5i67]The header menu is part of the hierarchical navigation pattern. It offers the user a shortcut to navigate to different sections of your app without having to first go back home via the back button, and then drill into another section. The items in the header menu should match the various sections of your hub that the user can drill into, plus a home button at the bottom. Header menus use custom alignment so the edge of the menu aligns with the edge of the text and use custom positioning so that the menu always displays under the header, rather than repositioning if it runs out of room. Header menus use custom width to line up better with the title.[/quote:3j0s5i67] [img:3j0s5i67]http&#58;//www&#46;atzwanger-software&#46;com/fw/header1&#46;jpg[/img:3j0s5i67] [img:3j0s5i67]http&#58;//www&#46;atzwanger-software&#46;com/fw/header2&#46;jpg[/img:3j0s5i67] [img:3j0s5i67]http&#58;//www&#46;atzwanger-software&#46;com/fw/header3&#46;jpg[/img:3j0s5i67] Thanks in advance Otto
metro style header
For me this is working fine. I deleted all the “gradiant” stuff and changed the painting method to: [code=fw:241gq9xg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRBtn<br /><br />   <span style="color: #00C800;">local</span> aInfo, hBrush, aRect<br />   <br />   aInfo := ::<span style="color: #000000;">DispBegin</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <br />    <span style="color: #B900B9;">//Set TRANSPARENT </span><br />    SetBkMode<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <br />    <br />    aRect := GetClientRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />    hBrush =  CreateSolidBrush<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br /> <br />   FillRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, aRect, hBrush <span style="color: #000000;">&#41;</span><br />    <br />    <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lMOver</span> = .f.<br />        ABPaint<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">oBmp</span>:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />        ABPaint<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">oBmpHover</span>:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />    <br />    DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span><br />    <br />  ::<span style="color: #000000;">DispEnd</span><span style="color: #000000;">&#40;</span> aInfo <span style="color: #000000;">&#41;</span><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:241gq9xg] Best regards, Otto
metter con look Wxp
Estimados compañeros: Tengo la inquietud de saber como dar un look Wxp a mis metters Mil gracias Lorenzo FWH 2.7 + xHarbour
metter con look Wxp
Loren: En lugar de metters utiliza TProgressBar. Saludos
mi 1 programa de FW a FWH
alguien me puede echar una mano ya que no se como es el asunto con el harbour y todo eso, algun ejemplo claro de compilacion, gracias
mi 1 programa de FW a FWH
Puedes utilizar VeRCE de Juan Carlos Salinas Ojeda <!-- m --><a class="postlink" href="http://www.esm.com.mx/fivewin/index.htm">http://www.esm.com.mx/fivewin/index.htm</a><!-- m --> para compilar tus proyectos Harbour. Saludos.
mi 1 programa de FW a FWH
Alex, Revisa el fichero samples\buildh.bat. Es un ejemplo simple de cómo compilar y enlazar, usando Harbour.
mi funcion sumar horas
Y como se usa? saludos.
mi funcion sumar horas
[code=fw:2qz04v6n]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> sumaHoras<span style="color: #000000;">&#40;</span>aHoras<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nItem,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHoras,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nMinutos,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHoras1,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nMinutos1,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTH,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTM<br /><br />&nbsp; &nbsp;nHoras:= Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>aHoras<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">":"</span>, aHoras<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nMinutos:= Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>aHoras<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">":"</span>, aHoras<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> nItem:= <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span>aHoras<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nHoras1:= Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>aHoras<span style="color: #000000;">&#91;</span>nItem<span style="color: #000000;">&#93;</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">":"</span>,aHoras<span style="color: #000000;">&#91;</span>nItem<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nMinutos1:= Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>aHoras<span style="color: #000000;">&#91;</span>nItem<span style="color: #000000;">&#93;</span>, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">":"</span>, aHoras<span style="color: #000000;">&#91;</span>nItem<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; nTM:= nMinutos + nMinutos1<br />&nbsp; &nbsp; &nbsp; nTH:= nHoras + nHoras1<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> &nbsp;nTm >= <span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTH++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTm:= nTm - <span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDDO</span><br /><br />&nbsp; &nbsp; &nbsp; nHoras:= nTH<br />&nbsp; &nbsp; &nbsp; nMinutos:= nTm<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span> nItem<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>nHoras<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":"</span> + AllTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>nMinutos<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:2qz04v6n]
mi funcion sumar horas
Gracias por el aporte, por lo que veo recibe un array con elementos del tipo hora "hh:mm" y los suma. De todas formas para operaciones con horas también tienes las funciones TimeToSec() y SecToTime() que pueden serte de ayuda.
mi funcion sumar horas
Si, es así como decis recibie un array. Como no conozco mucha de las funciones para las horas prefiero pensar como hacer una propia que no andar buscando mucho. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
mi funcion sumar horas
Como se usa: [code=fw:3k1balp7]<div class="fw" id="{CB}" style="font-family: monospace;">vHorarios<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:= <span style="color: #ff0000;">"7:00"</span><br />vHorarios<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span>:= <span style="color: #ff0000;">"13:00"</span><br />vHorarios<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span>:= <span style="color: #ff0000;">"7:00"</span><br />vHorarios<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:= <span style="color: #ff0000;">"13:00"</span><br />vHorarios<span style="color: #000000;">&#91;</span><span style="color: #000000;">07</span><span style="color: #000000;">&#93;</span>:= <span style="color: #ff0000;">"13:59"</span><br /><br /><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" Total de horas: "</span> +sumaHoras<span style="color: #000000;">&#40;</span>vHorarios<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:3k1balp7] Listo.
mi funcion sumar horas
Gracias Goos, lo voy a necesitar. saludos.
mi funcion sumar horas
me alegro!
mi funcion sumar horas
Para obtener la diferencia entre horas ::oNE_Tiempo:cText:= SubStr( TimeDiff( ::oNE_HoraEntrada:Value, Time() ), 4 ) Saludos [code=fw:1dvmbffu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*-----------------------------------------------------------------------------------------------*/</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> TimeDiff<span style="color: #000000;">&#40;</span> cStartTime, cEndTime <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">/*-----------------------------------------------------------------------------------------------*/</span><br />   <span style="color: #00C800;">RETURN</span> TimeAsString<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>cEndTime < cStartTime, <span style="color: #000000;">86400</span> , <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> + TimeAsSeconds<span style="color: #000000;">&#40;</span>cEndTime<span style="color: #000000;">&#41;</span> - TimeAsSeconds<span style="color: #000000;">&#40;</span>cStartTime<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*-----------------------------------------------------------------------------------------------*/</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> TimeAsString<span style="color: #000000;">&#40;</span> nSeconds <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">/*-----------------------------------------------------------------------------------------------*/</span><br />   <span style="color: #00C800;">RETURN</span> StrZero<span style="color: #000000;">&#40;</span>INT<span style="color: #000000;">&#40;</span><span style="color: #00C800;">Mod</span><span style="color: #000000;">&#40;</span>nSeconds / <span style="color: #000000;">3600</span>, <span style="color: #000000;">24</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":"</span> +;<br />      StrZero<span style="color: #000000;">&#40;</span>INT<span style="color: #000000;">&#40;</span><span style="color: #00C800;">Mod</span><span style="color: #000000;">&#40;</span>nSeconds / <span style="color: #000000;">60</span>, <span style="color: #000000;">60</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":"</span> +;<br />      StrZero<span style="color: #000000;">&#40;</span>INT<span style="color: #000000;">&#40;</span><span style="color: #00C800;">Mod</span><span style="color: #000000;">&#40;</span>nSeconds, <span style="color: #000000;">60</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> TimeAsSeconds<span style="color: #000000;">&#40;</span> cTime <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">/*-----------------------------------------------------------------------------------------------*/</span><br />   <span style="color: #00C800;">RETURN</span> VAL<span style="color: #000000;">&#40;</span>cTime<span style="color: #000000;">&#41;</span> * <span style="color: #000000;">3600</span> + VAL<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cTime, <span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> * <span style="color: #000000;">60</span> +;<br />          VAL<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cTime, <span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:1dvmbffu]
mi funcion sumar horas
yo use otra: ElapTime <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
mi funcion. dada una fecha devolver el rango de la semana
Necesitaba que me devuelva la fecha comprendida entre el LUNES y VIERNES inclusive de una fecha dada. [code=fw:xt7b7o98]<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 />    <span style="color: #00C800;">local</span> aRango:= array<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />    aRango:= fSemana<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"24/07/2014"</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"desde: "</span> + dtoc<span style="color: #000000;">&#40;</span>aRango<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" hasta: "</span> + dtoc<span style="color: #000000;">&#40;</span>aRango<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// desde: 21/07/2014 hasta: 25/07/2014</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> fsemana<span style="color: #000000;">&#40;</span>dFecha<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRep<br />   dFecha:= dFecha - <span style="color: #000000;">&#40;</span>DoW<span style="color: #000000;">&#40;</span>dfecha<span style="color: #000000;">&#41;</span> <span style="color: #000000;">-2</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>dFecha, dFecha + <span style="color: #000000;">4</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span></div>[/code:xt7b7o98]
mi funcion. dada una fecha devolver el rango de la semana
Por favor se un poco mas especifico en lo que quieres obtener, si son los dias que hay entre las 2 fechas o que, por lo menos yo no entiendo bien pregunta, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
mi funcion. dada una fecha devolver el rango de la semana
dFecha := CTOD("24/07/2014") nDia := DOW (dFecha) IF nDia > 1 .and. nDia < 7 msginfo("desde: " + dtoc(dFecha-(nDia-2)) + " hasta: " + dtoc(dFecha+(6-nDia))) ELSE msgstop (CDOW(dFecha), "Fecha no válida.") ENDIF Puedes convertirlo en una función y usar un array si lo necesitas.
mi funcion. dada una fecha devolver el rango de la semana
Hola Manuel: Yo usaría cDow(Fecha) que te devuelve "Lunes", "Martes" .... o "Monday", "Tuesday"... y con un do case dependiendo lo que te devuelva le quitaría para hallar la primera y sumaria para la segunda: Mas o menos: do case case cdow(fecha) = "Lunes" fechades = fecha fechahas = fecha + 5 case cdow(fecha) = "Martes" fechades = fecha - 1 fechahas = fecha + 4 .... ... endcase Espero que te sirva Un saludo Carlos
mi funcion. dada una fecha devolver el rango de la semana
colthop, La función de Manuel es independiente del idioma. Así que da igual que el Domingo que devuelve CDoW() sea Sunday, Dimanche, Sonntag... Saludos.
mi funcion. dada una fecha devolver el rango de la semana
Hola que tal: Me parece correcta tu observación pero todos sabemos cual es el lenguaje del compilador (o linkador) y se puede adaptar dependiendo del idioma. Ya que esta función no depende del lenguaje del usuario sino del compilador, a mi me lo devolvía en ingles pero le puse: [code=fw:indjnu73]<div class="fw" id="{CB}" style="font-family: monospace;">REQUEST HB_LANG_ES<br />REQUEST HB_CODEPAGE_ESWIN<br />HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'ES'</span><span style="color: #000000;">&#41;</span><br />HB_SetCodePage<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'ESMWIN'</span><span style="color: #000000;">&#41;</span></div>[/code:indjnu73] Y ya me lo devuelve en español. Un saludo Carlos
mi funcion. dada una fecha devolver el rango de la semana
Hola que tal: Incluso pensando un poquito independientemente del lenguaje si tu pones Tlunes = cdow(ctod("23/07/2014")) Tu sabes que ese día es "Lunes" o "Monday" y en la variable TLunes esta. Y si luego lo comparas en Do case como "case cdow(fecha) = TLunes te entrará o no independiente del idioma. Un saludo Carlos
mi funcion. dada una fecha devolver el rango de la semana
colthop, Es verdad que se puede configurar el idioma... pero imaginate que quieres hacer una funcion que se pueda incorporar a la libreria fivewin... No es buena cosa depender de strings dependientes del idioma... son cambiantes... hay que ir a lo fijo... y lo fijo es que dow() devuelve como 1 si el dia es domingo y 2 para el lunes y asi... Da igual que el primer dia de la semana (civil) sea el lunes, da igual. Eso es fijo, aquí y en Sebastopol, en harbour, xharbour y en Clipper; con configuración de languaje inglés, ruso o thai. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Saludos
mi funcion. dada una fecha devolver el rango de la semana
Hola que tal: Tu mismo has dado la solución en vez de cDow utiliza Dow y si es 1 sabes que es domingo y 4 que es miércoles y actúa en el do case en consecuencia. Me parece muy bien lo que dices pero creo que podrías indicar soluciones o adaptar ideas y crear las soluciones en vez de criticar. Un saludo Carlos
mi funcion. dada una fecha devolver el rango de la semana
¿ Me puedes decir EXACTAMENTE que he criticado yo? ¿ No he hecho yo EXACTAMENTE lo mismo que tu ? A saber, aportar desde mi punto de vista una solución. ¿ No ha sido mi fin el mismo que el tuyo, que no es sino aportar ideas a la comunidad ? ¿ Puedes decirme qué cosa he hecho mal y no debería haber hecho que merece ser llamado "criticar" ? Recias palabras las tuyas para tan poca cosa.
mi funcion. dada una fecha devolver el rango de la semana
Hola que tal: Tienes toda la razón. un saludo Carlos
mi funcion. dada una fecha devolver el rango de la semana
jua jua. che. no pregunté nada. solo puse la función que hice. saludos a todos.
mi funcion. dada una fecha devolver el rango de la semana
[quote="goosfancito":256exohm]jua jua. che. no pregunté nada. solo puse la función que hice. saludos a todos.[/quote:256exohm] jajajaja...todos matandose y dandose de puños y goosfandito parado en una esquina viendo...ya que no pregunto nada...jajjajaj...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
mi funcion. dada una fecha devolver el rango de la semana
SEEE y no sabes como miraba jaja. saludos!
mi primera compilacion en Harbour
Hola a todos: Estoy intentado compilar un pequeño programa que ya tengo funcionando en FW y pasarlo a FWH. Despues de instalar los compiladores, el BCC5,5 y modificar los paths de builh.bat, al compilar cualquier programa incluidos los samples de FWH me da el siguiente error: Error F0034 Bad command line option: 'N/W' Sea cual sea el .prg que quiero compilar siempre da este error. Alguien me puede ayudar ?? Saludos Paco Carrasco
mi primera compilacion en Harbour
Paco, Prueba a separar las opciones que le pasas al compilador: En vez de 'N/W' usa /n /w
mi primera compilacion en Harbour
Antonio gracias por tu respuesta pero creo que el problema era que tenia puestos los SET para Clipper y de alguna manera interfieren ya que quite el SET CLIPPERCMD=/N/W /RTERMINAL /RDBFNTX ..... y se resolvio el problema. Puede compilar varios programas aunque he tenido que copiar todos los includes de BCC55 en Include de Harbour y aun asi hay una LIB UUID.LIB que si no está en la carpeta del .prg no la localiza. Me imagino que a base de pruebas acabaré encontrado la solucion. Echo mucho de menos una documentacion de los errores de Harbour asi como normas y parametros para la compilacion. Saludos
mi primera compilacion en Harbour
Francisco, Puedes descargar uuid.lib desde aqui: <!-- m --><a class="postlink" href="http://hyperupload.com/download/7db97492/uuid.zip.html">http://hyperupload.com/download/7db97492/uuid.zip.html</a><!-- m -->
mi primera compilacion en Harbour
El problema con la UUID.LIB es que tienes mal configurado el compilador de Borland. Necesitas crear 2 archivos de configuracion llamados: BCC32.CFG e ILINK32.CFG En la misma carpeta donde esta el BCC32.EXE y el ILINK32.EXE, usualmente la carpeta \borland\bcc55\bin. dentro de estos archivos deberas indicar las rutas donde se tienen que buscar los arhivos INCLUDE y LIB Por ejemplo, mi BCC32.CFG tiene estas lineas. -Ic:\borland\bcc55\include;c:\xHarbour\include;c:\fw25\include -Lc:\borland\bcc55\lib;c:\xharbour\lib;c:\fw25\include Y mi ILINK32.CFG tiene esta: /Lc:\borland\bcc55\lib;c:\xHarbour\lib;c:\fw25\lib
mi primera compilacion en Harbour
Muchas gracias por vuestra ayuda Antonio y RF. Ya estoy empezando a tener buenos resultados. Adios.
miexe.exe con argumento
Buenos días, No recuerdo como se hace para poder captruar dentro de un EXE el argumento con el que se ha llamado. p.e. "miapliacion.exe candela" dentro de miaplicción.exe quisiera asociar el valor "candela" a una variable. Que función permite obtener el valor de "candela"? Saludos y gracias Carlos G.
miexe.exe con argumento
Carlos, En tu función principal sólo tienes que declarar el parámetro: function Main( cParam ) cParam contendrá lo que le pases a la aplicación. Otra forma es llamar a MsgInfo( HB_ArgV( 1 ) )
miexe.exe con argumento
Gracias, Más simple no podía ser. Saludos Carlso G. [quote="Antonio Linares":243n89zd]Carlos, En tu función principal sólo tienes que declarar el parámetro: function Main( cParam ) cParam contendrá lo que le pases a la aplicación. Otra forma es llamar a MsgInfo( HB_ArgV[ 1 ] )[/quote:243n89zd]
miglior sistema per selezione record da un xbrowse...
Sono incerto sul miglior sistema da utilizzare per la ricorrente necessità, durante l'input di un campo, di aprire in un browse l'elenco dando possibilità da questo elenco di selezionare il record o, se inesistente, di aggiungere un nuovo record aprendo apposita specifica dialog a parte.Esempio: in una dialog di inserimento dati di testata di un ordine, quando arrivo al campo cliente far aprire l'elenco dei clienti e da qui selezionare quello che mi interessa oppure dare possibilità di aggiungerne uno nuovo e quindi proseguire con l'inserimento ordine. Tutto qua, non mi serve che faccia altro.Vado con un TXBROWSE all'interno di una funzione a parte collegata tramite la VALID del campo get ? ... o con un semplice DBCOMBO? ... o altro?So che ci sono più possibilità per farlo, ma quale è il più semplice e diretto?Solo una "dritta" per la cosa più semplice dato che sono agli inizi, secondo vostre esperienze.grazie.MTFWH 8.04 + XHARBOUR 1.1.0
miglior sistema per selezione record da un xbrowse...
Mi sembra che la combobox sia lo strumento più naturale in questi casi. Purtroppo ha una pesante limitazione nel numero di righe. Io di solito lo simulo usando un browse.EMG
miglior sistema per selezione record da un xbrowse...
Invece nel tuo caso io farei in questo modo tu devi selezionare un solo cliente vero ?prima di aprire il dialog dell'inserimento crei un array tipo aTip oDTip:=Apri_Dbf("Tabelle" ) DO WHILE (oDTip)->CveTab="T" .AND. !(oDTip)->(EoF()) AAdd(aTip,(oDTip)->Descri) (oDTip)->(DbSkip()) ENDDO Chiudi_Dbf("Tabelle",oDTip)e poi REDEFINE COMBOBOX oTip VAR aDat[12] ITEMS aTip ID 113 OF oDltquesto , come ti ha detto emg , mi sembra quello piu' immediato
miglior sistema per selezione record da un xbrowse...
Grazie EMG e Silvio.Sicuramente il COMBOBOX è il sistema più adatto e rapido, ma per via del fatto che devo gestire dbf con molti record e che devo tenere aperto il dbf listato nel combobox per eventuale scelta dell'utente di inserire un nuovo record, credo opterò per una funzioncina da agganciare alla VALID del campo get che mi apre una dialog a parte con l'elenco voluto tramite XBROWSE...grazie ancora.MAX
migracion de ca clipper a fivewin
estoy haciendo una prueba para ver como funciona el fivewin con la programacion que ya tengo de varios programas en ca clipper, tengo blinker demo y fivewin demo y quiero pasar un programa a fivewin pero me da un mensaje de error, compila bien con el clipper (nombre del programa) /n/w y tambien con el blinker fi nombre del programa @Fivewin.lnk pero, cuando lo ejecuto me da un mensaje de error de UNCLTEXT, pordrian decirme si puede probar si fivewin convierte mis programas en ca clipper 5.2 a Fivewin con ventanas con solo compilarlo y linkearlo o tengo que hacer programaci{on a dicional. Desde ya gracias por su ayuda, anabel Gracias
migracion de ca clipper a fivewin
Que versión de Blinker estás usando ?
migracion de ca clipper a fivewin
Anabel: Pues va a ser que no. FW no pasa "magicamente" a Windows tus programas con solo compilar. La migracion a Windows nostoros la hemos dividido en 3 etapas.: 1) Reconstruccion de la interfaz con el usuario. Nada de lo que tienes diseñado actualmente para Clipper con respecto a pantallas te funciona bajo Windows con FiveWin., debes crear todas pantallas nuevas, ya se por medio de codigo fuente o bien con un editor de recursos. 2) Reglas de negocio: Entendemos por reglas de negocio todas las operaciones "internas" que hace tu programa, como manejo de bases de datos, calculos matematicos, acceso a archivos, en general, todas esas cosas que tu programa hace, pero que tu no ves ni en pantalla ni en impresora, esta parte permanece sin cambio y ocupa mas o menos el 60% de todo el sistema. 3) Reporteria e informes, Esta es otra parte que tambien cambia, a pesar de que FiveWin provee de una clase para imprimr como lo haces actualmetne con Clipper, lo mejor es volver a diseñar todos los informes de tal manera que sean 100% Windows Compatibles, asi que toda la reporteria tiene que volver a ser diseñada tambien. Cuando nosotros atacamos un proyecto de migracion DOS Windows, lo primero que hacermos es hacer un "prototipo" que es muy facil de realizar, porque unicamente diseñamos pantallas en recursos y un programa que hace aparecer dichas pantallas, que no son operativas, es decir, no capturan ningun dato, pero nos dan una idea de como va a quedar el programa Luego, "limpiamos" las reglas de negocio, es decir, les quitamos a las operacion internas todo el tema de uso de datos provenientes de las capturas y nos quedamos unicamente con las operaciones y los accesos a las bases de datos. Una vez que ya aislamos las reglas de negocio entonces si procedemos a vincular las pantallas con los datos que tienen que mostrar y/o capturar, este suele ser el proceso mas pesado de la migracion Y finalmente, hacemos la reporteria, gracias al motor de informes de Fivewin todo el tema de reportes columnares se resuelve muy rapido, los reportes mas complejos como formatos pre-impresos y reportes especiales lleva un poco mas de tiempo pero se puede hacer sin problemas.
migracion de ca clipper a fivewin
Anabel: Creo que ya respondieron a tu pregunta: Si puedo ayudarte en algo; tengo el BLINEKER 7, y el clipper 5.3b, que creo es el ultimo y mejor de los que han salido, yo tambien soy "NUEVON" en esta excelente herramienta que es el FIVEWIN, y estoy pasando los mismos apuros, que tu para la migracion. Trabajo con una herramienta adicional GENIFER que es un excelente generador de aplicaciones para CLIPPER. Si te interesan hazme llegar un email y te los hare llegar con mucho gusto. RODOLFO SILVA <!-- e --><a href="mailto:sildata@cantv.net">sildata@cantv.net</a><!-- e -->
migration to new server (2012)
Dear friends, A classic dbfcdx table application very very fast! From a 2003 Server to 2012 Server a lot of clients become very very slow I want to know if this can help me [url:3ak6ncs8]http&#58;//www&#46;tek-tips&#46;com/viewthread&#46;cfm?qid=1742613[/url:3ak6ncs8] Many thanks
migration to new server (2012)
Look <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30877&p=177844&hilit=server+2012#p177844">viewtopic.php?f=3&t=30877&p=177844&hilit=server+2012#p177844</a><!-- l -->
migration to new server (2012)
I try this! [url:3aojnugq]https&#58;//support&#46;microsoft&#46;com/it-it/kb/2696547[/url:3aojnugq] Thanks again
migration to new server (2012)
Bad experience After changing parametrs for smb2 clients are no longer connected to server. Terrible! The scenario is a virtual domain server windows 2012. Bye
migrations fivewin 2.6 for xharbour 0.99...
Hi friends. What lib´s , i need recompiler to using fivewin 2.6 to xharbour... please help me..
migrations fivewin 2.6 for xharbour 0.99...
Mauricio, FiveTech provides the libraries ready for Harbour (FiveH.lib) and xHarbour (FiveHX.lib). FiveHC.lib is the same for both Harbour and xharbour.
migrations fivewin 2.6 for xharbour 0.99...
GRACIAS ANTONIO.. EU ESPERO PARTICIPARE MAIS DELE .... MAURICIO (BRAZIL)
milliseconds()
Dear Antonio, is there a function milliseconds() in mod harbour. Best regards, Otto
milliseconds()
Dear Antonio, I found a workaround: If I subtract a number from seconds() and add it back, it shows decimal places. hData[ 'seconds' ] := 10 + seconds()-a -10 Best regards, Otto
milliseconds()
Dear Otto, You can use HB_MILLISECONDS()
milliseconds()
Dear Antonio, thank you. I was searching for this quite a long time. Best regards, Otto
minor bug in FW 11.11
Hello, When using Treport and prew32.dll is not present, it produces this error: [code=fw:2gzk8bwi]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; Error description: <span style="color: #000000;">Error</span> FiveWin/<span style="color: #000000;">3</span> &nbsp;Cannot create <span style="color: #0000ff;">Dialog</span> Box: <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Resource</span>: <span style="color: #000000;">PREVIEW_PROC</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => CREATEDLGERROR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">531</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">269</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\REPORT.PRG => TREPORT:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">886</span> <span style="color: #000000;">&#41;</span></div>[/code:2gzk8bwi] It should be very interesting to modify method Activate() to check if prev32.dll /64 or preview.dll is there. Current code is not working: [code=fw:2gzk8bwi]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp;::<span style="color: #000000;">hOldRes</span> := GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;#ifdef __CLIPPER__<br />&nbsp; &nbsp; &nbsp; SET RESOURCES <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">"preview.dll"</span><br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! IsWin64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET RESOURCES <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">"prev32.dll"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET RESOURCES <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">"prev64.dll"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;#endif<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> < <span style="color: #000000;">32</span><br />&nbsp; &nbsp; &nbsp; #ifdef __CLIPPER__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Preview.dll not found"</span>, <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ! IsWin64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Prev32.dll not found"</span>, <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Prev64.dll not found"</span>, <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; #endif<br />&nbsp; &nbsp; &nbsp; SetResources<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hOldRes</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></div>[/code:2gzk8bwi] It does not show msgstop. Thanks.
minor bug in FW 11.11
up.
minor bug in FW 11.11
John, Fixed this way: [code=fw:21oek4ge]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">if</span> ! IsWin64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"prev32.dll"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"prev32.dll not found"</span>, <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetResources<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hOldRes</span> <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;">else</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET RESOURCES <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">"prev32.dll"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span> &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"prev64.dll"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"prev64.dll not found"</span>, <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetResources<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hOldRes</span> <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;">else</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET RESOURCES <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">"prev64.dll"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span> &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:21oek4ge] Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
minor bug in FW 11.11
Thanks. Will you include in FW 11.12?.
minor bug in FW 11.11
Yes, of course <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
minor bug in FW 11.11
hi, im using windows 7 64 pro and fwh11.12, but my appl is not found prev32.dll, in fwh11.11 work fine. prev32.dll is in appl directory.
minor bug in FW 11.11
[code=fw:1elqo0b1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />set defa <span style="color: #0000ff;">to</span> <br />?file<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"prev32.dll"</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// return .t.</span><br />set defa <span style="color: #0000ff;">to</span> c:\miapp\datos<br />?file<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"prev32.dll"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// return .f.</span><br />&nbsp;</div>[/code:1elqo0b1]
minor bugs in FW 11.11
Antonio, samples\invoice.prg is not working. When i click on imprimir, the app closes. samples\FiveGen\go.bat is missing. Thank you.
minor bugs in FW 11.11
Also, ws2_32.lib is missing in buildh.bat
minor bugs in FW 11.11
Also, samples\fiverep is not working: [code=fw:3yo4wia6]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1003</span> &nbsp;Variable does not exist: <span style="color: #000000;">ORDER</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\TDICT.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDICT_NEW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">140</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> ORDCREATE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\TDICT.PRG => TDICT:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">140</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fiverep</span>.prg => TFIVEREP:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fiverep</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3yo4wia6]
minor bugs in FW 11.11
[quote="ukservice":2663g9bo]Antonio, samples\invoice.prg is not working. When i click on imprimir, the app closes. samples\FiveGen\go.bat is missing. Thank you.[/quote:2663g9bo] John, Both fixed, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Surely we will publish a revised FWH 11.11 today <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
minor bugs in FW 11.11
[quote="ukservice":1550eowu]Also, ws2_32.lib is missing in buildh.bat[/quote:1550eowu] Added, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
minor bugs in FW 11.11
Antonio, Thanks. What about bugs in ribbon and ttitle?.
minor bugs in FW 11.11
[quote="ukservice":202xey32]Also, samples\fiverep is not working: [code=fw:202xey32]<div class="fw" id="{CB}" style="font-family: monospace;">   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1003</span>  Variable does not exist: <span style="color: #000000;">ORDER</span><br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TDICT.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDICT_NEW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">140</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => ORDCREATE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TDICT.PRG => TDICT:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">140</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fiverep</span>.prg => TFIVEREP:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">fiverep</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:202xey32][/quote:202xey32] We have moved samples\fiverep\* to samples\* so we can use standard buildh.bat, etc. It will be included in revised FWH 11.11
minor bugs in FW 11.11
Antonio, That´s what I also did and it is not working. Please try buildh fiverep Thanks.
minor bugs in FW 11.11
John, We have implemented some changes in that example. Today or tomorrow we wil publish the revised 11.11 version
minor bugs in FW 11.11
Antonio, Thank you. But have you been able to reproduce bugs in Ribbon and Title?. Just in a test pc download Harbour and FWH.exe and test please. Thanks.
minor bugs in FW 11.11
We are uploading a revised FWH 11.11 right now, it should be available in a few mins and it should solve these issues <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
minor fix for FW 13.04
Dear Antonio, I still get the following warnings with MSVC 2010: [code=fw:1y92bcdj]<div class="fw" id="{CB}" style="font-family: monospace;">fiveh32.lib<span style="color: #000000;">&#40;</span>HARBOUR.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_LOADLIB32 ya se definió en fivehc32.lib<span style="color: #000000;">&#40;</span>CALDLL32.obj<span style="color: #000000;">&#41;</span>; segunda definición omitida<br />fiveh32.lib<span style="color: #000000;">&#40;</span>HARBOUR.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_FREELIB32 ya se definió en fivehc32.lib<span style="color: #000000;">&#40;</span>CALDLL32.obj<span style="color: #000000;">&#41;</span>; segunda definición omitida<br />hbct.lib<span style="color: #000000;">&#40;</span>files.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> LNK4006: _HB_FUN_DELETEFILE ya se definió en fivehc32.lib<span style="color: #000000;">&#40;</span>C5CNEW.obj<span style="color: #000000;">&#41;</span>; segunda definición omitida</div>[/code:1y92bcdj] Could you please verify that?. Also, could you please declare DELETEFILE at C5CNEW as static please?. Maybe this function from Paco does not work as the same at CTools, makbe in parameters. Thank you very much, Best regards,
minor fix for FW 13.04
Do you get this with 13.04 ? i know about deletefile but not the other ones My app runs now with Msvc 2010 and Harbour and FWH 13.02 I use UESTUDIO Richard
minor fix for FW 13.04
Yes, I do. Please, see your link.txt
minor fix for FW 13.04
Richard, They are warnings that can be safely ignored. Lucas, Fixed for nex build, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
minor fix for FW 13.04
Antonio, Thank you very much as usual.
mis proyectos..
Gracias a la clase TCalendar ( sino me equivoco sin ofender de Reinaldo y Daniel ) pude terminar tocando un poco la clase, mi agenda de reservaciones, hay pequeños detalles que quisiera que la clase tuviera pero a mi me es imposible poder hacer esos cambios... por lo pronto me funciona perfecto. Y tambien para compartirles el termino de mi operacion del sistema punto de venta para restaurantes.. Comparto mis imagenes saludos pd gracias a todos por su ayuda [URL=http://imageshack.us/photo/my-images/191/agendafjhg.jpg/] [img:38khfqgk]http&#58;//img191&#46;imageshack&#46;us/img191/1576/agendafjhg&#46;jpg[/img:38khfqgk][/URL] [URL=http://imageshack.us/photo/my-images/109/posfjhg.jpg/] [img:38khfqgk]http&#58;//img109&#46;imageshack&#46;us/img109/1898/posfjhg&#46;jpg[/img:38khfqgk][/URL]
mis proyectos..
Paco: Ay wey, se ve de poca. Felicidades. Saludos
mis proyectos..
Hola Francisco No tienes una demo para mostrarla a uno de mis clientes? Saludos
mis proyectos..
Hola Francisco, Have you modified Tcalex ? how you can create record with different colors ? have you a test to try ?
mis proyectos..
Bien Paco, con la imagen de la pantalla del restaurant, hasta hambre me dio, y ya mande pedir una torta de 3 quesos. aca por el estadio azteca mexico d.f. jeje saludos.
mis proyectos..
Paco Se ve muy bonito. Saludos, Adhemar
mis proyectos..
[quote="Armando":130cci1s]Paco: Ay wey, se ve de poca. Felicidades. Saludos[/quote:130cci1s] Gracias Soidito, hacemos lo que se puede sin dormir jeje saludos