Metro Class on notebooks

LordJonas
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Metro Class on notebooks

Post by LordJonas »

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 ... res/r14755

Any idea why this is happening?

TIA
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Metro Class on notebooks

Post by James Bott »

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
LordJonas
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

Post by LordJonas »

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.
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Metro Class on notebooks

Post by James Bott »

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
User avatar
Biel EA6DD
Posts: 680
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca
Contact:

Re: Metro Class on notebooks

Post by Biel EA6DD »

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: Select all


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 ::oWnd:End()*/ //Biel

return nil

 
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Metro Class on notebooks

Post by Antonio Linares »

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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Metro Class on notebooks

Post by James Bott »

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
LordJonas
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

Post by LordJonas »

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...
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Metro Class on notebooks

Post by TimStone »

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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
LordJonas
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

Post by LordJonas »

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$...
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Metro Class on notebooks

Post by TimStone »

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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Metro Class on notebooks

Post by Antonio Linares »

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

To me its the best Windows
regards, saludos

Antonio Linares
www.fivetechsoft.com
LordJonas
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

Post by LordJonas »

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....
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Metro Class on notebooks

Post by cnavarro »

C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
LordJonas
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

Post by LordJonas »

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

What files must include into my project?
Post Reply