Eigensheep Posted January 25, 2009 Share Posted January 25, 2009 Hi, There is probably a really obvious answer, but I can't find it Basically, using GUICtrlCreateButton($apps[$x],50+$lft*100,50+$top*50,90,40,$BS_MULTILINE) will work and display the text on two lines ($lft and $top are defined). But when I use GUICtrlSetBkColor(-1,0x808080) this effect stops.What am I doing wrong? Link to comment Share on other sites More sharing options...
RomanK Posted January 25, 2009 Share Posted January 25, 2009 For me, this sounds like a bug. But you could try combinations with other styles, perhaps $BS_FLAT together with $BS_MULTILINE will work. [font="Courier New"]http://RomanK.hondadesigns.com[/font] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 25, 2009 Moderators Share Posted January 25, 2009 Morning both,This has been discussed before and there is a solution here. Looks as if you will need to play with $apps[$x] if you want this to work.You do realise that colouring a button makes it trap the Enter key, I trust? It is a known bug (Ticket 376) and is still open. So think carefully before doing so.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...
Eigensheep Posted January 25, 2009 Author Share Posted January 25, 2009 Sory for the late reply, thanks to both for the help, but I think i'll stick with just the multiline. 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