Sign in to follow this  
Followers 0
VerteXslaPPy

cant move it -.-"

8 posts in this topic

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))

Share this post


Link to post
Share on other sites



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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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 =)

Share this post


Link to post
Share on other sites

VerteXslaPPy,

This works for me (although I do not have the same images I tested with some of my own): :)

#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
 WEnd
I note this seems to be a simulated radar screen - I take it you have read the Forum rules? :huh:

M23

P.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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

VerteXslaPPy,

Please refrain from using scatological language here - it does not make us more likely to help you. :naughty:

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. :bye:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0