FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Metro interface questions
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM

Metro interface questions

Posted: Fri May 10, 2013 07: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


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


Alignment is ok in this resolution

Thanks for clarification,

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM

Re: Metro interface questions

Posted: Fri May 10, 2013 08: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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Metro interface questions

Posted: Fri May 10, 2013 04: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
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion