Browser for FW sample folder

User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Browser for FW sample folder

Post by Otto »

http://www.atzwanger-software.com/fw/SamplesPreview.zip

I have made a handy tool to browse the Fivewin samples which I want share.
Maybe you like it. At the moment I have about 260 screenshots. But I saw that there are more than 700 sample-prgs.
But I will continue.

1) Unpack the zip-file into the sample folder
2) In samples.dbf the path must look to the fivewin/sample folder.
3) snipk.exe is the exe to browse the samples.

Best regards,
Otto
Image
Last edited by Otto on Sun Oct 18, 2009 7:42 pm, edited 1 time in total.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

Re: Browser for FW sample folder

Post by hag »

OTTO:
Great idea. Years ago fw192 had a program that compiled samples and work great.

I'm having a problem. unziped all in c:\fwh\samples.
executed the snipk.exe the dialog opens. None of the button bmps appear.
Try to run a file and I get on most msg File not found. Only works on one or 2 files.

What am I doing wrong?
Thank you
Harvey
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: Browser for FW sample folder

Post by Otto »

Hello Harvey,

the source code is also included.
Please have a look to:

Code: Select all | Expand

DEFINE BUTTON FILE cPathBMP + "run.bmp"  OF oBar ;
         ACTION  iif(file(winexec(cDirName +  substr(oBrw:aArrayData[oBrw:nArrayAt,1],1,( len(oBrw:aArrayData[oBrw:nArrayAt,1])-4)  )+ ".exe" )),;
         winexec(cDirName +  substr(oBrw:aArrayData[oBrw:nArrayAt,1],1,( len(oBrw:aArrayData[oBrw:nArrayAt,1])-4)  )+ ".exe" ),msginfo("File not found")) ;
         PROMPT "&Run" ;
         TOOLTIP "Run" ;
         MESSAGE "Run"  NOBORDER


“Run” only executes programs which are already compiled.

As I use UeStudio for my work I compile with UeStudio.

Before I had also a function call:

function compile( oBrw )
// winexec("buildx.bat " + substr(oBrw:aArrayData[oBrw:nArrayAt,1],1,( len(oBrw:aArrayData[oBrw:nArrayAt,1])-4) ) )

winexec("buildh.bat " + substr(oBrw:aArrayData[oBrw:nArrayAt,1],1,( len(oBrw:aArrayData [oBrw:nArrayAt,1])-4) ) )

return nil


>None of the button bmps appear.

In the sample.dbf I have "c:\FWH\samples" – first record. Maybe you have a different folder.
The “SamplesPreview” folder must be a subfolder of “samples”.



Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

Re: Browser for FW sample folder

Post by hag »

Otto:

I'll take a look at the program later today.

Have you had a chance to look at the program you downloaded..re: my product
Thank you
Harvey
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: Browser for FW sample folder

Post by Otto »

Hello Harvey,
I will send you an email.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: Browser for FW sample folder

Post by Otto »

http://www.atzwanger-software.com/fw/SamplesPreview1.zip

I uploaded the next 50 screenshots.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Browser for FW sample folder

Post by nageswaragunupudi »

Mr Otto

This is a very nice program
Regards

G. N. Rao.
Hyderabad, India
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: Browser for FW sample folder

Post by Otto »

I uploaded the next 50 screenshots. Now there are 370 screeenshots online.
Best regards,
Otto
http://www.atzwanger-software.com/fw/SamplesPreview2.zip
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: Browser for FW sample folder

Post by Otto »

I uploaded the next 140 screenshots. Now there are 510 screeenshots online.
Best regards,
Otto
http://www.atzwanger-software.com/fw/SamplesPreview3.zip
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
gkuhnert
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands
Contact:

Re: Browser for FW sample folder

Post by gkuhnert »

Otto,

thanks for sharing this nice tool. It's very convenient :D
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: Browser for FW sample folder

Post by Otto »

Fivewin 9.10

I uploaded the next 160 screenshots. Now there are 660 screeenshots online.
More or less all the samples.

Best regards,
Otto
http://www.atzwanger-software.com/fw/SamplesPreview4.zip
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
mmercado
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: Browser for FW sample folder

Post by mmercado »

Dear Otto:
Otto wrote:I uploaded the next 160 screenshots. Now there are 660 screeenshots online.
More or less all the samples.

Great work, thanks a lot, I use your code sniper program from the begining.

Best regards.
manuelmercado at prodigy dot net dot mx
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: Browser for FW sample folder

Post by Otto »

Hello Manuel,
thank you for your kind words.
Good to know that snipkeeper is of some help for you. I use your great work “TSBUTTON” so much.

May I take the opportunity to ask for your help:

@ 88,697 BITMAP oBmp FILENAME cPathBMP + "snipkeeper.bmp" OF oWnd ;
SIZE 580,300 PIXEL SCROLL ADJUST

I show the screenshots with the adjust clause. But it would be better only to adjust if the screenshot is larger than the place reserved on the screen to show it.
How could I check for the size and only adjust it necessary?
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Browser for FW sample folder

Post by HunterEC »

Otto:

Great work ! Kudos ! It would be nice if Antonio provide us with some sort of make utility or batch file to compile all samples. I think this will reduce unnecessary posting. 8)
User avatar
mmercado
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: Browser for FW sample folder

Post by mmercado »

Dear Otto:
Otto wrote:I show the screenshots with the adjust clause. But it would be better only to adjust if the screenshot is larger than the place reserved on the screen to show it.
How could I check for the size and only adjust it necessary?

The functions to get the sizes of bitmaps are:

nBmpWidth( oBmp:hBitmap ) // bitmap's width
nBmpHeight( oBmp:hBitmap ) // bitmap's height

I was trying with a function that may do the job (not fully tested)

Code: Select all | Expand

Function AdjustBmp( oBmp )

   Local nAdj, nNewH, ;
         nWidth  := nBmpWidth( oBmp:hBitMap ), ;
         nHeight := nBmpHeight( oBmp:hBitMap )

   nAdj := 1 + ( nWidth / 450 )
   nNewH := nHeight * nAdj

   While nNewH > 300
      nAdj -= .01
      nNewH := nHeight * nAdj
   EndDo

   nWidth  *= nAdj
   nHeight *= nAdj
   oBmp:SetSize( nWidth, nHeight, .T. )

Return Nil
This function could be inserted in your bChange code block.

Another suggestion, in the main window of your program, remove the space for the directory selection (putting it in tools tab) and increase the space for the snapshot and the code viewer.

Best regards.
manuelmercado at prodigy dot net dot mx
Post Reply