Jump to content

Guiyi Araç Çubuğundan Gizlemek Nasıl?


x_files_x
 Share

Recommended Posts

Mrb arkadaşlar benim elimde küçüçük bir gui var, sadece yapmak istedigim şey, bu gui açılınca araç cubugunda ismi ve ikonu olmasın istiyorum, sistem tray demiyorum yanlıs anlasılmasın, arka planda da calısılsın demiyorum, guinin penceresi ekrana gelsin ama altta menüde ismi ve simgesi olmasın, şunu yaparsanız ben kendime göre ayarlarım,

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 182, 79, 192, 124)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
$Button1 = GUICtrlCreateButton("Button1", 8, 8, 163, 25)
GUICtrlSetOnEvent(-1, "Button1Click")
$Button2 = GUICtrlCreateButton("Button2", 8, 40, 163, 25)
GUICtrlSetOnEvent(-1, "Button2Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	Sleep(100)
WEnd


Func Button1Click()
EndFunc

Func Button2Click()
EndFunc

Func Form1Close()
Exit
EndFunc

Func Form1Minimize()
EndFunc
Link to comment
Share on other sites

Koda Form Designer'ı biraz incelesen istediğin şeyi yaparsın. Misal:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 437, 192, 124, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd


Link to comment
Share on other sites

kodada sadece forum olusturup butonlara kod filan yerlestirmeyi biliyom, acemi sayılırım autoit konusunda, acaba püf noktası nedir nerden, yok ettin o araç cubugundaki yerden, sanırım guiecreat in sonundaki kodlardan oluyordu,

Link to comment
Share on other sites

#include <StaticConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <Constants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 437, -1, -1)
Global $hDesktop = ControlGetHandle("[CLASS:Progman]", "", "SysListView321")
_WinAPI_SetWindowLong($Form1 , $GWL_HWNDPARENT, $hDesktop)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd

ilgili yer

Global $hDesktop = ControlGetHandle("[CLASS:Progman]", "", "SysListView321")
_WinAPI_SetWindowLong($Form1 , $GWL_HWNDPARENT, $hDesktop)

 
 
ilgili yerdeki kodu pek tavsiye etmiyorum ,bu şekildede oluyor ama bu özel durumlar içindir
dediğiniz durumda göstermek için bazen stiller destek vermiyor ,  o zaman kullanılır bu kod

 

özel durum için bir örnek kod

http://www.tnctr.com/topic/218160-perforated-image-oernedhi/

ve
 
asmazh dostumun dediği olabilir,

$Form1 = GUICreate("Form1", 615, 437, -1, -1,-1, $WS_EX_TOOLWINDOW)

şeklindede yapabilirsiniz

Edited by mesale0077
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...