JonBMN Posted April 26, 2013 Posted April 26, 2013 (edited) I'm trying to make an up and down arrow like this " ^ ", but since there is no down caret on the keyboard I'm resorting to trying to figure out ways to get that Caret upside down. Has anyone tried doing this for a button so that it looks like an up and down array? This button will be used for sorting. I've tried looking through Unicode to see if I could do it and no luck :/. Any help would be much appreciated. Edited April 29, 2013 by JonBMN
Moderators Melba23 Posted April 26, 2013 Moderators Posted April 26, 2013 JonBMN,WebDings (which I believe is standard on all Windows OSes) has suitable characters as 0x35/6 ("5" and "6"). You can use them like this (taken from one of my scripts): Global $cDetails_Show_Button = GUICtrlCreateButton("5", 115, 45, 35, 20) GUICtrlSetFont(-1, 10, 400, 0, "Webdings") ; "5" = ^, "6" = vM23 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
Bowmore Posted April 27, 2013 Posted April 27, 2013 You might also want to have a look at the Marlett font which also comes with windows. It contains many of the arrows and symbols used on standard windows dialogs. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook
JonBMN Posted April 29, 2013 Author Posted April 29, 2013 (edited) I've tried using your solution @Melba23, but I could not get it to work. I seem to just be getting 5 instead of the symbol. I get the same from the Marlett font @Bowmore. I must be doing something wrong. So, here is an example of what I'm doing.. GUICtrlSetFont($ButtonAZ, -1, 10, 600, -1, "Webdings") $ButtonAZ = GUICtrlCreateButton("5", 250, 5) Edited April 29, 2013 by JonBMN
Moderators Melba23 Posted April 29, 2013 Moderators Posted April 29, 2013 JonBMN,Create the button before you set the font as I did in my code. 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
JonBMN Posted April 29, 2013 Author Posted April 29, 2013 (edited) I just tested out creating the button before I set the font, but I still get the same thing. $ButtonAZ = GUICtrlCreateButton("5", 250, 5) GUICtrlSetFont($ButtonAZ, -1, 10, 600, -1, "Webdings") Do you think I don't have this font? Edited April 29, 2013 by JonBMN
Moderators Melba23 Posted April 29, 2013 Moderators Posted April 29, 2013 (edited) JonBMN,You have the syntax wrong - you use either the button ControlID or the "-1" shorthand for "last control created", but not both Try this: GUICtrlSetFont($ButtonAZ, 10, 600, -1, "Webdings")M23 Edited April 29, 2013 by Melba23 Fixed BB tags 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
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