ivobauerjr Posted April 21, 2020 Share Posted April 21, 2020 Hello there, i am new in responsive design.. for all of my controlls i used GUICtrlSetResizing(-1,$GUI_DOCKAUTO) but there is problem that i dont know the new position and size of my controls, if i want to create new control. Without the new position and size i am able to do only this.. But I want to create listview into TabItem like this: I tried to use google, find on our forum but i wasnt successful. Any idea how to make it works? Thanks a lot! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 21, 2020 Moderators Share Posted April 21, 2020 ivobauerjr, Does ControlGetPos not give you the correct location and size of the control? 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...
ivobauerjr Posted April 21, 2020 Author Share Posted April 21, 2020 (edited) Dear Melba23, I used this function but i maybe didnt use it right. Can you help me please? Declaration of GUI: $hGUI = GUICreate("Data Jumper", 800, 500, -1, -1,BitOr($GUI_SS_DEFAULT_GUI, $WS_SIZEBOX, $WS_MINIMIZEBOX, $WS_MAXIMIZEBOX)) My tab that i want to get info: $MyTab = GUICtrlCreateTab(400, 16, 537, 393) I tried to use this function: $aControlInfo = ControlGetPos($hGUI,"Data Jumper",$MyTab) But i got info (5,5 position and 460,432 is width, height) of this part of code, not of $MyTab Global $idTreeView_1 = GUICtrlCreateTreeView(5, 5, 460, 432) What am I doing wrong? Thanks a lot. Edited April 21, 2020 by ivobauerjr Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 21, 2020 Moderators Share Posted April 21, 2020 ivobauerjr, Please post all of the GUI creation code, with all of the controls, so that I can see exactly what is going on. 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...
ivobauerjr Posted April 21, 2020 Author Share Posted April 21, 2020 (edited) Thanks a lot.. i had that code on bad condition - i am sorry, my bad. Have a nice day 🙂 Edited April 21, 2020 by ivobauerjr Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 21, 2020 Moderators Share Posted April 21, 2020 ivobauerjr, Glad you got it sorted. 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...
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