1. Screen dimensions

Am using wxEuphoria and under win7. Would like to find the location of the taskbar.

Have studied get_sys_metric( ), but not there. Nor is it given by get_display_size().

Buzzo

new topic     » topic index » view message » categorize

2. Re: Screen dimensions

Have determined my best solution is to use

 
show_fullscreen ( WinFrame, 1, wxFULLSCREEN_NOCAPTION  ) 
 
new topic     » goto parent     » topic index » view message » categorize

3. Re: Screen dimensions

buzzo said...

Am using wxEuphoria and under win7. Would like to find the location of the taskbar.

Have studied get_sys_metric( ), but not there. Nor is it given by get_display_size().

Given the cross-platform nature of wxWidgets, I would say this is not easily accomplished. The definition of the "taskbar" on any platform is a moving target.

  • Windows has a single task bar that can be moved to any edge of the screen.

    • Windows 8 extends the taskbar to additional monitors.
    • Software can create additional "app bars" that dock like the taskbar.
  • Linux has many different window managers, each with their own taskbar-like features.

    • GNOME generally has two bars: one on top for menus and system tray, and one on bottom for task windows.
    • KDE generally has one bar on bottom, like Windows.
    • Xfce and LXDE generally have one bar on bottom, but additional bars can be created by the user.
  • Mac OS X has a menu bar on top and an app dock at the bottom.

    • wxEuphoria does not support Mac OS X but it will eventually (both Euphoria and wxWidgets support OS X, so why not?)

The only current interaction available is through the wxTaskBarIcon class. The current development version of wxWidgets (version 3.1.0) adds a new wxTaskBarButton class that provides fancy features like thumbnails and notifications. This will make its way into wxEuphoria eventually as well.

-Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: Screen dimensions

Thanks Greg... the fullscreen solution works ok for now.. a click on the resizer fixes it for my needs.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Screen dimensions

This code will place the full size screen properly relative to the taskbar.. regardless of its' location.

-- code 
WinFrame = create( wxFrame, {0, -1,  "Program Name",  1, 1, winWidth, winHeight, wxDEFAULT_FRAME_STYLE + wxMAXIMIZE } ) 
-- code  
show_fullscreen ( WinFrame, 0, 1) 
wxMain( WinFrame ) 
 

using wxMAXIMIZE did the trick for my needs

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu