behdadsoft Posted October 30, 2014 Share Posted October 30, 2014 Hi. I read Bitor Help file but and see some example but can't good understand how work.I want ask anyone explain me about this Function. can anyone tell me Exactly how combine this styles? and how can understand I need use Bitor Function? BitOR($WS_CAPTION, $WS_SYSMENU) Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 30, 2014 Moderators Share Posted October 30, 2014 behdadsoft,The Setting Styles tutorial in the Wiki explains why you should use BitOr when setting styles. 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...
behdadsoft Posted October 30, 2014 Author Share Posted October 30, 2014 (edited) I read it but can't understand. it's not clear and don't tell any thing about how should use it. Edited October 30, 2014 by behdadsoft Link to comment Share on other sites More sharing options...
BrewManNH Posted October 30, 2014 Share Posted October 30, 2014 Yes it does. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 30, 2014 Moderators Share Posted October 30, 2014 behdadsoft, it's not clearPity - I thought it was. >Try this Wikipedia explanation of Bit* operations and see if it helps. 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...
behdadsoft Posted October 30, 2014 Author Share Posted October 30, 2014 I know what is OR Bitwise but and how work. I know how work with numbers.I don't know how work with Styles because them not numbers, I need this issue. Link to comment Share on other sites More sharing options...
czardas Posted October 30, 2014 Share Posted October 30, 2014 (edited) 1001 = 9 0011 = 3 1011 = 11 ==> BitOR (9, 3) 1100 = 12 ==> 9 + 3 ; The result of BitOR is different to addition. Styles are actually numbers, but they are given names and labelled as constant values. When your script runs, the styles are converted to numbers internally. Edited October 30, 2014 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 30, 2014 Moderators Share Posted October 30, 2014 behdadsoft,I don't know how work with Styles because them not numbersAs explained in the tutorial which you so blithely dismissed, styles ARE numbers, pure and simple. 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...
behdadsoft Posted October 30, 2014 Author Share Posted October 30, 2014 (edited) As explained in the tutorial which you so blithely dismissed, styles ARE numbers, pure and simple. Ok, if are numbers why don't calculate this code? #include <Constants.au3> #include <GUIConstants.au3> Local $Resault = BitOR($WS_CAPTION, $WS_SYSMENU) MsgBox (0, "Resault","", $Resault) Edited October 30, 2014 by behdadsoft Link to comment Share on other sites More sharing options...
czardas Posted October 30, 2014 Share Posted October 30, 2014 #include <Constants.au3> #include <GUIConstants.au3> Local $Resault = BitOR($WS_CAPTION, $WS_SYSMENU) MsgBox (0, "Resault",$Resault) operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
BrewManNH Posted October 30, 2014 Share Posted October 30, 2014 Ok, if are numbers why don't calculate this code? Because you don't know how to use a MsgBox, your $Resault is in the timeout parameter. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
behdadsoft Posted October 30, 2014 Author Share Posted October 30, 2014 (edited) I Fix it. Now what mean this resault?what is make? #include <Constants.au3> #include <GUIConstants.au3> Local $Resault = BitOR($WS_CAPTION, $WS_SYSMENU) MsgBox (0, "Resault",$Resault,0) resault = 13107200 there is any Style with this number? Edited October 30, 2014 by behdadsoft Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 30, 2014 Moderators Share Posted October 30, 2014 behdadsoft, there is any Style with this number?Of course not - that is the result of combining the 2 styles $WS_CAPTION & $WS_SYSMENU. 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...
behdadsoft Posted October 30, 2014 Author Share Posted October 30, 2014 Of course not - that is the result of combining the 2 styles $WS_CAPTION & $WS_SYSMENU. OK, combining this 2 styles ($WS_CAPTION & $WS_SYSMENU) What to bring? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 30, 2014 Moderators Share Posted October 30, 2014 behdadsoft,You combine the 2 styles to create a GUI that has a title bar AND a sysmenu. If you do not have a title bar you cannot have a sysmenu because having a sysmenu on its own makes no sense if there is not a title bar to hold it. 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