Merchants Posted November 4, 2010 Share Posted November 4, 2010 (edited) what is the restyle to remove the red? Edited November 4, 2010 by Merchants Link to comment Share on other sites More sharing options...
BrewManNH Posted November 4, 2010 Share Posted November 4, 2010 You could use the $WS_EX_TOOLWINDOW extended parameter in the GUICreate like thisGuiCreate("test", 100, 100, -1, -1, $GUI_SS_DEFAULT_GUI, $WS_EX_TOOLWINDOW)The only problem with using that is you don't have a taskbar icon and you can't ALT-Tab to the window, so it may get lost behind all of your other windows. If you wanted to get rid of just the minimize and maximize buttons you could use the $WS_SYSMENU parameter instead. That will give you a taskbar icon, and the left hand system menu style. 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...
Merchants Posted November 5, 2010 Author Share Posted November 5, 2010 (edited) can i not somthink like this? GUISetStyle($WS_CAPTION, $WS_BORDER) Edited November 6, 2010 by Merchants Link to comment Share on other sites More sharing options...
Merchants Posted November 6, 2010 Author Share Posted November 6, 2010 up Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 6, 2010 Moderators Share Posted November 6, 2010 Merchants, Before I tell you how to do what you want, please tell me why you want to do 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...
Merchants Posted November 7, 2010 Author Share Posted November 7, 2010 i need it Link to comment Share on other sites More sharing options...
BrewManNH Posted November 7, 2010 Share Posted November 7, 2010 can i not somthink like this? GUISetStyle($WS_CAPTION, $WS_BORDER) Using that style you wouldn't have any buttons at all on the title bar, you'd have no "X". If that's the style you're looking for then you need to change what you pointed to in the first post, because you were asking to have everything gone but the "X" button, I assumed so that you could use it to close the window. If you were interested in not having a title bar at all, you could also look at the $WS_POPUPWINDOW style, that gives you a borderless no titlebar window. 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...
GEOSoft Posted November 7, 2010 Share Posted November 7, 2010 Thanks to a couple of functions by rover here.#Include<WindowsConstants.au3> #include <GUIConstantsEX.au3> $hGUI = _GUI_NoIcon("TEST") GUISetState() While 1 If GUIGetMsg() = -3 Then Exit WEnd Func _GUI_NoIcon($sTitle, $iWidth = -1, $iHeight = -1, $iXpos = -1, $iYpos = -1) Local $GCL_HICONSM = -34, $GCL_HICON = -14 Local $hWnd = GUICreate($sTitle, $iWidth, $iHeight, $iXpos, $iYpos, _ BitOR($WS_CAPTION, $WS_SYSMENU), $WS_EX_DLGMODALFRAME) Local $hIcon = GetClassLong($hWnd, $GCL_HICON) DllCall("User32.dll", "int", "DestroyIcon", "hwnd", $hIcon) SetClassLong($hWnd, $GCL_HICON, 0) SetClassLong($hWnd, $GCL_HICONSM, 0) Return $hWnd EndFunc ;<==> _GUI_NoIcon() Func GetClassLong($hWnd, $nIndex) ;; By rover Local $hResult = DllCall("user32.dll", "dword", "GetClassLong", "hwnd", $hWnd, "int", $nIndex) Return $hResult[0] EndFunc ;<==> GetClassLong() Func SetClassLong($hWnd, $nIndex, $dwNewLong) ;; By rover Local $hResult = DllCall("user32.dll", "dword", "SetClassLong", "hwnd", $hWnd, "int", $nIndex, "long", $dwNewLong) Return $hResult[0] EndFunc ;<==> SetClassLong() George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Yashied Posted November 7, 2010 Share Posted November 7, 2010 @GEOSoft I would add the parent window that the icon was not present in the ALT+TAB window. GUICreate($sTitle, $iWidth, $iHeight, $iXpos, $iYpos, BitOR($WS_CAPTION, $WS_SYSMENU), $WS_EX_DLGMODALFRAME, GUICreate('', -1, -1, -1, -1, -1, $WS_EX_TOOLWINDOW)) My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Developers Jos Posted November 7, 2010 Developers Share Posted November 7, 2010 i need itWe knew that much already... the question was for what purpose? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GEOSoft Posted November 7, 2010 Share Posted November 7, 2010 @Yashied The problem I have there is it also hides the GUI when I use Alt + Tab. Other than that it's a great idea. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Merchants Posted November 7, 2010 Author Share Posted November 7, 2010 (edited) good that was what i am looking for buti normal use GUICreate("Test", 150, 100, -1, -1, -1, -1, WinGetHandle(""))then the title bar in taksbar wil be gonecan you add that plz i have tryd but everytime error... Edited November 7, 2010 by Merchants Link to comment Share on other sites More sharing options...
Merchants Posted November 7, 2010 Author Share Posted November 7, 2010 found it: Local $hWnd = GUICreate($sTitle, $iWidth, $iHeight, $iXpos, $iYpos, BitOR($WS_CAPTION, $WS_SYSMENU), $WS_EX_DLGMODALFRAME, WinGetHandle("")) Link to comment Share on other sites More sharing options...
Developers Jos Posted November 7, 2010 Developers Share Posted November 7, 2010 Toch wel grappig hoe jij sommige vragen ontwijkt .... geeft me zo'n goed gevoel over jou. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Merchants Posted November 7, 2010 Author Share Posted November 7, 2010 je meent het btw this no ico works only in x32 and not x64! Link to comment Share on other sites More sharing options...
Merchants Posted November 10, 2010 Author Share Posted November 10, 2010 help? Link to comment Share on other sites More sharing options...
GEOSoft Posted November 10, 2010 Share Posted November 10, 2010 You may have to wait. I can't test it because I won't use x64 systems. Besides I thought you were a bit too flippant with Jos in the last reply. He is one of the people around here that you best treat with a lot of respect. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Developers Jos Posted November 10, 2010 Developers Share Posted November 10, 2010 He is one of the people around here that you best treat with a lot of respect.I believe each person deserve respect at first, but the answer I have gotten in Dutch tell me that my feeling is right not have too much trust in this member.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Merchants Posted November 10, 2010 Author Share Posted November 10, 2010 super so it is not really fixabile ? Link to comment Share on other sites More sharing options...
Developers Jos Posted November 11, 2010 Developers Share Posted November 11, 2010 super so it is not really fixabile ?You mean you or your posted question? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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