How To create a DashBoard

User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: How To create a DashBoard

Post by Silvio.Falconi »

but you can use ...
Image

Layout class of Daniel
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How To create a DashBoard

Post by cnavarro »

No
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Re: How To create a DashBoard

Post by MOISES »

Great!!.

Any estimated date?, thanks
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: How To create a DashBoard

Post by vilian »

Publish and we will help you to try !
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How To create a DashBoard

Post by cnavarro »

In next version of Fivewin ( 19.04 )
First version of new class TDockPnel

------------------------ DOCUMENTATION AND SAMPLES -----------------------------------------------------------

http://wiki.fivetechsoft.com/doku.php?i ... _tdockpnel
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: How To create a DashBoard

Post by RAMESHBABU »

Hi Cristobal,

Your TDocpanel Class seem to be very interesting and will add a great value
to our FiveWin Library.

I wish that you will be able to publish it in forth coming 19.04 Version.

-Ramesh Babu
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How To create a DashBoard

Post by cnavarro »

RAMESHBABU wrote:Hi Cristobal,

Your TDocpanel Class seem to be very interesting and will add a great value
to our FiveWin Library.

I wish that you will be able to publish it in forth coming 19.04 Version.

-Ramesh Babu
Dear Ramesh
Thank you for your words
The idea is that users can build different dockpanels, generating a library so that they can be reused at any time in the same application or in a different one, as well as being able to share with other users the dock that we build.

Sample of dock with control SourceEdit

Code: Select all


Function DockEdit( oWindow, n, m )

   oDock  := TDockPnel():New( oWindow )
   WITH OBJECT oDock
      :SetHeightCaption( 40 )
      :SetCoors( { | o | XEval( o:oWnd:aControls[ n ]:nBottom + 10, o ) }, ;
                 { | o | XEval( o:oWnd:aControls[ n ]:nLeft, o ) }, ;
                 { | o | XEval( o:oWnd:aControls[ m ]:nBottom, o ) }, ;
                 { | o | Int( o:oWnd:nWidth / 3 ) + XEval( o:nLeft, o ) - 38 } )
      :SetCaption( { | o | "Title DockPanel + SourcEdit" } )
      :SetBorderSize( 1 )
      :SetColors( CLR_WHITE, METRO_STEEL, METRO_TEAL, CLR_BLUE )
      :nClrPaneT   := CLR_WHITE
      :SetFont( oFont4 )
      :SetImgsFiles( { { "..\bitmaps\16x16\max.bmp", , } } )
      :SetCtrlsPnel( { | o, nT, nL, nH, nW, oB, cT | cT := MemoRead( "\fwh\samples\alert.prg" ), ;
                        oB := SourceEdit( cT, , Rgb( 255, 255, 234 ), ;
                        nT, nL, nH, nW, , , ;
                        , .F., o, .F., , 519, , -10, .F., , .T., .F., ;
                        , nil, "FixedSys" ) } )
      :Activate()
   END
Return oDock

 
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: How To create a DashBoard

Post by RAMESHBABU »

Hi Cristobal,

Thanks for explaining the scope of TDocPanel with sample Code to under stand by us.

I am in dire need of a Class to manage the Dashboard. I tried different techniques. But
I found that Your TDocPanel is the one, which will suite to my requirement.

I am one of the members of the FiveWin Forum eagerly waiting for its publication.

-Ramesh Babu
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How To create a DashBoard

Post by cnavarro »

Look

Image
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: How To create a DashBoard

Post by vilian »

It's really impressive! Waiting anxiously!
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
joseluisysturiz
Posts: 2024
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela
Contact:

Re: How To create a DashBoard

Post by joseluisysturiz »

cnavarro wrote:Look

Image
Saludos...y la imagen..? :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How To create a DashBoard

Post by cnavarro »

Jose Luis, if you monitor is 1366, please press right button of mouse over image and select "Open in new Tab"
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How To create a DashBoard

Post by cnavarro »

Updated
New method with predefined styles

http://wiki.fivetechsoft.com/doku.php?i ... nel#styles

If any user creates a design and decides to send it to me, it will be added to the method
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: How To create a DashBoard

Post by Silvio.Falconi »

Cristobal,
When I asked a dashboard last year

http://forums.fivetechsupport.com/viewt ... rd#p201205


I mean this

Image



As you can see there only 3 area

an big image
a text
a button (...)

