I ran into the same issues and, as far as I could find out, UEFI provides
nothing for user interface except the ability to transfer a pixel buffer to
the screen.  HII and VFR aren't user interface, they are just underlying
structures that a user interface can be built upon.  I ended up writing my
own GUI framework and now I have a nice mouse and buttons and scrollbars
and pretty fonts, but I had to do it all from scratch.  I wrote a couple
layout managers to take care of resizing and different screen resolutions.
 A constraint layout (google GWT LayoutPanel) and list layout can do almost
any kind of layout you want.  I also found very little image support and
ended up writing some tools that convert png and bmp images into source
files that compile into my UEFI application.  I've only done one UEFI
application so far, but I built the GUI framework as a driver so it can be
used for other stuff later on.

Well, that's how I did it.  Hope it helps.  If anyone knows a better way,
I'm interested also.

Thomas Rognon


On Tue, Mar 12, 2013 at 6:23 AM, Rafael Machado <
[email protected]> wrote:

> Hi Everyone
>
> After some research I did a sample application that loads a bmp image on
> the screen using GOP. But now I have another question.
> Some days ago someone send an e-mail to the group asking about resize vfr
> fonts, and this person told that he was able to resize images, but not the
> texts.
> This confused me.
> Since vfr is just a simple text way of creating forms, how can this person
> load images and even resize them ?
> I'm asking this because resize is an problem that I'll have in future with
> my application, because of all possible screen resolution we have today.
> Considering the possibility of loading images in a vfr form, is it
> possible to enable mouse interaction in these forms ? So I can load an
> image with a button and detect when the button area was clicked. Is it
> possible to do that or do I need to use GOP and develop my own mouse cursor
> as I'm doing now ?
>
> Thanks for the help guys.
> Rafael R. Machado
>
>
> 2013/3/2 Rafael Machado <[email protected]>
>
>> Thanks okosmynin, Laurie and Andrew.
>> I'll study a little more about what you said.
>>
>> Att.
>> Rafael R. machado
>>
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to