Re: Don't use full display / Spare a little border

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On 12/16/2009 11:32 AM, David S wrote:
Hi,

Maybe this Group isn't the correct.

I use an TI-OMAP3530 (with Board Support Package from BSquare) and it works good.

On our hardware design we use a display with 800x480px. This display is Landscape (We want to use this display later in Portrait mode) and has a bigger border for the backlight LEDs on the lower side. Our device is in small size, so the border for the LEDs is masked by the box. For design reasons the opposite side of the display is masked too, so the display is cut a little bit (30 lines) on the upper side.
In the device driver for display I can set the timing parameters for front and back porches, so I have added a higher timing for the porch instead of the pix data. This generally works, so Windows only use the small area of the display. But the display doubles the very last line for the spared area. So I have the typical windows gray of the taskbar (other side) in the area I want to spare... This is a problem, because the "box" (actual it is the panel for the touch) is black but don't cover the display with 100%, I can see a little bit the gray pixs due to transparency.
Is there a better solution to "cut" the display, i.e. Windows paint the remaining pixels black? After I rotate the screen, this spared area will be the right border...

You can handle this in your video driver (adding an offset to the memory area used by the system as "video memory" and configuring the "stride" of your display (the size in bytes of a row of pixel that may not be equal to the exact size of a row calculated by simply multiplying the number of pixels by the bit per pixels).

A platform independent solution requires a customization of Window CE UI (supported by GWES) to implement your own version of the NonClientView_t::BoundingRect function, forcing a different size for top-level windows and leaving them out of the non-visible area.
There is an (old) article from Mike Hall and Steve Mailled about this topic on MSDN:
http://msdn.microsoft.com/en-us/library/aa459146.aspx

--
Valter Minute (eMVP)
Training, support and development for Windows CE:
www.fortechembeddedlabs.it
My embedded programming and cooking blog:
www.geekswithblogs.net/WindowsEmbeddedCookbook
Windows Embedded support forums in Italian:
http://social.msdn.microsoft.com/Forums/it-IT/windowsembeddedit/threads
(the reply address of this message is invalid)
.



Relevant Pages

  • Re: Problem with slower startup of XP windows SP3
    ... Help and Support for details. ... The Panda Anti-virus Service has started successfully. ... The Windows Security Center Service has started. ... The local computer may not have the necessary registry information or message ...
    (microsoft.public.windowsxp.general)
  • Re: Problem with slower startup of XP windows SP3
    ... Event Viewer reports renders interpretation infinitely more difficult. ... see Help and Support Center at ... "Event Viewer in windows: ... Log on as an user with administrative rights and open Internet Explorer ...
    (microsoft.public.windowsxp.general)
  • Re: SP3 potential problem
    ... Where did you download the ATI drivers from? ... Select Start, Help and Support, Keep your Windows up- to-date with Windows Update, Review your Update History you can see the update. ... I have not been able to download Net Framework ...
    (microsoft.public.windowsxp.basics)
  • Re: OT: Arun Kishan
    ... The Windows ... In my experience the amount of necessary daily support is ... On VMS and unix, number of users on system is typically>1. ... Support person = ceil (1/(1 WEENDOZE user)) * WEENDOZE boxes. ...
    (comp.os.vms)
  • Re: older games dont work
    ... the support of my work have it and will burn a CD to me. ... and any other tips to make this game works will be great. ... Windows 95 including but not limited to: ... to map a pedal as a control ...
    (microsoft.public.windowsxp.games)