Lidwake Set to 0 Has No Effect - Why?

I prefer to set the lidwake setting (via terminal pmset command) to zero so that my Apple portables don't wake up when the lid is raised. In the past, that was just an extra measure of security to keep Powerbooks and MacBooks from accidentally waking when stowed inside a carrying case.
However, doing this seems to make no difference on my MacBook Air. It wakes up when the lid is raised. Following is a list of pmset variables (pmset -g):
Battery Power -1
AC Power -1*
Currently in use:
womp 0
deepsleepdelay 4200
halfdim 0
hibernatefile /var/vm/sleepimage
disksleep 10
sleep 30
hibernatemode 0
displaysleep 10
ttyskeepawake 1
deepsleep 1
acwake 0
lidwake 0
You may notice that the hibernate mode is set to zero. That is intentional. I never leave my computer asleep more than a few hours. I don't want it to go into deep sleep where the RAM contents are written to the SSD because it's unnecessary and having 4 gigs of RAM written to SSD with every hibernation can't help the longevity of the SSD. I know that some people feel otherwise, but that's what I do. It also means I really do have instant wake from sleep because the RAM contents have been preserved at the expense of just a bit of the battery.
But back to the lidwake problem. With a lidwake setting of zero, why does my MBA wake up when the lid is raised? I reset the SMC and PRAM.
Thanks.

I'll chime in that I don't know why lidwake has no effect, but also, if you leave your computer sleeping for over 70 minutes, it will still write RAM contents to disk and shut down because deepsleep is still on. On the Air, I don't believe it ever actually "hibernates" or does "safe sleep" because of the deepsleep functionality.

