There were controls for "metro style" apps built for FWH, and Otto has done his whole application that way.
I was considering modifying a small app that interacts with my primary database, and making it metro style for use on a tablet. I'd love to see some more samples of how this has been done, and specifically:
tabs ( folders )
menu bar
dialogs on folder pages
xbrowse implementation
edit fields
The samples shown seem to only create a initial start screen simulation.
I've seen videos of Otto's completed work, but don't see any samples of "how to get there".
Thanks.
Tim
Metro Samples
- TimStone
- Posts: 2967
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 5 times
- Contact:
Metro Samples
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
- Antonio Linares
- Site Admin
- Posts: 42775
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 116 times
- Been thanked: 109 times
- Contact:
Re: Metro Samples
Tim,
Here you have some examples as a kind of tutorial. Do you plan to use the Metro alike menu too ?
Metro3.prg

Here you have some examples as a kind of tutorial. Do you plan to use the Metro alike menu too ?
Metro3.prg
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oWnd, oFont
DEFINE FONT oFont NAME "Segoe UI" SIZE 0, -50
DEFINE WINDOW oWnd STYLE nOr( WS_POPUP, WS_VISIBLE ) ;
COLOR CLR_BLACK, CLR_BLUE
@ 5, 15 SAY "Modern UI Style" OF oWnd FONT oFont COLOR "W/B" SIZE 400, 300
ACTIVATE WINDOW oWnd MAXIMIZED ;
ON CLICK oWnd:End()
oFont:End()
return nil

- Antonio Linares
- Site Admin
- Posts: 42775
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 116 times
- Been thanked: 109 times
- Contact:
Re: Metro Samples
A dialog box with Modern UI Style:

Code: Select all | Expand
#include "FiveWin.ch"
#define CLR_DIALOGS RGB( 123, 140, 223 )
function Main()
local oDlg, oFont
DEFINE FONT oFont NAME "Segoe UI" SIZE 0, -50
DEFINE DIALOG oDlg SIZE ScreenWidth(), ScreenHeight() + 100 ;
STYLE nOr( WS_CHILD, WS_POPUP ) ;
COLOR CLR_WHITE, CLR_DIALOGS
@ 3, 10 SAY "I am a dialog" OF oDlg FONT oFont COLOR CLR_WHITE, CLR_DIALOGS SIZE 400, 200
ACTIVATE DIALOG oDlg CENTERED ;
ON CLICK oDlg:End()
return nil

- TimStone
- Posts: 2967
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 5 times
- Contact:
Re: Metro Samples
Antonio,
I want to modify a segment of my major application for use on a tablet ( touch ) computer. It is important to reduce "chrome" and focus on maximizing the screen real estate.
This is to prepare and edit invoices.
Currently, there is a primary dialog, and multiple folders. The main dialog has a button bar, and each folder has its own button bars. Folders typically have data entry fields, and an xbrowse. As you move up or down the xbrowse, the highlighted record can be edited in the upper half.
I either need four tabs, each with its own data display, or I need to create a panorama with each panel having its own data display. Tabs is likely faster.
The button bars can be replaced with a Modern Style top menu. I could probably use a small ribbon bar on the various tabs ( folders ).
Tim
I want to modify a segment of my major application for use on a tablet ( touch ) computer. It is important to reduce "chrome" and focus on maximizing the screen real estate.
This is to prepare and edit invoices.
Currently, there is a primary dialog, and multiple folders. The main dialog has a button bar, and each folder has its own button bars. Folders typically have data entry fields, and an xbrowse. As you move up or down the xbrowse, the highlighted record can be edited in the upper half.
I either need four tabs, each with its own data display, or I need to create a panorama with each panel having its own data display. Tabs is likely faster.
The button bars can be replaced with a Modern Style top menu. I could probably use a small ribbon bar on the various tabs ( folders ).
Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
- Antonio Linares
- Site Admin
- Posts: 42775
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 116 times
- Been thanked: 109 times
- Contact:
Re: Metro Samples
Tim,
Could you please post a screenshot of the screen that you want to give the modern UI look to ? thanks
Could you please post a screenshot of the screen that you want to give the modern UI look to ? thanks
- TimStone
- Posts: 2967
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 5 times
- Contact:
Re: Metro Samples
The main screen, tab 1 ( General ):

Tab 2 ( Parts )


Tab 2 ( Parts )

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
- Silvio.Falconi
- Posts: 7238
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 16 times
Re: Metro Samples
Antonio Linares wrote:A dialog box with Modern UI Style:Code: Select all | Expand
#include "FiveWin.ch"
#define CLR_DIALOGS RGB( 123, 140, 223 )
function Main()
local oDlg, oFont
DEFINE FONT oFont NAME "Segoe UI" SIZE 0, -50
DEFINE DIALOG oDlg SIZE ScreenWidth(), ScreenHeight() + 100 ;
STYLE nOr( WS_CHILD, WS_POPUP ) ;
COLOR CLR_WHITE, CLR_DIALOGS
@ 3, 10 SAY "I am a dialog" OF oDlg FONT oFont COLOR CLR_WHITE, CLR_DIALOGS SIZE 400, 200
ACTIVATE DIALOG oDlg CENTERED ;
ON CLICK oDlg:End()
return nil
Antonio,
is possible have a test sample of a metro panel into a dialog with button like windows 8 as this

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
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
- Antonio Linares
- Site Admin
- Posts: 42775
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 116 times
- Been thanked: 109 times
- Contact:
Re: Metro Samples
Tim,
In FWH\samples\touch.prg function AddCompany() you have a complete example of how to implement a folder:

In FWH\samples\touch.prg function AddCompany() you have a complete example of how to implement a folder:
