Focus In Dialog Box
-
Greetings... In a dialog box I am creating one cutsom drawn grid, now when the user presses TAB in the dialog box, the focus is changed to all other control except the Grid ? I belive since I am creating Grid in the WM_INITDIALOG message of the dialog box the tab is not making focus move to the GRID ? How do I make the focus move to the grid ? Thanks Ritesh
-
Greetings... In a dialog box I am creating one cutsom drawn grid, now when the user presses TAB in the dialog box, the focus is changed to all other control except the Grid ? I belive since I am creating Grid in the WM_INITDIALOG message of the dialog box the tab is not making focus move to the GRID ? How do I make the focus move to the grid ? Thanks Ritesh
Try this form the menu bar when you are in dialog edit screen chhose:Layout->Tab order and force it to be the fist one Shay
-
Greetings... In a dialog box I am creating one cutsom drawn grid, now when the user presses TAB in the dialog box, the focus is changed to all other control except the Grid ? I belive since I am creating Grid in the WM_INITDIALOG message of the dialog box the tab is not making focus move to the GRID ? How do I make the focus move to the grid ? Thanks Ritesh
You need to use the
WS_TABSTOP
style when creating the window. --Mike-- "I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm -
You need to use the
WS_TABSTOP
style when creating the window. --Mike-- "I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_HelmThanks...... It works