Metro interface questions

Metro interface questions

Postby Richard Chidiak » Fri May 10, 2013 7:27 am

Good morning

I have some questions concerning the metro interface

1. Metropanel title , how can we center the title ?
2. Metropanel buttons . There is an alignment for the caption text and the bitmap but how can we force the button to be placed in the group

I have prepared an image to show this
Image

on another hand how can we place buttons with different resolutions, in my sample buttons were built for 1024x600 resolution and i have done oMetro:nBtnSize = 110 * OWND:nHorzRes() / 1024

the result is not what i expect , this is an image showing with resolution 1600x900
Image

Alignment is ok in this resolution

Thanks for clarification,

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Metro interface questions

Postby Richard Chidiak » Fri May 10, 2013 8:10 am

For the button alignment on a new row, this can be done with a change to tmetrobtn class and tmetropnl

in tmetrobtn add a data

DATA lnewrow INIT .f. // chidiak

in tmetrobtn in arrange method

for each oBtn in aBtns
if If( oBtn:lLarge, nCol + 1, nCol ) > nCols .OR. oBtn:lnewrow // chidiak
nRow++
nCol := 0
endif
......

The result is ok, buttons are painted in new rows , probably more things to control

Richard[/quote]
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Metro interface questions

Postby James Bott » Fri May 10, 2013 4:44 pm

There are some very specific specifications for Metro style. For example, the font type, font size, text placement, text color (only one color), icon size (30x30 pixels), etc. that we should keep in mind.

http://www.windows8designhandbook.com/understanding-windows-8-live-tiles.html
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 62 guests