the text can be normal text or underline ( urlink) then there are button as html button and on delphi use a particular text as our FileGTF

and I made also a small test to simulate what I wanted
On original I saw on delphi the text is as html and can be modify
each section can be hide or show

Code: Select all

#include "fivewin.ch"
#include "constant.ch"


Function test()
Local oDlg,oPanel
Local aItems

ctesto1:="Quest'area è una 'bacheca virtuale' dove appuntare ed avere sempre visibili le informazioni più comuni ed utili, quali le coordinate bancarie dell'azienda, i numeri telefonici dei dipendenti, i numeri telefonici dei fornitori per le emergenze, link internet interessanti, etc."
ctesto2:="10/07/2017 - Effettuare controllo periodico merce.. dal cliente Amici a 4 zampe.  (fatto?)" +CRLF+;
         "12/07/2017 - Effettuare controllo periodico merce.. dal cliente Autoscuola Predosa  (fatto?)   " +CRLF+;
         "04/08/2017 - Effettuare controllo periodico merce.. dal cliente Studio Legale Sesia.  (fatto?) " +CRLF+;
         "04/10/2017 - Effettuare controllo periodico merce.. dal cliente Ocean Blu Bar.  (fatto?)   " +CRLF+;
         "28/10/2017 - Il cliente Viaggiare.com deve rendere 3 pz di prodotto non conforme.  (fatto?) " +CRLF+;
         "13/12/2017 - Appuntamento c/o cliente Viaggiare.com per preventivo nuova apertura sede.  (fatto?)  " +CRLF+;
         "31/03/2018 - Verifica trimestrale magazzino  (fatto?) " +CRLF+;
         "30/04/2018 - Effettuare intervento di manutenzione posizionamento fori passacavi dal cliente:Boccieri Maria Cristina.  (fatto?)" +CRLF+;
         "09/05/2018 - Eseguire lavoro di inserimento fori passacavi al cliente...Ceramiche Italiane  (fatto?) " +CRLF+;
         "30/06/2018 - Verifica trimestrale magazzino  (fatto?)   " +CRLF+;
         "02/08/2018 - Effettuare controllo periodico merce.. dal cliente L'Arte di abitare  (fatto?)  " +CRLF+;
         "04/08/2018 - Effettuare controllo periodico merce.. dal cliente Arcò Studio Associato  (fatto?)  " +CRLF+;
         "30/09/2018 - Verifica trimestrale magazzino  (fatto?) " +CRLF+;
         "31/12/2018 - Inventario magazzino  (fatto?)"


aItems:={;
{'1.bmp',ctesto1,.t.},;
{'2.bmp',ctesto2,.t.},;
{'3.bmp','testo tre',.t.},;
{'4.bmp','testo quattro',.t.}}

DEFINE DIALOG oDlg SIZE 600,620 PIXEL

 oDlg:nStyle    = nOR( WS_CHILD, WS_BORDER, WS_VISIBLE,WS_POPUP )


ACTIVATE DIALOG oDlg  CENTERED       ;
ON INIT ( oPanel := CreaPanel( oDlg ,aItems),oPanel:checkresize() )
Return  NIL
//----------------------------------------------------------------------//
Function CreaPanel(oWnd,aItems)
Local oPanel
Local aBtn:= array(len(aItems))
Local nRow:=1
Local nCol :=1
Local nNumero:= 1
Local n
Local cCursor:= TCursor():New(,'HAND')

oPanel:= TScrollPanel():New(1,1,oWnd:nbottom-10,oWnd:nWidth-10,oWnd, .t.)

For n= 1 to Len(aItems)
   @ nRow,nCol BTNBMP aBtn[n]  ;
         OF oPanel SIZE oPanel:nWidth-20,120   ;
         PROMPT  space(50) + aItems[n][2] RIGHT ;
         NOBORDER    ;
         FLAT
         @ 1,2  BTNBMP FILENAME aItems[n][1] of  aBtn[n] SIZE 100,100   NOBORDER  FLAT
         aBtn[n]:ocursor := cCursor

 nNumero++
     nRow+=120+5
     nCol:=1
     nNumero=0

Next n

 oPanel:SetRange()
   Return oPanel
//----------------------------------------------------------------------//
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How To create a DashBoard

Post by cnavarro »

Very pretty
I think you can also do it (in future versions)
But, I understand DashBoard in another way. Please look for images of DashBoard with google, or the image that the companion Villian put in the first post of this thread.
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Post Reply