Luigi Posted September 10, 2014 Share Posted September 10, 2014 Hi forum, I use a GUICtrlCreateLabel in a litte script, the function's label is show a array's cell, and until now, it's work. Now I need set text in left, center, right, up and middle... unfortunaly, not bottom. At this moment, I need some control can be set text with this characteristics: *up, middle, bottom and left, center, right. But, somenthing does not change your aparence when clicked, like a button. Yes, the buttom change your aparence when clicked, just a small efect... It is not wanted... GUICtrlCreateLabel its work fine, until now... In my search Style Or ExStyle to button not possible. (in time, is not impossible, just not easily) Or is possible remove all button's effect through a some Style or ExStyle? Or have another individual control to do something like this*? Regards, Detefon Visit my repository Link to comment Share on other sites More sharing options...
JohnOne Posted September 10, 2014 Share Posted September 10, 2014 Not sure if I understand what you're after exactly but I'm going to go out on a limb and suggest. _WinAPI_SetWindowLong AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 10, 2014 Moderators Share Posted September 10, 2014 I am as confused as J1. How about you actually post your script, rather than asking us to whip out the old crystal ball? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Moderators Solution Melba23 Posted September 10, 2014 Moderators Solution Share Posted September 10, 2014 (edited) Detefon,Something like this perhaps? expandcollapse popup#include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <StaticConstants.au3> $hGUI = GUICreate("Test", 500, 500) $cLabel = GUICtrlCreateLabel("", 200, 10, 100, 100) GUICtrlSetBkColor($cLabel, 0xCCFFCC) $cButton_Top = GUICtrlCreateButton("Top", 210, 200, 80, 30) $cButton_Left = GUICtrlCreateButton("Left", 10, 250, 80, 30) $cButton_Middle = GUICtrlCreateButton("Middle", 210, 250, 80, 30) $cButton_Right = GUICtrlCreateButton("Right", 400, 250, 80, 30) $cButton_Bottom = GUICtrlCreateButton("Bottom", 210, 300, 80, 30) GUISetState() $sMiddle = @CRLF & @CRLF & @CRLF $sBottom = @CRLF & @CRLF & @CRLF & @CRLF & @CRLF & @CRLF While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cButton_Top GUICtrlSetData($cLabel, "Top") GUICtrlSetStyle($cLabel, BitOR($SS_NOTIFY, $SS_CENTER)) Case $cButton_Left GUICtrlSetData($cLabel, $sMiddle & "Left") GUICtrlSetStyle($cLabel, BitOR($SS_NOTIFY, $SS_LEFT)) Case $cButton_Middle GUICtrlSetData($cLabel, $sMiddle & "Middle") GUICtrlSetStyle($cLabel, BitOR($SS_NOTIFY, $SS_CENTER)) Case $cButton_Right GUICtrlSetData($cLabel, $sMiddle & "Right") GUICtrlSetStyle($cLabel, BitOR($SS_NOTIFY, $SS_RIGHT)) Case $cButton_Bottom GUICtrlSetData($cLabel, $sBottom & "Bottom") GUICtrlSetStyle($cLabel, BitOR($SS_NOTIFY, $SS_CENTER)) Case $cLabel MsgBox($MB_SYSTEMMODAL, "Hi", "Pressed") EndSwitch WEndM23 Edited September 10, 2014 by Melba23 Typo Luigi 1 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...
JohnOne Posted September 10, 2014 Share Posted September 10, 2014 lol That's twice in as many weeks I've missed a simple native function. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Luigi Posted September 10, 2014 Author Share Posted September 10, 2014 Yes! That is it! Thank you again Melba! ^^ Visit my repository Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 10, 2014 Moderators Share Posted September 10, 2014 Detefon,Delighted that the old crystal ball gave the right answer once again - I had given it a good polish first mind! 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