Horizontal area manager

Hello

I have a HorizontalFieldmanager that contains two buttons fields... I added these two buttons for that HorizontalFieldmanager... I want the buttons should be the central position of the screen... but they are coming up on the left side of the screen... I used like this

HorizontalFieldManager hfm=new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH|HorizontalFieldManager.FIELD_HCENTER);

ButtonField submit=new ButtonField("Submit",ButtonField.FIELD_HCENTER|ButtonField.HCENTER);

ButtonField cancel=new ButtonField("Cancel",ButtonField.FIELD_HCENTER|ButtonField.HCENTER);

HorizontalFieldManager does not respect the horizontal alignments because it has its own approach to horizontal placement.  VerticalFieldManager respect that, though.  The simplest approach would be to:

  • Create two button controls - without the alignment style bits (I give them usually CONSUME_CLICK and NEVER_DIRTY but it's different)
  • Create a horizontal field Manager - with FIELD_HCENTER as one of the style bits
  • Add these two buttons in the horizontal field manager
  • create a handler of vertical field with USE_ALL_WIDTH as one of the style bits
  • Add horizontal management Manager to the vertical field manager

This way your horizontal field Manager will place the buttons next to each other while the vertical field Manager notice the flag FIELD_HCENTER on the HFM and Center the gadget all the width of the screen (it's why we USE_ALL_WIDTH here)

Tags: BlackBerry Developers

Similar Questions

  • Delete scrolling of the development of horizontal area manager.

    Hello

    I create a project where I have a horizontal field Manager that contains a set of vertical field managers. I've implemented the buttons on each vertical field Manager that allows a horizontal scrolling through the horizontalfieldmanager.

    Red = Horiontal Field Manager

    Blue = Vertical responsible field (each of them is a full screen width)

    Green = buttons to scroll through each VFM

    My problem is that there are fields focusable in each optimisation of resources, which means that I am able to scroll horizontally HFM using the trackpad.  I don't want that.  I want that the only method of scrolling horizontally to be pressing the green buttons.  This ensures that my VFM is centered.

    I would still be able to scroll horizontally through each VFM with the trackpad.

    Any ideas would be appreciated.

    Thank you

    Probably the best thing to do would be to substitute navigationMovement and simply return true if dx! is 0 (otherwise return super.navigationMovement).

  • How to set horizontal scrolling to horizontal field Manager when fields are added using a loop for?

    The following code snippet contains a horizontal field Manager to which are added five buttons.

    1. I can't the value of horizontal scrolling to horizontal management Manager because of who I am not able to access the keys 4 and 5.

    2. usually, we put horizontal scrolling in the following way:

    container = new HorizontalFieldManager(USE_ALL_WIDTH|HORIZONTAL_SCROLL|HORIZONTAL_SCROLLBAR);
    

    3. so I also tried setting of horizontal scrolling in the following way

       container = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLL|Manager.HORIZONTAL_SCROLLBAR)
                {
    
                    protected void sublayout(int maxWidth, int maxHeight) {
    
                        Field field = null;
                        int x = 0;
                        int y = 0;
                        int maxFieldHeight = 0;
                        int maxFieldWidth = 0;
                        for (int i = 0; i < getFieldCount(); i++)
                        {
                            field = getField(i);
                            layoutChild(field, maxWidth, maxHeight);
                            setPositionChild(field, x/*width-field.getWidth()*/,y);
    
                            x+=field.getWidth();
    
                            maxFieldWidth = maxFieldWidth + field.getWidth();
                            System.out.println("field width"+field.getWidth());
                            System.out.println(" max field width"+maxFieldWidth);
    
                            if(i==0)
                            {
                                maxFieldHeight = field.getHeight(); // height set of the first button since all components have the same height
                            }
                        }
                        System.out.println("final max field width"+maxFieldWidth);
    
                        setExtent(maxFieldWidth, maxFieldHeight);
    
                    }
                };
    

    but it's not working.

    4 I found this property: (position) horizontalFieldManager.setHorizontalScroll; that contains the parameterioo where the post is supposed to be the new horizontal scroll position. I tried passing the coordinate x of horizontal field Manager, but it does not work. I should pass as a parameter position?

    HorizontalFieldManager container = new HorizontalFieldManager()
    {
        protected void sublayout(int maxWidth, int maxHeight)
        {
            Field field = null;
            int x = 0;
            int y = 0;
            int maxFieldHeight = 0;
            for (int i = 0; i < getFieldCount(); i++)
            {
                field = getField(i);
                layoutChild(field, maxWidth, maxHeight);
                setPositionChild(field, x,y);
                x+=field.getWidth();
                if(i==0)
                {
                    maxFieldHeight = field.getHeight(); // height set of the first button since all components have the same height
                }
            }
    
            setExtent(Display.getWidth(), maxFieldHeight);
    
        }
    };
    
    ButtonField button1 = new ButtonField("Button1");
    ButtonField button2 = new ButtonField("Button2");
    ButtonField button3 = new ButtonField("Button3");
    ButtonField button4 = new ButtonField("Button4");
    ButtonField button5 = new ButtonField("Button5");
    
    container.add(button1);
    container.add(button2);
    container.add(button3);
    container.add(button4);
    container.add(button5);
    
    add(container);
    

    Need your valuable comments and suggestions. Please help me.

    I think that there is a bug in the sublayout (your HorizontalFieldManager 0 mode.  Given that the code did what I think WHAT HFM will do anyway, I recommend that you try to do this with a standard HFM, using this style:

    Manager.HORIZONTAL_SCROLL | Manager.HORIZONTAL_SCROLLBAR

    Let us know how you go.

    When I have more time I'll explain the bug, but if you want to investigate something, be aware that the maximum size that you can use in setExtent are the values that are passed to sublayout.  Compare the width as you try to define in setExtent whose width is increased.

  • Assign a spacing equal to the fields in the horizontal field Manager

    Hello

    I add a number of vertical field managers to a horizontal field Manager. Each manager of vertical field has a text with an image under. The text varies in width images in each vertical field Manager seem to have a different amount of space between them. Is there a way to remedy this situation? Joined a raw image in the way that message on the screen. How can I get the same amount of space between each area of the rectangle?

    Thank you

    Here's some code that I received from one of the sessions at the last DevCon.  Should be useful.  Might help explain customer managers too.

    /*
     * EqualSpaceToolbar.java
     *
     * Research In Motion Limited proprietary and confidential
     * Copyright Research In Motion Limited, 2009-2009
     */
    
    import net.rim.device.api.ui.*;
    
    public class EqualSpaceToolbar extends Manager {
    
        private static final int SYSTEM_STYLE_SHIFT = 32;
    
        public EqualSpaceToolbar() {
            this( 0 );
        }
    
        public EqualSpaceToolbar( long style ) {
            super( USE_ALL_WIDTH | style );
        }
    
        protected void sublayout( int width, int height ) {
            int numFields = getFieldCount();
            int maxHeight = 0;
    
            // There may be a few remaining pixels after dividing up the space
            // we must split up the space between the first and last buttons
            int fieldWidth = width / numFields;
            int firstFieldExtra = 0;
            int lastFieldExtra = 0;
    
            int unUsedWidth = width - fieldWidth * numFields;
            if( unUsedWidth > 0 ) {
                firstFieldExtra = unUsedWidth / 2;
                lastFieldExtra = unUsedWidth - firstFieldExtra;
            }
    
            int prevRightMargin = 0;
    
            // Layout the child fields, and calculate the max height
            for( int i = 0; i < numFields; i++ ) {
    
                int nextLeftMargin = 0;
                if( i < numFields - 1 ) {
                    Field nextField = getField( i );
                    nextLeftMargin = nextField.getMarginLeft();
                }
    
                Field currentField = getField( i );
                int leftMargin = i == 0 ? currentField.getMarginLeft() : Math.max( prevRightMargin, currentField.getMarginLeft() ) / 2;
                int rightMargin = i < numFields - 1 ? Math.max( nextLeftMargin, currentField.getMarginRight() ) / 2 : currentField.getMarginRight();
                int currentVerticalMargins = currentField.getMarginTop() + currentField.getMarginBottom();
                int currentHorizontalMargins = leftMargin + rightMargin;
    
                int widthForButton = fieldWidth;
                if( i == 0 ) {
                    widthForButton = fieldWidth + firstFieldExtra;
                } else if( i == numFields -1 ) {
                    widthForButton = fieldWidth + lastFieldExtra;
                }
                layoutChild( currentField, widthForButton - currentHorizontalMargins, height - currentVerticalMargins );
                maxHeight = Math.max( maxHeight, currentField.getHeight() + currentVerticalMargins );
    
                prevRightMargin = rightMargin;
                nextLeftMargin = 0;
            }
    
            // Now position the fields, respecting the Vertical style bits
            int usedWidth = 0;
            int y;
            prevRightMargin = 0;
            for( int i = 0; i < numFields; i++ ) {
    
                Field currentField = getField( i );
                int marginTop = currentField.getMarginTop();
                int marginBottom = currentField.getMarginBottom();
                int marginLeft = Math.max( currentField.getMarginLeft(), prevRightMargin );
                int marginRight = currentField.getMarginRight();
    
                switch( (int)( ( currentField.getStyle() & FIELD_VALIGN_MASK ) >> SYSTEM_STYLE_SHIFT ) ) {
                    case (int)( FIELD_BOTTOM >> SYSTEM_STYLE_SHIFT ):
                        y = maxHeight - currentField.getHeight() - currentField.getMarginBottom();
                        break;
                    case (int)( FIELD_VCENTER >> SYSTEM_STYLE_SHIFT ):
                        y = marginTop + ( maxHeight - marginTop - currentField.getHeight() - marginBottom ) >> 1;
                        break;
                    default:
                        y = marginTop;
                }
                setPositionChild( currentField, usedWidth + marginLeft, y );
                usedWidth += currentField.getWidth() + marginLeft;
                prevRightMargin = marginRight;
            }
            setExtent( width, maxHeight );
        }
    
    }
    
  • Problems with Windows Update! ("some settings are managed by your system administrator"?)

    I seem to have problems with my windows update. Last week when I checked to see if updates were needed that I was unable to view them because he said that "some settings are managed by your system administrator" who won't let me change the settings and the display of updates. It's my own personal computer so I am the administrator. However, this week update windows begins to function normally because there was an update available and I managed to download it, but a few days later, the windows on the screen update returned to say that "some settings are managed by your system administrator. I did a scan for spyware/adware/virus recently and I had only a low risk of adware that was detected and deleted without modification with windows update. This problem started right after that I got a warranty of software installed by Dell, I don't know if what they did could cause the problem. The system I use is Windows Vista Home Premium Service Pack 2. Any help would be greatly appreciated!

    You can see the effects of a hijackware infection. That being said...

    McAfee applications (and Norton) are known for not not upgrade (or uninstalling) itself.

    1. run this triple McAfee fix: http://service.mcafee.com/FAQDocument.aspx?id=TS100507

    2. After completing step 3 of triple correction, manually & repeatedly update your McAfee application until you get a prompt 'no more updates'.

    3. open Internet Explorer (only) to http://support.microsoft.com/kb/971058 & run it in DEFAULT and modes difficulty then AGGRESSIVE. [1]

    4. restart & test by...

    How will I know if my computer is up to date? :
    http://Windows.Microsoft.com/en-us/Windows-Vista/how-can-I-tell-if-my-computer-is-up-to-date

    ~~~~~~~~~~~~~~~~~~~~~~~~
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will remove your update history but not the list of installed updates.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • some settings are managed by your system administrator (I am the only administratot and owner how can I stop a person controlling my computor location)

    I get a message (somesettings are managed by your system administrator). I am the administrator owner i.e. Head boy, top dog. How someone can be control my computor all the best Roy Barton

    How or when you receive this message?

    What is the EXACT TEXT of the message?
    Belongs to your PC to a network or domain?
    What version of XP you - run Home, Pro, or MCE?
    What kind of profile do you use normally - administrative or regular user with limited rights. For examples, see:
  • Try to activate Vista's problem reports, but get the message "Windows incident reports are disabled." and some settings are managed by your system administrator

    Original title: trying to activate the Vist problem reports, but get message "Windows problem reports are disabled."

    "Windows problem report is disabled." I can't activate the problem reports and Solutions on my Windows Vista computer.  When I click on "Change settings", I would be prompted with the following message if poster "some settings are managed by your system administrator."  It's personal PC at home.  I don't know how to activate it.  I already went to political group & register to adjust some settings.  But still unable to activate this.

    All settings are disabled as this.

    This problem only recently.

    Method 1

    System Restore does not work.

    Method 2

    Disable the antivirus software does not work.

    But after some research, I realized that the problem could be due to a recent installation of a PC anti-frustration software called Soluto (the star was "Activate Crash Handler Soluto").  It worked after that.  After uninstalling, I rebooted the PC system.  After the reboot, I checked the reports on the problems and Solutions and found I could now adjust advanced settings.  I have also reinstalled the software, Soluto and ensured that this time, "activate Crash Handler Soluto" not was not checked (i.e. enabled).

  • How to change the background color of the horizontal field Manager

    How can we tell the background color of the horizontal field Manager (hfm) hanger

    If we should extend and override in ppaint, I tried

    I got color of hfm in tag I added to this

    all give me idea

    Try this:

            HorizontalFieldManager manager = new HorizontalFieldManager()
            {
                public void paint(Graphics graphics)
                {
                    graphics.setBackgroundColor(0x000000FF);//blue
                    graphics.clear();
                    super.paint(graphics);
                }
            };
    

    Concerning

    Bika

  • Conversion/area manager coordinates in actual screen coordinates

    I am working on a custom drop-down list and in the process field, I need to convert the coordinates of an EditField to the coordinates of the current screen. The coordinates of the field are Manager based, which means that they do not reflect the actual position on the screen. Because I need to open a popupdialog and set the correct position, I must be able to convert the coordinates.

    Any help?

    Thanks in advance

    -mt

    Welcome to the forum.

    I had exactly the same requirement at this stage and used the following, I think it's based on something I've had on the forum anyway.  It will be useful.

        // gets extent of a field in display coords, to use in a popup screen's setPosition call.
        public static final XYRect getFieldExtent(Field fld) {
            int cy = fld.getContentTop();
            int cx = fld.getContentLeft();
            Manager m = fld.getManager();
            while (m != null) {
                cy += m.getContentTop() - m.getVerticalScroll();
                cx += m.getContentLeft() - m.getHorizontalScroll();
                if (m instanceof Screen)
                    break;
                m = m.getManager();
            }
            return new XYRect(cx, cy, fld.getContentWidth(), fld.getContentHeight());
        }
    
  • How to add background images to the grid area manager

    Hi all,

    Hope everything goes well. I read the book beginning berries black development. In this book, the author has shown that how you create grid area manager. I used the code and created GRDI Manager of fields with 2 columns and added 8 images buutom with labels. every thing works fine until now.

    But the background is white. Now, I want to add a background image on my gield grid Manager. How can I do it. Please tell me. Thank you

    Hi thanks,

    Fixed my problem in this line. I used this line in my BGVerticalFieldManager

     //Constructor
        public BGVerticalFieldManager(Bitmap background) { 
    
            //super(USE_ALL_WIDTH | USE_ALL_HEIGHT );
            super(USE_ALL_WIDTH);
            ....
        } //end of constructor
    

    now my screen scrolling works very well just like I expected

  • When I open gadgets why it show-Desktop gadgest are managed by your system administratir

    When I open gadgets why it show-Desktop gadgest are managed by your system administrator

    Hello

    This probably means that a system administrator has used group policy to disable the desktop gadgets and prevent users from installing new gadgets. If you use a company computer that this may have been done in response to Microsoft is retiring from Google desktop gadgets platform initially because of security concerns.

    You will need to contact who has administrative privileges on your computer if you want to re - turn on the desktop gadgets.

  • Unable to access windows update settings, message, some settings are managed by your system administrator. »

    Original title: unable to automatically update important updates.

    There is no error message when I open Control Panel > system and security > Windows Update > change settings.

    On this page, that I can't even select or choose other important updates options.

    In addition, on top of the same page, there is information highlighted: "some settings are managed by your system administrator."

    However, I have a personal laptop at home and use the laptop as administrator.

    I already tried troubleshooting, but it was useless for this problem.

    Hi Said,

    It seems that you use Windows 8. You will not be able to access the Group Policy Editor (gpedit.msc) If you use Windows 8. Group Policy Editor can have access on Windows 8 Pro/Enterprise edition of Windows 8.

    Have you tried the other suggestions contained in my previous post? security software i.e. un-installing third if installed computer and to access the windows update settings by enabling the built-in Windows administrator account.

    If you have tried the steps above, please answer us with results to help you further.

  • Type [0] unknown calculation for the dynamic calculation. Only default agg/formula/time balance operations are managed.

    Hi all

    I came across this error last Monday. I tried all the recommendations and configurations and nothing seems to work to solve the problem.

    Here is the error message-

    [Game Sep 24 12:04:27 2015] Local, ARPLAN, ARPLAN, Ess.Tee@MSAD_2010/9240/Error (1012703)

    Type [0] unknown calculation for the dynamic calculation. Only default agg/formula/time balance operations are managed.

    [Game Sep 24 12:04:33 2015] Local, ARPLAN, ARPLAN, Ess.Tee@MSAD_2010/9240/Warning (1080014)

    Abandoned due to the State [1012703] [0x2e007c (0x56042d17.0xeadd0)] transaction.

    [Game Sep 24 12:04:33 2015] Local, ARPLAN, ARPLAN, Ess.Tee@MSAD_2010/8576/Warning (1080014)

    Abandoned due to the State [1012703] [0x40007d (0x56042d18.0x781e0)] transaction.

    [Game Sep 24 12:04:34 2015] Local, ARPLAN, ARPLAN, Ess.Tee@MSAD_2010/736/Info (1012579)

    Total time elapsed Calc [Forecast.csc]: [621,338] seconds

    The script I'm running-

    SET CACHE HIGH;

    SET MSG SUMMARY;

    LOW GAME REVIEWS;

    UPDATECALC OFF SET;

    SET AGGMISSG

    GAME CALCPARALLEL 2;

    SET CREATEBLOCKONEQ

    SET HIGH LOCKBLOCK;

    FIX ('FY16', 'Final', 'Forecasts', '11 + 1 forecasts', 'prediction of 10 + 2', '9 + 3 forecast', '8 + 4 forecasts', "forecast 7 + 5", "6 + 6 forecast", "forecast 5 + 7", 'forecast of 4 + 8', '3 + 9 forecast', 'forecast 2 + 10', '1 + 11 forecasts')

    DIFFICULTY (@IDESCENDANTS ('entity'))

    CALC DIM ("account");

    ENDFIX

    DIM CALC ("entity", "Currency");

    ENDFIX

    In the essbase.cfg I have already included-

    NETDELAY 24000

    NETRETRYCOUNT 4500

    /Calculator cache settings

    CALCCACHEHIGH 50000000

    CALCCACHEDEFAULT 10000000

    200000 CALCCACHELOW

    Lockblock/set limits

    CALCLOCKBLOCKHIGH 150000

    CALCLOCKBLOCKDEFAULT 20000

    CALCLOCKBLOCKLOW 10000

    Please suggest if there is a way to fix this error. I get a similar error for other calculations as well.

    Kind regards

    EssTee

    And you are positive that no one came in a new Member at level 0 as dynamic Calc?

    What are the versions do you use?

  • How the index data are managed within the cluster?

    Hello

    We are evaluating the consistency.

    Regarding indexes, am I right in thinking that the data in the index are stored in a (managed internally) cache on the same node that the attendant at the following indexed values? I'm not interested in getting the data in the index, but rather just to understand how the data in the index itself are stored or processed within the cluster.

    So in a 2 cluster node where an index is applied to a distributed cache that has only 2 entries, will there be a key cache on each node 1 {binary,} to enter key where the key points to the value that is stored on this same node? In other words, I'm sure that the index data to be spread out in the cluster in the case of a partitioned topology?

    Concerning
    Peter

    user11279467 wrote:
    Hello

    We are evaluating the consistency.

    Regarding indexes, am I right in thinking that the data in the index are stored in a (managed internally) cache on the same node that the attendant at the following indexed values? I'm not interested in getting the data in the index, but rather just to understand how the data in the index itself are stored or processed within the cluster.

    So in a 2 cluster node where an index is applied to a distributed cache that has only 2 entries, will there be a key cache on each node 1 {binary,} to enter key where the key points to the value that is stored on this same node? In other words, I'm sure that the index data to be spread out in the cluster in the case of a partitioned topology?

    Concerning
    Peter

    Hi Peter,.

    up to 3.4.x index have been supported only on partitioned topology, and Yes, the index on each node contain only the data corresponding to the entries that have their main copy on this node (referred to as entered local subsequently).

    The indexes are not stored in a cache, but they are managed under the information that maintains consistency in terms of backup (the map that contains local entries).

    The indexes are in 2 parts:

    -index to the front: this is a mapping of the cache key in an internal representation (Playback key card in the future) the value extracted with the extractor used to create the index of the entry to membership of the cache key (value extracted later)

    -reverse index (aka. reversed card): this is a map of the value extracted from a backup set of the keys of the map of entries which we extract the index key reversed with the extractor used to create the index

    The index can be sorted, which means that the index reversed a SortedMap (sort order is the order of the extracted values)

    Let's see an example. Assuming you have the contents of the following cache within a particular extension storage node:

    A--> Object (PositionX = 5,...)
    B--> object (getA = 3,...)
    C--> object (getA = 3,...)
    D--> object (getA = 4,...)

    The index forward in this node will contain:

    Binary (A)--> 5
    Binary (B)--> 3
    Binary (C)--> 3
    Binary (D)--> 4

    The reverse index will contain:

    3--> {Binary (B), Binary (C)}
    4--> {Binary (D)}
    5--> {Binary (A)}

    Where Binary (...) designates the internal representation (binary) of the... object.

    If the index is not ordered, then the order of iteration over the entries in the index reversed are not deterministic.

    If the index is ordered, the iteration of the entries into the inverted index will be as stated above. Also, you can convert the SortedMap inverted index in order to have the very useful headMap and tailMap and firstKey and lastKey methods.

    I hope this helps.

    Best regards

    Robert

  • Some settings are managed by...

    Picture of the problem: http://img526.imageshack.us/img526/183/wuprob.jpg

    Operating system is Windows 7 Ultimate x 64 RTM (up to date).

    Unfortunately I don't remember exactly what I have installed or done before the problem occurred when I can't solve the problems it correctly.

    Still.I tried to reset components WU and as far I can tell this has worked but problem persists. Tried both the 50202 Fixit (regular and aggressive) and the manual method described here: http://support.microsoft.com/kb/971058

    Manual method has had some problems (exit cmd seems strange litle because I had activated "@ echo off"):

    ----------------------------------------------------------------------------------------------------

    net stop bits
    The Background Intelligent Transfer Service service is not started.

    More help is available by typing NET HELPMSG 3521.

    net stop wuauserv
    The Windows Update service stops.
    The Windows Update service was stopped successfully.

    Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat.
    Ren %systemroot%\SoftwareDistribution\DataStore master
    The file name, directory name or volume label syntax is incorrect.
    Ren %systemroot%\SoftwareDistribution\Download master
    The file name, directory name or volume label syntax is incorrect.
    Ren %systemroot%\system32\catroot2 master
    The system cannot find the specified file.
    SC.exe tisb strands D: (A; CCLCSWRPWPDTLOCRRC; SELLERS) (A; CCDCLCSWRPWPDTLOCRSDRCWDWO;
    BA)(A;;) CCLCSWLOCRRC; AU) (A; CCLCSWRPWPDTLOCRRC; CENTRAL UNIT)

    [SC] SetServiceObjectSecurity SUCCESS

    SC.exe tisb wuauserv D: (A; CCLCSWRPWPDTLOCRRC; SELLERS) (A; CCDCLCSWRPWPDTLOCRSDRCWD
    WO; (BA) (A; CCLCSWLOCRRC; AU) (A; CCLCSWRPWPDTLOCRRC; CENTRAL UNIT)

    [SC] SetServiceObjectSecurity SUCCESS

    CD /d %windir%\system32

    Regsvr32.exe atl.dll
    Regsvr32.exe urlmon.dll
    Regsvr32.exe mshtml.dll
    Regsvr32.exe shdocvw.dll
    Regsvr32.exe browseui.dll
    Regsvr32.exe jscript.dll
    Regsvr32.exe vbscript.dll
    Regsvr32.exe scrrun.dll
    Regsvr32.exe msxml.dll
    Regsvr32.exe msxml3.dll
    Regsvr32.exe msxml6.dll
    Regsvr32.exe actxprxy.dll
    Regsvr32.exe softpub.dll
    Regsvr32.exe wintrust.dll
    Regsvr32.exe dssenh.dll
    Regsvr32.exe rsaenh.dll
    Regsvr32.exe gpkcsp.dll
    Regsvr32.exe sccbase.dll
    Regsvr32.exe slbcsp.dll
    Regsvr32.exe cryptdlg.dll
    Regsvr32.exe oleaut32.dll
    Regsvr32.exe ole32.dll
    Regsvr32.exe shell32.dll
    Regsvr32.exe initpki.dll
    Regsvr32.exe c:\windows\system32\wuapi.dll
    Regsvr32.exe c:\windows\system32\wuaueng.dll
    Regsvr32.exe wuaueng1.dll
    Regsvr32.exe c:\windows\system32\dllcache\wucltui.dll
    Regsvr32.exe c:\windows\system32\wups.dll
    Regsvr32.exe wups2.dll
    Regsvr32.exe wuweb.dll
    Regsvr32.exe qmgr.dll
    Regsvr32.exe qmgrprxy.dll
    Regsvr32.exe c:\windows\system32\wucltux.dll
    Regsvr32.exe c:\windows\system32\muweb.dll
    Regsvr32.exe c:\windows\system32\wuwebv.dll

    netsh winsock reset
    The following command was not found: reset winsock.

    net start bits
    Start the Background Intelligent Transfer Service service.
    The Background Intelligent Transfer Service service was launched successfully.

    net start wuauserv
    The Windows Update service starts.
    The Windows Update service was launched successfully.

    Bitsadmin.exe/Reset /allusers

    BITSADMIN version 3.0 [7.5.7600]
    BITS administration utility.
    (C) copyright 2000-2006 Microsoft Corp.

    BITSAdmin is obsolete and is not guaranteed to be available in future versions
    Windows.
    Administrative Tools for the BITS service are now provided by BIT PowerShell cm
    dlets.

    jobs of 0 out of 0 cancelled.

    -------------------------------------------------------------

    Namely the 'netsh reset winsock' should be ' netsh winsock reset "(à la fois sans quotemarks bien sûr)."» Then it works.

    The first two changes of names worked as well throw errors on exit cmd but the third did not work since there is no folder "catroot2" in Win7 (at least I do not have). So I did the third manually.

    Also regsrv32 failed to register or find several files:

    http://img121.imageshack.us/img121/4301/regsrverrors.jpg

    I tried even wipe the entire own C:\Windows\SoftwareDistribution folder but the problem remains.

    I also locked on several similar threads here and I tried all the things suggested but still no luck. I do not have any rules all admin and im GP.

    I have the latest Windows Update Agent installed as v.7.4.7600.224.

    Here is the Log of WU:

    -----------------------------------------------------------------------

    2010-06-26 19:26:45:523 912 880 Misc = logging initialized (build: 7.4.7600.226, tz: + 0300) =.
    2010-06-26 19:26:45:523 912 880 Misc = process: C:\Windows\system32\svchost.exe
    2010-06-26 19:26:45:523 912 880 Misc = Module: c:\windows\system32\wuaueng.dll
    2010-06-26 19:26:45:523 912 880 Service *.
    2010-06-26 19:26:45:523 912 880 Service * START * Service: Service startup
    2010-06-26 19:26:45:523 912 880 Service *.
    2010-06-26 19:26:45:523 912 880 Agent * WU version 7.4.7600.226 customer
    2010-06-26 19:26:45:523 912 880 Agent * Base Directory: C:\Windows\SoftwareDistribution
    2010-06-26 19:26:45:523 912 880 Agent * access type: no proxy
    2010-06-26 19:26:45:523 912 880 Agent * network state: connected
    2010-06-26 19:26:51:273 912 498 report CWERReporter::Init succeeded
    2010-06-26 19:26:51:273 912 498 Agent * Agent: initialization of Windows Update Agent *.
    2010-06-26 19:26:51:273 912 498 Agent * Agent: initialization of the global parameters cache *.
    2010-06-26 19:26:51:273 912 498 Agent * WSUS server:
    2010-06-26 19:26:51:273 912 498 Agent * state WSUS server:
    2010-06-26 19:26:51:273 912 498 Agent * target group: (Unassigned Computers)
    2010-06-26 19:26:51:273 912 498 Agent * Windows Update access disabled: No.
    2010-06-26 19:26:51:273 912 498 DnldMgr Download manager restoring 0 downloads
    2010-06-26 19:26:51:289 912 498 to THE # to THE: initialization of automatic updates.
    2010-06-26 19:26:51:289 912 498 to # approval type: download prior notification (user preference)
    2010-06-26 19:26:51:289 912 498 to THE # will interact with non-admins (Non-admins are high (political))
    2010-06-26 19:26:51:679 912 880 report * report: initialization of static data to report *.
    2010-06-26 19:26:51:679 912 880 report * OS Version = 6.1.7600.0.0.65792
    2010-06-26 19:26:51:679 912 880 report * OS Product Type = 0x00000001
    2010-06-26 19:26:51:695 912 880 report * computer brand = system manufacturer
    2010-06-26 19:26:51:695 912 880 report * computer model = system Product Name
    2010-06-26 19:26:51:695 912 880 report * Bios revision = 1409
    2010-06-26 19:26:51:695 912 880 report * name of Bios = BIOS Date: 20/11/08 17:53:36 Ver: 08.00.12
    2010-06-26 19:26:51:695 912 880 report * the Bios Release Date = 2008-11 - 20 T 00: 00:00
    2010-06-26 19:26:51:695 912 880 report * locale ID = 1061
    2010-06-26 19:26:51:695 912 498 AU successfully wrote event to THE health state: 0
    2010-06-26 19:26:51:695 912 498 AU initialization featured updates
    2010-06-26 19:26:51:695 912 498 to THE Found set 0 cached updates featured
    2010-06-26 19:26:51:695 912 498 AU successfully wrote event to THE health state: 0
    2010-06-26 19:26:51:695 912 498 AU successfully wrote event to THE health state: 0
    2010-06-26 19:26:51:695 912 498 only to THE delayed finish to initialize
    2010-06-26 19:26:55:523 1764 9ec Misc = logging initialized (build: 7.4.7600.226, tz: + 0300) =.

    2010-06-26 19:26:55:523 1764 9ec Misc = process: C:\Windows\explorer.exe
    2010-06-26 19:26:55:523 1764 9ec Misc = Module: C:\Windows\system32\wucltux.dll
    2010-06-26 19:26:55:523 1764 9ec WUApp WARNING: could not handle click on "Check for Updates"-hunting by policy
    2010-06-26 19:26:56:695 912 4ac report CWERReporter finish event management. (00000000)
    2010-06-26 19:27:01:132 912 880 to THE # to THE: initialization of automatic updates.
    2010-06-26 19:27:01:148 912 880 CWERReporter finish event management report. (00000000)
    2010-06-26 19:27:01:164 912 880 Service *.
    2010-06-26 19:27:01:164 912 880 Service * END * Service: out of Service [exit code = 0 x 240001]
    2010-06-26 19:27:01:164 912 880 Service *.

    -----------------------------------------------------------------------

    Hmm the bold line I marked - driven politics. So still a few GP setting blocks?

    No idea what setting it may be? I already checked User Configuration / Administrative Templates/Windows Components/Windows Update andComputer Configuration / Administrative Templates/Windows Components/Windows Update

    All the settings there are not configured. Subkeys of WU policy deleted the registry as suggested in another thread here.

    Help!

    Phew, I managed to get it working again. Here's the solution that worked for me:

    Open the regedit.exe

    * Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    * Delete subkey named NoWindowsUpdate (if it exists)

    No need to reboot. Windows Update should now work correctly.

    You can change this question of 'Response' now.

Maybe you are looking for