-
October 22nd, 2019, 02:00 AM
#1
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 .
-
October 22nd, 2019, 04:02 AM
#2
Re: Changing tab order of buttons of Cpropertysheet
Victor Nijegorodov
-
October 22nd, 2019, 07:21 AM
#3
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
-
October 24th, 2019, 01:13 AM
#4
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 .
-
October 24th, 2019, 01:18 AM
#5
Re: Changing tab order of buttons of Cpropertysheet
See my post#2.
Victor Nijegorodov
-
October 24th, 2019, 07:07 AM
#6
Re: Changing tab order of buttons of Cpropertysheet
Originally Posted by Beginner_MFC
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.
-
October 24th, 2019, 07:11 AM
#7
Re: Changing tab order of buttons of Cpropertysheet
Originally Posted by GCDEF
Victor is right. I misread the post.
... however the OP seems just to ignore all my posts...
Victor Nijegorodov
-
October 25th, 2019, 11:29 PM
#8
Re: Changing tab order of buttons of Cpropertysheet
Originally Posted by VictorN
... however the OP seems just to ignore all my posts...
The OP must be looking at the wrong z-order.
-
December 3rd, 2019, 02:58 AM
#9
Re: Changing tab order of buttons of Cpropertysheet
Hi VictorN,
I am currently moving forward with your approach ie to use SetWindowPos function.
But i have a query in the same.
The parameter uFlags has values which are all specific to be window resizing & positioning.
Then how can we use values of uFlags for positioning of buttons??
-
December 3rd, 2019, 03:18 AM
#10
Re: Changing tab order of buttons of Cpropertysheet
Originally Posted by prernagupta171995
Hi VictorN,
I am currently moving forward with your approach ie to use SetWindowPos function.
But i have a query in the same.
The parameter uFlags has values which are all specific to be window resizing & positioning.
Then how can we use values of uFlags for positioning of buttons??
Buttons are windows.
-
December 3rd, 2019, 04:47 AM
#11
Re: Changing tab order of buttons of Cpropertysheet
Thanks for your response.
I'm currently using
but1 -> SetWindowPos (*this, 5,5,5,5,SWP_SHOWWINDOW )
where but1 is a CButton
Can you please help me with the correct parameters of this function?
-
December 3rd, 2019, 07:30 AM
#12
Re: Changing tab order of buttons of Cpropertysheet
Originally Posted by prernagupta171995
Thanks for your response.
I'm currently using
but1 -> SetWindowPos (*this, 5,5,5,5,SWP_SHOWWINDOW )
where but1 is a CButton
Can you please help me with the correct parameters of this function?
1. What is this?
2. Where in z-order (ie after which another button/control) do you want the place this but1
3. Have you read the MSDN docs about SetWindowPos its using?
Victor Nijegorodov
-
December 3rd, 2019, 08:14 AM
#13
Re: Changing tab order of buttons of Cpropertysheet
Yes Victor I have read and it is implemented now.
-
December 3rd, 2019, 08:25 AM
#14
Re: Changing tab order of buttons of Cpropertysheet
Originally Posted by prernagupta171995
Yes Victor I have read and it is implemented now.
I you mean the code you have already posted here then you implemented it wrong. And it won't ever compile!
Well, if you are going to use the MFC CWnd::SetWindowPos method then read this.
Victor Nijegorodov
-
December 3rd, 2019, 08:30 AM
#15
Re: Changing tab order of buttons of Cpropertysheet
No I meant what I posted was wrong. I implemented the correct code and took your suggested reference
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|