FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How To create a DashBoard
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: How To create a DashBoard
Posted: Wed Apr 17, 2019 08:29 PM
but you can use ...


Layout class of Daniel
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How To create a DashBoard
Posted: Wed Apr 17, 2019 08:47 PM

No

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Re: How To create a DashBoard
Posted: Thu Apr 18, 2019 05:05 PM

Great!!.

Any estimated date?, thanks

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: How To create a DashBoard
Posted: Thu Apr 18, 2019 05:10 PM

Publish and we will help you to try !

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Bel茅m-Pa-Brazil
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How To create a DashBoard
Posted: Wed May 08, 2019 07:19 PM
In next version of Fivewin ( 19.04 )
First version of new class TDockPnel

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

http://wiki.fivetechsoft.com/doku.php?i ... _tdockpnel
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: How To create a DashBoard
Posted: Thu May 09, 2019 12:35 AM

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

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How To create a DashBoard
Posted: Thu May 09, 2019 09:35 AM
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 (fw): Select all Collapse
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
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: How To create a DashBoard
Posted: Thu May 09, 2019 10:10 AM

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

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How To create a DashBoard
Posted: Thu May 09, 2019 10:22 AM
Look

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: How To create a DashBoard
Posted: Thu May 09, 2019 10:52 AM

It's really impressive! Waiting anxiously!

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Bel茅m-Pa-Brazil
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: How To create a DashBoard
Posted: Thu May 09, 2019 06:15 PM
cnavarro wrote:Look



Saludos...y la imagen..? :-)
Dios no est谩 muerto...



Gracias a mi Dios ante todo!
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How To create a DashBoard
Posted: Thu May 09, 2019 06:33 PM

Jose Luis, if you monitor is 1366, please press right button of mouse over image and select "Open in new Tab"

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How To create a DashBoard
Posted: Thu May 09, 2019 08:07 PM

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

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: How To create a DashBoard
Posted: Fri May 10, 2019 10:28 AM
Cristobal,
When I asked a dashboard last year

viewtopic.php?f=3&t=34005&p=201214&hilit=dashboard#p201205


I mean this





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 (fw): Select all Collapse
#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
//----------------------------------------------------------------------//
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How To create a DashBoard
Posted: Fri May 10, 2019 01:08 PM

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.

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces