PC Review


Reply
Thread Tools Rate Thread

making adjustment for the start bar on the side of the screen

 
 
Southern at Heart
Guest
Posts: n/a
 
      30th Nov 2009
I want my 2 windows to be tiled vertically.
Window1 is on the left and needs 25% of the screen
Window2 is on the right and needs 75% of the screen
I've done this with something like the code below, but this doesn't take
into account if the user has the start bar on the side. Is there a way to
tell if it is, and how many pixels it's taking up?
thanks, southernatheart

lngHorizontal = System.HorizontalResolution
lngVertical = System.VerticalResolution
'RESIZE THE EXISTING DOCUMENT
Application.WindowState = wdWindowStateNormal
Application.Move Left:=0.2 * lngHorizontal, Top:=0 'Resize the page
Application.Resize Width:=(lngHorizontal * 0.55), Height:=lngVertical * 0.72
ActiveDocument.Save
 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      30th Nov 2009
"Southern at Heart" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>I want my 2 windows to be tiled vertically.
> Window1 is on the left and needs 25% of the screen
> Window2 is on the right and needs 75% of the screen
> I've done this with something like the code below, but this doesn't take
> into account if the user has the start bar on the side. Is there a way to
> tell if it is, and how many pixels it's taking up?
> thanks, southernatheart
>
> lngHorizontal = System.HorizontalResolution
> lngVertical = System.VerticalResolution
> 'RESIZE THE EXISTING DOCUMENT
> Application.WindowState = wdWindowStateNormal
> Application.Move Left:=0.2 * lngHorizontal, Top:=0 'Resize the page
> Application.Resize Width:=(lngHorizontal * 0.55), Height:=lngVertical *
> 0.72
> ActiveDocument.Save



I think maybe this question is not about programming Microsoft Access, which
is the focus of this newsgroup. Is it Word, perhaps? If so, you would do
better to post in <microsoft.public.word.programming>.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 Menu Bar moved to the right side (side bar) RICnoK Microsoft Outlook Discussion 2 17th Jun 2009 04:31 PM
The Outlook 2007 'To Do Bar' suddenly moved to the right hand side ofthe screen, how do I get it back to the left hand side? Bradley Burton Microsoft Outlook Discussion 5 19th Jan 2008 04:14 PM
Using Side-by-Side Calendars, would like side-by-side DAYS Matt Landis Microsoft Outlook Calendar 6 19th Mar 2004 10:49 AM
Side by Side Bar chart with stacked bar Tom Microsoft Excel Charting 1 29th Aug 2003 07:44 PM
Making side by side tables match size Mike Microsoft Frontpage 0 4th Jul 2003 12:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:59 PM.