FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Metro Class on notebooks
Posts: 35
Joined: Wed Jun 30, 2010 08:04 PM
Metro Class on notebooks
Posted: Mon Jul 27, 2015 07:48 PM
Hi...

I'm written an application to be installed in a notebook. I'm also developping the application and testing in my old notebook.

Just on the first time i've tested the program i'm confronted with the strange situation that the application does not fit into the correct screen resolution. I'm screen resolution is 1024x768x32bits... and the application executes like it's 1200x1024 or something bigger...

https://www.flickr.com/photos/133346645@N06/shares/r14755

Any idea why this is happening?

TIA
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Metro Class on notebooks
Posted: Mon Jul 27, 2015 11:12 PM

I don't think we have enough information to answer your question.

Is your picture of a demo program that was included in FWH? If so, which one?

Are you trying to emulate the Win 8x OS's screen on a non-Win 8 version of Windows?

If you are trying to develop an app for running under Win 8, then you don't need to develop that screen, you just need to develop an interface that follows the Win 8x design guidelines provided by Microsoft.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 35
Joined: Wed Jun 30, 2010 08:04 PM
Re: Metro Class on notebooks
Posted: Mon Jul 27, 2015 11:50 PM

Well, isn't a sample from fwh itself by the code is based upon one...

It's running under XP, by it's suppose to work like 8, right?

I'll try to run it on Windows 7 to check fro this issue.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Metro Class on notebooks
Posted: Tue Jul 28, 2015 03:44 AM
Well, isn't a sample from fwh itself by the code is based upon one...


Well, it appears what is wrong is the placement of the text in the upper right. You will have to code it so it is a certain distance in from the right edge, not from the left edge. You can use the ScreenWidth() function to find the width of the screen.

It's running under XP, by it's suppose to work like 8, right?


Well, it looks like Win 8, but not a Win 8 app. I don't really see the need to emulate the OS. If you are writing an app, then it should look like a Win 8 app.

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
Re: Metro Class on notebooks
Posted: Tue Jul 28, 2015 07:21 AM
Like James told you, the problem is in the text placement. Here you have a modified method with text is left adjusted depending of the ScreenWidth
Code (fw): Select all Collapse
METHOD Activate() CLASS TMetro

   ACTIVATE WINDOW ::oWnd MAXIMIZED ;
      ON PAINT ( DrawBitmap( hDC, ::hBitmap, 0, 0, GetSysMetrics( 0 ), GetSysMetrics( 1 ) ),;
                 ::oWnd:Say( 3, 16, ::cTitle,,, ::oFont,, .T. ),;
                 ::oWnd:Say( 40, ScreenWidth()-400, OemToAnsi(CDoW( Date() )),,, ::oFont,.t., .T. ),;
                 ::oWnd:Say( 120, ScreenWidth()-400, AllTrim( Str( Day( Date() ) ) )+" de " + CMonth( Date() ) ,,, ::oFont,.T., .T. ) )
                 /*;
      ON CLICK ::End()*/ //Biel

return nil
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Metro Class on notebooks
Posted: Tue Jul 28, 2015 10:55 AM

JFS,

If you could provide a small example (PRG) of what you are doing, to test it here, it will help us to solve it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Metro Class on notebooks
Posted: Tue Jul 28, 2015 02:29 PM

To get you started on Win 8 app development, here are some sample Win 8 app designs:

http://www.codeproject.com/Articles/616 ... Store-Apps

And here is a short tutorial on Win 8 UI development:

http://blogs.msdn.com/b/christinemathen ... esign.aspx

And, of course, you are going to have to keep in mind the varying screen sizes your users will have.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 35
Joined: Wed Jun 30, 2010 08:04 PM
Re: Metro Class on notebooks
Posted: Thu Jul 30, 2015 09:13 PM

Thanks for the sugestion Biel, but can you tell me how to implement that change??

The idea behind my project is very simple: an application with a look'n'feel of a metro app, a couple of metro buttons to redirect the user to the sub-routines...

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Metro Class on notebooks
Posted: Thu Jul 30, 2015 09:18 PM

Time to start talking Win 10 ... Win 8 is no more ....

Also, there is no such thing as Metro apps ...

Just observing ...

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
Posts: 35
Joined: Wed Jun 30, 2010 08:04 PM
Re: Metro Class on notebooks
Posted: Thu Jul 30, 2015 09:22 PM

Hi Tim...

Nice of you to drop by... In fact is time to star talking about Win10... but there's a lot of 'old' windows style apps to talk too.

Metro apps may not be a correct expression but Metro style (Win 8) is the an idea that seems pretty nice to me. The concept is clean, modern, very clear and not so M$...

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Metro Class on notebooks
Posted: Thu Jul 30, 2015 09:44 PM

Actually Win 10 is because of the huge negative response to Win 8 and the "Metro" idea.

There has been a TON of research performed on what consumers want, and the result can be seen in the native apps and full applications that come with Windows 10. I think people who want to compete should take advantage of all that research, and consider their "styling" choices.

Look at the reviews over the past 24 hours. Those who liked Win 7 ( or XP ), hated Win 8, are in love with Win 10. They are saying "update now". Our clients can move there for FREE in most cases ( except for those on old XP machines ). This is a movement that is happening quickly.

I'd suggest people take a serious look at it, and I think we can achieve a very similar, and clean, interface with FWH. It's just about styling, and we have that already.

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Metro Class on notebooks
Posted: Thu Jul 30, 2015 09:49 PM

I am using Windows 10 10240 and I really like it :-)

To me its the best Windows

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 35
Joined: Wed Jun 30, 2010 08:04 PM
Re: Metro Class on notebooks
Posted: Thu Jul 30, 2015 09:51 PM

It just happens that i've many clients using XP machines because it's stable, it works well and it's enough for the software that they use. Bu there are those that even so want apps with that look'n'feel... and if they want to pay for that....

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Metro Class on notebooks
Posted: Thu Jul 30, 2015 09:59 PM

Maybe you serve help

viewtopic.php?f=17t=28974#p163051

&

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: 35
Joined: Wed Jun 30, 2010 08:04 PM
Re: Metro Class on notebooks
Posted: Sun Aug 02, 2015 01:16 AM

Thanks a lot Cristobal... It look's great the examples.

What files must include into my project?