dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: Changing tab order of buttons of Cpropertysheet

  1. #1
    Join Date
    Oct 2019
    Posts
    36

    Changing tab order of buttons of Cpropertysheet

    I have changed the position of Buttons of Cpropertysheet but when i am pressing the tab key from keyboard the order of moving of control remains old one.Since we dont have any .rc file for Cpropertysheet so we cannot also change tab key pressing order from there by just moving particular component above in .rc file.So how can i change tab pressing order .

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,543

    Re: Changing tab order of buttons of Cpropertysheet

    You should use SetWindowPos function.
    Victor Nijegorodov

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,554

    Re: Changing tab order of buttons of Cpropertysheet

    How did you change the order? It should follow the sequence you use when you call AddPage

  4. #4
    Join Date
    Oct 2019
    Posts
    36

    Re: Changing tab order of buttons of Cpropertysheet

    Confusion confusion...explaining it in a simple way..I have three buttons(Ok,Cancel,Help) on my propertysheet.Now by using MoveWindow() method i have changed(swapped) the position of Ok and Cancel but problem here arises that now when i press tab key from keyboard it select the button as it was selecting previously before swapping the positions of buttons..So how can i make it correct .

  5. #5
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,543

    Re: Changing tab order of buttons of Cpropertysheet

    See my post#2.
    Victor Nijegorodov

  6. #6
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,554

    Re: Changing tab order of buttons of Cpropertysheet

    Quote Originally Posted by Beginner_MFC View Post
    Confusion confusion...explaining it in a simple way..I have three buttons(Ok,Cancel,Help) on my propertysheet.Now by using MoveWindow() method i have changed(swapped) the position of Ok and Cancel but problem here arises that now when i press tab key from keyboard it select the button as it was selecting previously before swapping the positions of buttons..So how can i make it correct .
    Victor is right. I misread the post.

  7. #7
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,543

    Re: Changing tab order of buttons of Cpropertysheet

    Quote Originally Posted by GCDEF View Post
    Victor is right. I misread the post.
    ... however the OP seems just to ignore all my posts...
    Victor Nijegorodov

  8. #8
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,146

    Re: Changing tab order of buttons of Cpropertysheet

    Quote Originally Posted by VictorN View Post
    ... however the OP seems just to ignore all my posts...
    The OP must be looking at the wrong z-order.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)