VerteXslaPPy Posted January 12, 2015 Share Posted January 12, 2015 i have a problem i cant move my gui , its need always on top and need to can move it Local $apos = WinGetPos("[CLASS:TEST") $rdrgui = GUICreate("test", 205, 225, $apos[0] + -208, $apos[1] + -5, BitOR($ws_popup, $ws_ex_topmost), BitOR($ws_ex_topmost, $ws_ex_layered, $ws_ex_toolwindow)) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 12, 2015 Moderators Share Posted January 12, 2015 VerteXslaPPy,I suggest reading the Moving and Resizing PopUp GUIs tutorial in the Wiki. 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...
VerteXslaPPy Posted January 12, 2015 Author Share Posted January 12, 2015 i dont understand anything there lmao i just want to move this GUI not more dont want make it bigger, i just want to know what i make false , sry for my bad english Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 12, 2015 Moderators Share Posted January 12, 2015 VerteXslaPPy,What controls do you have inside this GUI? That will help me decide which of the 4 methods we should use to move it. 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...
VerteXslaPPy Posted January 12, 2015 Author Share Posted January 12, 2015 Local $apos = WinGetPos("[CLASS:TEST]") $rdrgui = GUICreate("xqZ - RadaR", 205, 225, $apos[0] + -208, $apos[1] + -5, BitOR($ws_popup, $ws_ex_topmost), BitOR($ws_ex_topmost, $ws_ex_layered, $ws_ex_toolwindow)) GUISetBkColor(0) GUICtrlCreatePic(@TempDir & "grey.bmp", 0, 0, @DesktopWidth, 20) GUICtrlSetState(+ - 1, $gui_disable) guisetstate() $title = GUICtrlCreateLabel("TEST", 5, 3, 84, 20) GUICtrlSetFont(+ - 1, 7.2, 700, 1, "ARIAL", 5) GUICtrlSetColor(+ - 1, 15066597) GUICtrlSetBkColor(+ - 1, $gui_bkcolor_transparent) GUICtrlCreatePic(@TempDir & "midlines.bmp", 0, 112, 300, 1) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "midlines.bmp", 102, 20, 1, 300) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black.bmp", 1, 20, 205, 1) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black2.bmp", 0, 220, 230, 4) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black.bmp", 200, 20, 1, 200) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black2.bmp", 201, 10, 5, 220) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black2.bmp", 0, 10, 4, 210) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black.bmp", 4, 20, 1, 200) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black.bmp", 4, 219, 197, 1) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black.bmp", 1, 0, 221, 1) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black.bmp", 204, 0, 1, 250) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black.bmp", 0, 224, 210, 1) GUICtrlSetState(+ - 1, $gui_disable) GUICtrlCreatePic(@TempDir & "black.bmp", 0, 0, 1, 225) GUICtrlSetState(+ - 1, $gui_disable) Local $dot[65] Local $dot2[65] For $i = 0 To 64 Step 1 $dot[$i] = GUICtrlCreatePic(@TempDir & "red.bmp", 0, 0, 5, 5, 360) GUICtrlSetState(+ - 1, $gui_disable) Next _winsetshadow($rdrgui) GUISetState(@SW_SHOW) here is the complete gui =) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 12, 2015 Moderators Share Posted January 12, 2015 VerteXslaPPy,This works for me (although I do not have the same images I tested with some of my own): expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <SendMessage.au3> Global Const $SC_DRAGMOVE = 0xF012 ; I am using the SciTE GUI as the positioning aid Local $apos = WinGetPos("[CLASS:SciTEWindow]") ; Do not mix up normal and extended styles $rdrgui = GUICreate("xqZ - RadaR", 205, 225, $apos[0] + 208, $apos[1] + 5, $ws_popup, BitOR($ws_ex_topmost, $ws_ex_layered, $ws_ex_toolwindow)) ; normal extended - $WS_EX_* GUISetBkColor(0) ;GUICtrlCreatePic(@TempDir & "\grey.bmp", 0, 0, @DesktopWidth, 20) ;GUICtrlSetState(-1, $gui_disable) $title = GUICtrlCreateLabel("TEST", 5, 3, 84, 20) GUICtrlSetFont(-1, 7.2, 700, 1, "ARIAL", 5) GUICtrlSetColor(-1, 15066597) GUICtrlSetBkColor(-1, $gui_bkcolor_transparent) #cs GUICtrlCreatePic(@TempDir & "\midlines.bmp", 0, 112, 300, 1) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\midlines.bmp", 102, 20, 1, 300) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black.bmp", 1, 20, 205, 1) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black2.bmp", 0, 220, 230, 4) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black.bmp", 200, 20, 1, 200) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black2.bmp", 201, 10, 5, 220) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black2.bmp", 0, 10, 4, 210) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black.bmp", 4, 20, 1, 200) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black.bmp", 4, 219, 197, 1) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black.bmp", 1, 0, 221, 1) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black.bmp", 204, 0, 1, 250) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black.bmp", 0, 224, 210, 1) GUICtrlSetState(-1, $gui_disable) GUICtrlCreatePic(@TempDir & "\black.bmp", 0, 0, 1, 225) GUICtrlSetState(-1, $gui_disable) _winsetshadow($rdrgui) #ce GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_PRIMARYDOWN _SendMessage($rdrgui, $WM_SYSCOMMAND, $SC_DRAGMOVE, 0) EndSwitch WEndI note this seems to be a simulated radar screen - I take it you have read the Forum rules? M23P.S. When you post code please use Code tags - see here how to do it. Then you get a scrolling box and syntax colouring as you can see in my post. 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...
VerteXslaPPy Posted January 12, 2015 Author Share Posted January 12, 2015 now its shit its not work for me now i dont want to recode this all i just want to know : $rdrgui = GUICreate("test", 205, 225, $apos[0] + -208, $apos[1] + -5, BitOR($ws_popup, $ws_ex_topmost), BitOR($ws_ex_topmost, $ws_ex_layered, $ws_ex_toolwindow)) is there anycommand what dont allow me to move this form? because with this $rdrgui = GUICreate("test", 205, 225) i can move but the form looks like crap after this the border is to big , is there a way to remove the border but move the form without using any more lines? just in this line Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 12, 2015 Moderators Share Posted January 12, 2015 VerteXslaPPy,Please refrain from using scatological language here - it does not make us more likely to help you. As you can see from the tutorial to which I linked you, moving pop-up GUIs (those without a title bar) is not easy and cannot be done "without using any more lines". I have offered you a solution - and corrected some of the errors in the GUICreate line you were using - but if you do not want to use it then I am out. 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