Realm Posted September 5, 2010 Share Posted September 5, 2010 (edited) I found a post that shared an example of how to tab through controls in a child window by adding Extended Style '$WS_EX_CONTROLPARENT' to the Child, however, I have scrollbars attached to the child window as well, and it moves the window rather than scrolls, Is there any other way to tab through controls on a child window or a way to lock the child window in place while using Extended Style '$WS_EX_CONTROLPARENT'? #include <WindowsConstants.au3> #include <GUIScrollBars_Ex.au3> $mainGUI=GUICreate("Parent GUI",1000,800) $childGUI1 = GUICreate("Child GUI", 455, 210, 41, 60, $WS_CHILD, $WS_EX_CONTROLPARENT+$WS_EX_CLIENTEDGE, $mainGUI) $first=GUICtrlCreateCheckbox("1st Checkbox",10,10) $second=GUICtrlCreateCheckbox("2nd Checkbox",10,30) $third=GUICtrlCreateCheckbox("3rd Checkbox",10,50) GUISetState() GUISwitch($mainGUI) GUISetState() _GUIScrollbars_Generate($childGUI1, 980, 940) Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE Edited September 5, 2010 by Realm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
Realm Posted September 6, 2010 Author Share Posted September 6, 2010 *Bump* Is there anyway to allow tabbing controls in a child window with scrollbars attached? My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 7, 2010 Moderators Share Posted September 7, 2010 Realm,If you look at this thread, you will see that this problem has been raised before. No-one seems to know why $WS_EX_CONTROLPARENT does this - I did a fair amount of research for the other thread and turned up nothing useful. But I can say that it is nothing to do with my ScrollBars_Ex UDF. Sorry not to be of more help.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Realm Posted September 7, 2010 Author Share Posted September 7, 2010 Thanks for the reply Melba23,I was sure, it had something to do with $WS_EX_CONTROLPARENT, I tested with your scrollbars, and with the default scrollbars giving me same results.Well, guess I will have to rewrite my code Thanks again for the reply and showing me the other topic, I never ran accross that one, in my forums searches over the past 2 daysRealm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now