Jump to content

ButtonBar


AZJIO
 Share

Recommended Posts

  • 1 month later...
  • 3 months later...

@AZJIO

I am using your Script (a few ButtonBars) - it is very handy indeed.

I have desktop of 3 monitors (two with positive X coordinates, the third with negative X).

I can place a ButtonBar anywhere moving manually or by Winmove command, but the position outside the workarea of 1st monitor is not remembered.

This would not be a problem (script to position ButtonBars at the right place), but sometimes I have unexpected shuts down of my comp .

Could it be caused by a ButtonBars placed outside workarea of 1st monitor? (this is my suspicion)

If so - any suggestion to fix it?

TIA

ian

EDIT: Update - Problems solved.

Edited by ian.b
Link to comment
Share on other sites

  • 2 weeks later...

very handy, i'll use it.

but could you add dragged function, so i can move them (icon) left or right freely.

and could you add automatic center to the gui so it will at the up center of the desktop

i hope you understand what i said, my english is soo bad sir.

Link to comment
Share on other sites

ian.b

Could it be caused by a ButtonBars placed outside workarea of 1st monitor? (this is my suspicion)

no

tanuki

but could you add dragged function, so i can move them (icon) left or right freely.

I thought about it, but not enough knowledge in programming. I am russian, and use the "translate.google.ru"

I wanted to add a transition to an object, but it is desirable to use GUIOnEventMode

Edited by AZJIO
Link to comment
Share on other sites

  • 1 year later...

nice

but drog move guı  ,can you add or do you think ?

example

#include <Constants.au3>
#include <GUIConstantsEx.au3>
#include <Misc.au3>
#include <WinAPI.au3>
#include <WindowsConstants.au3>

Global Const $SC_DRAGMOVE = 0xF012

HotKeySet('{ESC}', '_Exit')

Example()

Func Example()
    Local $hGUI = GUICreate('', 100, 100, Default, Default, $WS_POPUP)
    _WinAPI_SetLayeredWindowAttributes($hGUI, 0xABCDEF)

    Local $iButton = GUICtrlCreateButton('Drag me', 0, 0, 100, 100)
    GUISetState(@SW_SHOW, $hGUI)

    Local $aCtrlCursor = 0, $aMousePos = 0, _
            $fMove = False, _
            $iBefore = 0
    While 1
        Switch GUIGetMsg()
            Case $iButton
                MsgBox($MB_SYSTEMMODAL, '', 'Button click')
                ; ExitLoop

            Case $GUI_EVENT_PRIMARYDOWN
                $aCtrlCursor = GUIGetCursorInfo($hGUI)
                $aMousePos = MouseGetPos()
                $fMove = False
                $iBefore = $aMousePos[0] + $aCtrlCursor[0] + $aMousePos[1] + $aCtrlCursor[1] ; Detect the co-ordinates before.

                While _IsPressed(01)
                    WinMove($hGUI, '', $aMousePos[0] - $aCtrlCursor[0], $aMousePos[1] - $aCtrlCursor[1])
                    ; _SendMessage($hGUI, $WM_SYSCOMMAND, $SC_DRAGMOVE, False)
                    ; If the co-ordinates are different then it moved.
                    $fMove = Not ($aMousePos[0] + $aCtrlCursor[0] + $aMousePos[1] + $aCtrlCursor[1] = $iBefore)
                    $aMousePos = MouseGetPos()
                    If @error Then ExitLoop
                WEnd

                ; If it moved clear the button message.
                If $fMove Then
                    Do ; Clear the button message.
                    Until GUIGetMsg() = 0
                EndIf

        EndSwitch
    WEnd

    GUIDelete($hGUI)
EndFunc   ;==>Example

Func _Exit()
    Exit
EndFunc   ;==>_Exit

thank you now

Link to comment
Share on other sites

mesale0077

Do you want to add a button automatically to a specified location? I thought about it.

When I showed, to me the nephew suggested to shift automatically buttons, as tabs at "Opera". I wanted to carry out display of the moved button near the cursor. Each task takes away from me two days.

 

No time
update

fixed

Link to comment
Share on other sites

ButtonBar.7z shows me error with when I try to unzip it with 7-Zip

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Link to comment
Share on other sites

Now it got downloaded successfully.

Good work. Thanks for sharing  :)

Edited by PhoenixXL

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...