tuffgong Posted December 5, 2013 Share Posted December 5, 2013 This seems like an easy fix. I can't find the answer anywhere. I have a GUI text box that works perfectly. I want to make one line of the text bold. When I do, it breaks that line up and moves part of it to the next line and I am not sure why. I have this line of text that prints perfectly: GUICtrlCreateLabel ("Click OK to begin installation", 120, 100) When I execute it looks like this: Click OK to begin installation If I add a 'SetFont' line, like this: GUICtrlCreateLabel ("Click OK to begin installation", 120, 100) GUICtrlSetFont (-1, 8.5, 600) I get this: Click OK to begin installation Why does the font line break up the line of text? The box is plenty big enough. There are longer lines of text in the box that are not broken up. If I delete the word 'installation' from the text it looks like this: Click OK to begin Why does the 'SetFont' line break up my text? Thanks in advance! Link to comment Share on other sites More sharing options...
Moderators Solution Melba23 Posted December 5, 2013 Moderators Solution Share Posted December 5, 2013 tuffgong, The box is plenty big enoughBut the label is evidently not! You can use my StringSize UDF to get the size of any text in any font to check how big the label should be - or post your code and I will look into it for you. M23 tuffgong 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...
tuffgong Posted December 5, 2013 Author Share Posted December 5, 2013 Thanks for the quick response. I am new at this but learning fast thanks to this great forum. I had never set the size of the label before. I had to go back into label creation to find out how. Thanks for setting me on the right track (again)! 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