Champak Posted September 23, 2023 Posted September 23, 2023 Is it possible to change the amount of padding on the gui ctrl input?
Moderators Melba23 Posted September 23, 2023 Moderators Posted September 23, 2023 Champak, Quite possibly, but without more detailed information it is hard to suggest anything concrete. Are we talking about an AutoIt input control on an AutoIt GUI? What exactly do you mean by "padding"? 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
Champak Posted September 23, 2023 Author Posted September 23, 2023 Yes, an input on an AutoIt GUI. Padding as in the space around the text within input control...more specifically the left side of the input.
Moderators Melba23 Posted September 23, 2023 Moderators Posted September 23, 2023 Champak, Is it important to have the "padding" in the input during user interaction or is this something that could be added once the data has been entered? 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
Champak Posted September 24, 2023 Author Posted September 24, 2023 I don't want to remove all of it, I just want to reduce it. I feel it is too much for what I am looking at. Either way, visually, I guess it can be entered after the data.
Moderators Melba23 Posted September 25, 2023 Moderators Posted September 25, 2023 Champak, I am now confused. I had assumed you wanted to add padding to the user input within the input control, but your last posts suggest that you want to reduce the existing space within the control. When I run a script with an input, the text is pretty much hard up against the lefthand side of the control, so I am having difficulty in seeing quite what you want to reduce. Can you explain in detail just what it is you are trying to do. 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
Champak Posted September 25, 2023 Author Posted September 25, 2023 See the spacing around the top, right, bottom....that's the spacing I'd like to get on the left. Not crucial, but just a preference.
Andreik Posted September 25, 2023 Posted September 25, 2023 The padding it's consistent assuming that the text in input it's right aligned so the left space can be increased/decreased by control width. What if in the input you have just the last digit? Do you still expect the padding to be consistent on all sides?
Moderators Melba23 Posted September 25, 2023 Moderators Posted September 25, 2023 Champak, I agree with Andreik - that looks like a right-aligned input. So changing it to left-aligned or centred should provide you with what you require. 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
Champak Posted September 25, 2023 Author Posted September 25, 2023 (edited) It's actually not aligned...and I did try aligning to the left to see if that would resolve my issue and it didn't. This is the default left padding on the input. I have the width set to a maximum to display 4 digits and this is the look that it comes out with. So no, I don't expect the padding to be the same on all sides if I just have one digit, I just was hoping to have the padding relatively consistent on all sides when working with the count of digits I am generally working with in that box which is 4. Yes, I could increase the width to give the view of all being equal, but I just don't want to increase the size. Edited September 25, 2023 by Champak
ioa747 Posted September 25, 2023 Posted September 25, 2023 did you try with monospaced fonts? I know that I know nothing
Nine Posted September 25, 2023 Posted September 25, 2023 $ES_CENTER style ? At least left and right spacing would be equal... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Champak Posted September 25, 2023 Author Posted September 25, 2023 1 hour ago, ioa747 said: did you try with monospaced fonts? What is that? How do I determine this? Can you recommend a specific one that is default on windows 11? 1 hour ago, Andreik said: What font do you use? Font is default....I don't know what that would be. 40 minutes ago, Nine said: $ES_CENTER style ? At least left and right spacing would be equal... I tried it, no difference. I think that really takes affect and shows when you have a wider input.
ioa747 Posted September 25, 2023 Posted September 25, 2023 (edited) https://en.wikipedia.org/wiki/Monospaced_font from what I see, there is only Cascadia Mono https://learn.microsoft.com/en-us/typography/fonts/windows_11_font_list more https://en.wikipedia.org/wiki/List_of_monospaced_typefaces Edit: Consolas, Courier, Courier New, Lucida Console Edited September 25, 2023 by ioa747 Edit I know that I know nothing
Andreik Posted September 25, 2023 Posted September 25, 2023 Post some code. It looks like we are playing some guessing game.
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