Similar Messages

  • Widescreen setting in video - tv out has no effect

    after a couple of hours of experimentation, i have concluded that the widescreen setting (on/off) in the tv out section of the video settings has no effect. i believe what it SHOULD do is adjust the signal to display properly on a widescreen (16x9) tv. i believe it does nothing. video displays stretched and squashed (photos too btw). this is after experimenting with the same itunes-purchased and non-itunes purchased videos on both my ipad and my iphone 3gs, using the same tv and the apple component av cable. the iphone works fine. the only way to get a semi-acceptable display on the tv with the ipad is to the set to tv to normal 4x3 display. (late model sony lcd hdtv). then you get thick black bars around the picture. with the iphone i can leave the tv display setting at it's regular "full" option and the picture fills the screen properly. i tried both sd and hd videos on the ipad. (sd only on the iphone obviously). does anyone else have this issue? is there a bug in the ipad software? is there a problem with MY ipad? will a software restore help?
    Message was edited by: Michael Rosenberg

    i tried a fair amount of stuff. here's 2 examples:
    1) itunes store copy of an episode of the office in both hd and sd.
    2) digital copy of the new star trek movie
    so the first is 16x9 and the second is a widescreen movie 2.35-1.
    both look fine when playing back off the iphone 3gs (sd copy of the office). both looked stretched horizontally and squashed vertically when playing off the ipad. note that everything looks fine on the ipad itself. it just messed up when connecting
    the ipad to my tv. in all cases, the widescreen setting in the tv out section of the video panel on the ipad has NO effect.
    i can change the screen settings ON THE TV to fix the distortion but then i end up with thick black bars on all 4 sides. and i don't need to do this with the iphone 3gs. i continue to believe something is wrong with the ipad (or MY ipad).

  • Set bold has no effect

    I have a page with a number of controls among other two
    TextAreas. I need to programmatically set certain parts of text
    bold depending on user interaction with some of the controls on the
    page. This however has no effect when I do it. Using exactly the
    same code inside a selection change handler for the text area where
    I set all the selected text bold works however which makes me think
    it has something to do with the text area not having focus when I
    do it from the place where its not working from. Setting focus to
    it first programmatically however does not solve the problem
    either. Anyone able to provide some insight ?

    After I posted this it struck me to go in look what the
    RichText widget does in
    flex/frameworks/projects/framework/src/mx/controls/RichTextEditor.mxml
    and it turns out the trick is the following lines:
    dispatchEvent(new Event("change"));
    invalidateDisplayList();
    validateDisplayList();
    callLater(setFocus);
    immediately after tinkering with the textformat.

  • Why can't i move pasted selection? the move tool has no effect.

    Why can't i move the pasted selection.  it was cut from another photo and copied to this one.  It was dropped in the middle of the photo but the move tool has no effect on it.
    thankx

    I discovered that I had to be on that layer, click on the recompose tool, then click on a corner to bring up the green check indicator, then click on the center and it would move. In the old program I just clicked onto the move tool and it would move.
    Thanks for responding.

  • Change of Min Pool Size has no effect?

    Hi, we are still using odp 9.2.0.4 on windows server 2003 webserver and oracle database 9i on Sun solaris. Recently we discovered a problem using Min Pool Size = 1, it seems that if new connections are required we sometimes get a connection timeout. So we decided to set Min Pool Size = 30, and on the testserver this works fine. In the odp tracefile (tracelevel=2) you see the 30 connections building up immediately. But on the production server we see no difference, it looks like the (new installed, application pool reset) application still uses the Min Pool Size = 1 setting.
    The connection string is build up in application code. On the testserver it was sufficient to stop and start the website and its application pool, on the production server this has no effect.
    Does anyone have an idea what the problem is??? We also tried restarting the IIS server, that did not help either. In production there are more applications using ODP.
    Regards, Paul.

    What problem are you trying to solve at this point? Simply "why is odp not tracing?" The only suggestions I really have there are
    1) make sure you restart the app after enabling tracing parameters
    2) make sure the directory you've set tracing to is open as far as permissions
    3) make sure you've set tracing in the right registry setting if you have multiple versions of ODP installed
    4) if you're trying to write to c:\ root, try creating and pointing to a different (c:\odptrace for example) directory instead.
    Hope it helps,
    Greg

  • JTabbedPane Java 1.5 setBackground has no effect

    following code has no effect after installing Java 1.5
    Class HistoryFrame extends JFrame
    * <p>Sets the same Background Color for all components.</p>
    * @param c Color
    public void setBackground(Color c) {
    super.setBackground( c );
    if ( tabbedPane != null ) {
    tabbedPane.setBackground( this.getBackground() );
    if ( inputPanel != null ) {
    inputPanel.setBackground( this.getBackground() );
    the JPanel: inputPanel works fine. Only the JTabbedPane remains white. In Version 1.4 it worked.
    thanks for your help
    Dominique

    it doesn't work.
    i want to set the background of the tabbedpane itself, not for the the tabs. At the moment when i set the background there are no tabs around, they are added later after the user has inserted some input. Thats why i get 'ArrayIndexOutOfBoundsException' with setBackgroundAt( null, this.getBackground ).
    i forgot to say that with 1.5.02 it works. Only with 1.5.03 it fails. The background remains white. The Color of the inputPanel (JPanel) works fine.
    Thanks for your help
    Dominique

  • Language Selection in UDI has no effect

    I started
    this topic while ago on ConfMgr forum, but I didn´t get any decent answer, I also found
    this Blog but it doesn´t work for me with MDT 2013
    I have MDT 2013 integration in ConfMgr 2012 R2 and I use MDT based Task Sequence with UDI. If I select any language from UDI page, the selection has no effect. It will be installed as UK. I use native unattended.xml from MDT Settings package.
    Could someone confirm, does it even works or not? Only selection which works from that page, is the GUI language itself since I have integrated Language Packs to my image, but keyboard layout and user locale are always UK.
    I also tried;
    - to set default variables of languages in TS
    - to use simple unattended file done with wism
    - MDT files and settings packages are updated to DP after change 

    Hi , 
    I'm using MDT 2013 (hacked to use UDI deployments without SCCM) and have exactly the same behaviour.
    Did you ever crack this one?
    Why is UN-GB not an optional language pack available in the UDI designer Microsoft!!

  • How can i display a dialog view centerly?set_window_position has no effect

    hi ,all
    i try to open a dialog which is a normal view,
    here is the code i use,
    CALL METHOD cl_wdr_runtime_services=>display_view_in_popup
            EXPORTING
              component             = component
              target_view_name      = 'V_BP_MAIN'
              target_window_name = 'W_BP_MAIN'
         MODAL                 = ABAP_TRUE
               window_title          = ''
               close_button          = abap_true
            IMPORTING
               popup_window          = popup_window
    the first time the window i opened displayed is centered ,but if i open it twice or more
    the window is in the left corner of screen,i tried to use popup_window->set_window_position( position = if_wd_window=>CO_CENTER  ).but it has no effect at all
    can anyone help me out?
    thanks in advance.

    thanks for your answer.
    I did set  the height  and width of rootuielementcontainer of the dialog view .i,e,width:1200,height 700,
    It display pretty well the first time,but when i open it the second time,the dialog view is not centered,so i can't see the whole dialog view,i have to drag it,

  • JFX 2.0 -fx-highlight-text-fill style has no effect

    When I try to set the highlight-text-fill style for a TextBox, it has no effect. The highlight-fill style, however, works as expected.
    public void start(Stage primaryStage) {
        final TextBox tb = new TextBox(100);
        tb.setStyle("-fx-font-size: 3em; -fx-text-fill: #0000ff; -fx-highlight-fill: #00ff00; -fx-highlight-text-fill: #ffffff;");
        final BorderPane root = new BorderPane();
        root.setStyle("-fx-padding: 20;");
        root.setCenter(tb);
        final Scene scene = new Scene(root, 600, 200, Color.BLACK);
        primaryStage.setTitle("JavaFX");
        primaryStage.setScene(scene);
        primaryStage.setVisible(true);
    }But this doesn't seem to be a problem of my custom styles because the default doesn't work either.
    The caspian.css in jfxrt.jar defines a white highlight-text-fill but when selecting the contents of a TextBox, the text color is black.
    Is this an error in caspian.css (maybe the style name is just misspelled) or a current limitation of the beta version?
    Regards,
    Kai

    Thanks David.
    In the meantime I noticed that -fx-prompt-text-fill seems to have the same problem. The prompt text is always gray, no matter which color I set in the style.
    Regards,
    Kai

  • ADF Faces 10.1.3.0.4 - two-digit-year-start has no effect?

    Hi all,
    I have problem with entering date with an af:selectInputDate control:
    the user enters the date and on an onblur event, the adf field
    automatically reformats it:
    10.10.10 ->10.10.2010
    10.10.60 ->10.10.1960
    The user (customer) wants 2 things to change:
    1. if the given two digit year <= actual year (06):
    10.10.06 ->10.10.2006
    otherwise
    10.10.07 ->10.10.1907
    2. by entering a date, adf have to be accept the date without dots too:
    101006 ->10.10.2006
    1.: I tried to set theconfig param: <two-digit-year-start>2006</two-digit-year-start> (or with an EL expression) in the adf-faces-config.xml but it has no effect.
    Is it a totally wrong idea or is it a bug?
    Any other idea?
    2.: Is it possible to solve this problem with a built in control or converter? Or do i have to write my own converter?
    Thanks for any help!

    The exception is gone - I must have had something wrong in my classpath. However, I still see the warnings. Are those warnings expected when using ADF in conjunction with myfaces?

  • Show Details in pagetoolbar-options - property has no effect?

    Hello all
    When I set the property-value in the pageToolBar-iView for the Details it seems to have no effect:
    When I save and preview the whole thing, the option "Details" is still available...
    When I change the options for everything else (Reload, Add to Favourites, ...) it has immediate effect.
    By the way - although I don't want it - I also can't remove the caption/title of the current view in the pageToolBar.
    Any help or explanation is greatly appreciated.
    Regards
    Michael

    Hi Vineeth
    Thanks so far for your reply.
    Of course, this could be due to some server-/proxy-side caching, although I doubt that in my case.
    I already made the same settings on the productive-portal and experience the same behaviour there, which surprises me a little.
    I'll simply wait about a week, maybe the problem will vanish by itself (rather I'll wait for the proxy or any other cache to un-cache it).
    I'll post my experiences.
    Regards
    Michael

  • DHCP_TIMEOUT in /etc/conf.d/netcfg has no effect

    I want to set DHCP_TIMEOUT to 30 for all netcfg profiles. On  this page in wiki it is suggested to set the variable in /etc/conf.d/netcfg. But this has no effect. I tried 'NETCFG_DEBUG="yes" netcfg <arguments>' and the timeout was still 10.
    How can I set DHCP_TIMEOUT for all profiles without editing every profile?

    opt1mus wrote:Could you paste into this thread your /etc/conf.d/netcfg and the debug output. It's easier for people to help with troubleshooting when actual output is to hand.
    Here it is (network names changed):
    # cat /etc/conf.d/netcfg
    # Enable these netcfg profiles at boot time.
    #   - prefix an entry with a '@' to background its startup
    #   - set to 'last' to restore the profiles running at the last shutdown
    #   - set to 'menu' to present a menu (requires the dialog package)
    # Network profiles are found in /etc/network.d
    NETWORKS=(network1 network2)
    # Specify the name of your wired interface for net-auto-wired
    WIRED_INTERFACE="eth0"
    # Specify the name of your wireless interface for net-auto-wireless
    WIRELESS_INTERFACE="wlan0"
    # Array of profiles that may be started by net-auto-wireless.
    # When not specified, all wireless profiles are considered.
    #AUTO_PROFILES=("profile1" "profile2")
    DHCP_TIMEOUT=30
    # NETCFG_DEBUG="yes" netcfg network1
    DEBUG: Loading profile network1
    DEBUG: Configuring interface wlan0
    :: network1 up                                                                                                                                                                          [ BUSY ] DEBUG: status reported to profile_up as:
    DEBUG: Loading profile network1
    DEBUG: Configuring interface wlan0
    DEBUG: wireless_up start_wpa wlan0 /run/network/wpa.wlan0/wpa.conf nl80211,wext
    Successfully initialized wpa_supplicant
    DEBUG: wireless_up Configuration generated at /run/network/wpa.wlan0/wpa.conf
    DEBUG: wireless_up wpa_reconfigure wlan0
    DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant reconfigure
    DEBUG: wireless_up ifup
    DEBUG: wireless_up wpa_check
    DEBUG: Loading profile network1
    DEBUG: Configuring interface wlan0
    DEBUG: ethernet_up bring_interface up wlan0
    DEBUG: ethernet_up dhcpcd -qL -t 10 wlan0
    DEBUG:
    > DHCP IP lease attempt failed.
    DEBUG: Loading profile network1
    DEBUG: Configuring interface wlan0
    DEBUG: Loading profile network1
    DEBUG: Configuring interface wlan0
    DEBUG: ethernet_down bring_interface flush wlan0
    DEBUG: wireless_down stop_wpa wlan0
    DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant terminate
    DEBUG: profile_up connect failed

  • Documentviewer new toolbar button HorizontalAlignment="Right" has no effect?

    Hi all,
    I added a button to the documentviewer toolbar after extracting a copy of the template in Blend. I added a button (closeButton) with an "X" as its content. It works but I want the button to be at the right side of the toolbar. I tried the
    horizontalAlignment property but is has no effect. If I add margin="500,0,0,0" it works. But I don't want to fix it that way. What Am I missing?
    Thanks
    <Style x:Key="myDocumentViewerStyle" BasedOn="{x:Null}" TargetType="{x:Type DocumentViewer}">
    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
    <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    <Setter Property="ContextMenu" Value="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerContextMenu, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}"/>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type DocumentViewer}">
    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Focusable="False">
    <Grid Background="{TemplateBinding Background}" KeyboardNavigation.TabNavigation="Local">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="*"/>
    <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <ContentControl Grid.Column="0" Focusable="{TemplateBinding Focusable}" Grid.Row="0" Style="{DynamicResource myContentControlStyle}" TabIndex="0"/>
    <ScrollViewer x:Name="PART_ContentHost" CanContentScroll="true" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalScrollBarVisibility="Auto" IsTabStop="true" Grid.Row="1" TabIndex="1"/>
    <DockPanel Grid.Row="1">
    <FrameworkElement DockPanel.Dock="Right" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
    <Rectangle Height="10" Visibility="Visible" VerticalAlignment="top">
    <Rectangle.Fill>
    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
    <LinearGradientBrush.GradientStops>
    <GradientStopCollection>
    <GradientStop Color="#66000000" Offset="0"/>
    <GradientStop Color="Transparent" Offset="1"/>
    </GradientStopCollection>
    </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>
    </Rectangle.Fill>
    </Rectangle>
    </DockPanel>
    <ContentControl x:Name="PART_FindToolBarHost" Grid.Column="0" Focusable="{TemplateBinding Focusable}" Grid.Row="2" TabIndex="2"/>
    </Grid>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    <Style x:Key="myContentControlStyle" TargetType="{x:Type ContentControl}">
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type ContentControl}">
    <ToolBar Focusable="{TemplateBinding Focusable}" ToolBarTray.IsLocked="True" Language="en-us" KeyboardNavigation.TabNavigation="Continue" Uid="ToolBar_2">
    <Button x:Name="PrintButton" Background="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerPrintButton, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="ApplicationCommands.Print" IsTabStop="True" Margin="2" Padding="2" Style="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerButtonStyle, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" ToolTipService.ShowOnDisabled="True" TabIndex="0" ToolTip="Print (Ctrl+P)" Uid="Button_14" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="CopyButton" Background="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerCopyButton, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="ApplicationCommands.Copy" IsTabStop="True" Margin="2" Padding="2" Style="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerButtonStyle, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" ToolTipService.ShowOnDisabled="True" TabIndex="1" ToolTip="Copy (Ctrl+C)" Uid="Button_15" VerticalAlignment="Center" Width="24"/>
    <Separator Uid="Separator_110"/>
    <Button x:Name="ZoomInButton" Background="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerZoomInButton, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="NavigationCommands.IncreaseZoom" IsTabStop="True" Margin="2" Padding="2" Style="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerButtonStyle, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" ToolTipService.ShowOnDisabled="True" TabIndex="3" ToolTip="Increase the size of the content (Ctrl +)" Uid="Button_16" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="ZoomOutButton" Background="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerZoomOutButton, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="NavigationCommands.DecreaseZoom" IsTabStop="True" Margin="2" Padding="2" Style="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerButtonStyle, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" ToolTipService.ShowOnDisabled="True" TabIndex="4" ToolTip="Decrease the size of the content (Ctrl -)" Uid="Button_17" VerticalAlignment="Center" Width="24"/>
    <Separator Uid="Separator_111"/>
    <Button x:Name="ActualSizeButton" Background="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerActualSizeButton, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" CommandParameter="100.0" Command="NavigationCommands.Zoom" IsTabStop="True" Margin="2" Padding="2" Style="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerButtonStyle, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" ToolTipService.ShowOnDisabled="True" TabIndex="5" ToolTip="100% (Ctrl+1)" Uid="Button_18" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="PageWidthButton" Background="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerPageWidthButton, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="DocumentViewer.FitToWidthCommand" IsTabStop="True" Margin="2" Padding="2" Style="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerButtonStyle, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" ToolTipService.ShowOnDisabled="True" TabIndex="6" ToolTip="Page Width (Ctrl+2)" Uid="Button_19" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="WholePageButton" Background="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerWholePageButton, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" CommandParameter="1" Command="DocumentViewer.FitToMaxPagesAcrossCommand" IsTabStop="True" Margin="2" Padding="2" Style="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerButtonStyle, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" ToolTipService.ShowOnDisabled="True" TabIndex="7" ToolTip="Whole Page (Ctrl+3)" Uid="Button_20" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="TwoPagesButton" Background="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerTwoPagesButton, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" CommandParameter="2" Command="DocumentViewer.FitToMaxPagesAcrossCommand" IsTabStop="True" Margin="2" Padding="2" Style="{DynamicResource {ComponentResourceKey ResourceId=PUIDocumentViewerButtonStyle, TypeInTargetAssembly={x:Type Documents:PresentationUIStyleResources}}}" ToolTipService.ShowOnDisabled="True" TabIndex="8" ToolTip="Two Pages (Ctrl+4)" Uid="Button_21" VerticalAlignment="Center" Width="24"/>
    <Separator Uid="Separator_111"/>
    <Button x:Name="closeButton" Width="20" Content="X" ToolTip="Close" HorizontalAlignment="Right" VerticalAlignment="Center" Click="closeButton_Click"/>
    </ToolBar>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>

    Hi DSP1024,
    >>I tried the horizontalAlignment property but is has no effect. If I add margin="500,0,0,0" it works
    Yes, the HorizontalAlignment property has no effect for the items inside the ToolBar control, as a workaround, we can move your "closeButton" out of ToolBar content, like this:
    <Style x:Key="myContentControlStyle" TargetType="{x:Type ContentControl}">
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type ContentControl}">
    <Grid>
    <ToolBar Focusable="{TemplateBinding Focusable}" ToolBarTray.IsLocked="True" Language="en-us" KeyboardNavigation.TabNavigation="Continue" Uid="ToolBar_2">
    <Button x:Name="PrintButton" Background="Blue" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="ApplicationCommands.Print" IsTabStop="True" Margin="2" Padding="2" ToolTipService.ShowOnDisabled="True" TabIndex="0" ToolTip="Print (Ctrl+P)" Uid="Button_14" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="CopyButton" Background="Blue" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="ApplicationCommands.Copy" IsTabStop="True" Margin="2" Padding="2" ToolTipService.ShowOnDisabled="True" TabIndex="1" ToolTip="Copy (Ctrl+C)" Uid="Button_15" VerticalAlignment="Center" Width="24"/>
    <Separator Uid="Separator_110"/>
    <Button x:Name="ZoomInButton" Background="Blue" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="NavigationCommands.IncreaseZoom" IsTabStop="True" Margin="2" Padding="2" ToolTipService.ShowOnDisabled="True" TabIndex="3" ToolTip="Increase the size of the content (Ctrl +)" Uid="Button_16" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="ZoomOutButton" Background="Blue" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="NavigationCommands.DecreaseZoom" IsTabStop="True" Margin="2" Padding="2" ToolTipService.ShowOnDisabled="True" TabIndex="4" ToolTip="Decrease the size of the content (Ctrl -)" Uid="Button_17" VerticalAlignment="Center" Width="24"/>
    <Separator Uid="Separator_111"/>
    <Button x:Name="ActualSizeButton" Background="Blue" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" CommandParameter="100.0" Command="NavigationCommands.Zoom" IsTabStop="True" Margin="2" Padding="2" ToolTipService.ShowOnDisabled="True" TabIndex="5" ToolTip="100% (Ctrl+1)" Uid="Button_18" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="PageWidthButton" Background="Blue" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" Command="DocumentViewer.FitToWidthCommand" IsTabStop="True" Margin="2" Padding="2" ToolTipService.ShowOnDisabled="True" TabIndex="6" ToolTip="Page Width (Ctrl+2)" Uid="Button_19" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="WholePageButton" Background="Blue" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" CommandParameter="1" Command="DocumentViewer.FitToMaxPagesAcrossCommand" IsTabStop="True" Margin="2" Padding="2" ToolTipService.ShowOnDisabled="True" TabIndex="7" ToolTip="Whole Page (Ctrl+3)" Uid="Button_20" VerticalAlignment="Center" Width="24"/>
    <Button x:Name="TwoPagesButton" Background="Blue" CommandTarget="{Binding TemplatedParent, RelativeSource={RelativeSource TemplatedParent}}" CommandParameter="2" Command="DocumentViewer.FitToMaxPagesAcrossCommand" IsTabStop="True" Margin="2" Padding="2" ToolTipService.ShowOnDisabled="True" TabIndex="8" ToolTip="Two Pages (Ctrl+4)" Uid="Button_21" VerticalAlignment="Center" Width="24"/>
    <Separator Uid="Separator_111"/>
    </ToolBar>
    <Button x:Name="closeButton" Width="20" Content="X" ToolTip="Close" Margin="0,0,18,0" HorizontalAlignment="Right" VerticalAlignment="Center" />
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    Screenshot:
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Media Keys Recognized Correctly Using Xev but pressing has no effect.

    On g15 keyboard Xev maps the multimedia keys correctly
    (KeyPress event, serial 35, synthetic NO, window 0x5600001,
        root 0x10c, subw 0x0, time 5432517, (160,-5), root:(1123,826),
        state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
        XKeysymToKeycode returns keycode: 162
        XLookupString gives 0 bytes:
        XmbLookupString gives 0 bytes:
        XFilterEvent returns: False
    but Clementine doesn't react when the key is pressed.
    I don't know what changes but rebooting can fixes / creates the problem randomly.

    *vitali* wrote:I have kde 4.5.0 , and I am not messing with xev merely checking that the keys are detected correctly.
    I have  g15daemon , g15composer, g15macro, g15stats, libg15, lib15render installed.
    The media keys are detected when setting them in the global shortcut for clementine, but pressing them has no effects (works on some reboots as i mentioned).
    Hmmm....G15 media keys works out-of-the-box for Amarok.  I can experiment on my box once I'm through with work in a few hours.
    Looking at the Clementine bugtracker-there's an open bug regarding multimedia keys on Win7 and Clementine already.  I'll play later-but I'm thinking this is something to post on their bug tracker.

  • Runtime.setCustomMenuItemChecked has no effect

    This method seems to be bugged, it has no effect in Reader (9/X):
    runtime.addCustomMenuItem("myitem", "My Item", "checked", 1);
    runtime.setCustomMenuItemChecked("myitem", 0);
    The menu item "My Item" remains in the checked state (and vice-versa). Is there a workaround?
    Alexander

    Satellite L655D-S5110
    I had that happen on somebody's laptop (not a Toshiba) the other day. Turned out the default audio output needed to be changed. It's in here.
       Control Panel > Sound > Playback tab > select (whatever it was) > click the Set Default button
    I've seen this question here before. Please let us know what you find in there.
    -Jerry

Maybe you are looking for

  • Freezing on a blue screen?

    My computer began freezing intermittenly while listening to music yesterday, so I powered down the computer and restarted it. When it came back up, it froze on a blue screen. I began looking for answers on the internet, and saw "Safe Mode" so I power

  • OBIEE11g on linux 64bit  installation: java.lang.OutOfMemoryError: PermGen

    Hi All, I started installing obiee 11.1.1.5.0 on linux64 bit. before this i ran RCU and created schema for obiee. I stcuk in very first step where BI configuration say....creating domain ....in progress..0% And when i checked log in Oracle/orainvento

  • Production version problem

    Hi friends                     when i have created production version for one material i got the error. pleas efind the error below. inconsistencies for production version. when i checked the production version for that material systm shows the green

  • How do I get an XSKey replaced?

    How do I get a replacement for a defective XSKey?

  • An error occured after the installation of SQL Server 2014 Enterprise Edition

    As you can see, only the Analysis Services was installed successfully, the rest are failed. Well, I'm using a 64-bit Windows 8 Single Language, and my ISO file was a 32-bit installer. But why on my other 64-bit PC, it was successfully installed, no s