Metro Class on notebooks

Metro Class on notebooks

Postby LordJonas » Mon Jul 27, 2015 7: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
LordJonas
 
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

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

Re: Metro Class on notebooks

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

Re: Metro Class on notebooks

Postby James Bott » Tue Jul 28, 2015 3: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Metro Class on notebooks

Postby Biel EA6DD » Tue Jul 28, 2015 7: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: Select all  Expand view


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

Re: Metro Class on notebooks

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Metro Class on notebooks

Postby James Bott » Tue Jul 28, 2015 2: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Metro Class on notebooks

Postby LordJonas » Thu Jul 30, 2015 9: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...
LordJonas
 
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

Postby TimStone » Thu Jul 30, 2015 9: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Metro Class on notebooks

Postby LordJonas » Thu Jul 30, 2015 9: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$...
LordJonas
 
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

Postby TimStone » Thu Jul 30, 2015 9: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Metro Class on notebooks

Postby Antonio Linares » Thu Jul 30, 2015 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Metro Class on notebooks

Postby LordJonas » Thu Jul 30, 2015 9: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....
LordJonas
 
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Re: Metro Class on notebooks

Postby cnavarro » Thu Jul 30, 2015 9:59 pm

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

Re: Metro Class on notebooks

Postby LordJonas » Sun Aug 02, 2015 1:16 am

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

What files must include into my project?
LordJonas
 
Posts: 35
Joined: Wed Jun 30, 2010 8:04 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 44 guests