Sign in to follow this  
Followers 0
Gee

Need help for window applications

2 posts in this topic

#1 ·  Posted (edited)

Hi all

I've been creating so many transparency windows for the same application , each of them come with button mode, Those windows are shown name in tab application inside task manager , My question is : Are there anyway that we can make them like auto-hide inside task manager. Because I see List my Window on tab application It show 6 window name =,=

for example .... I'd made 5 windows but I want it to show name by 1 Primary Window name in task manager

One application with many Window

;===========Mini Window=============
Func _Miniwindow1()
    $MiniWin[0] = GUICreate("MiniWindow1", 60, 60, $X -100, $Y + 60,$WS_POPUP,$WS_EX_TOPMOST+$WS_EX_TOOLWINDOW+$WS_EX_LAYERED)
    $MiniBtn[0] = GUICtrlCreatePic($Icon[0], 0,0,60,60)
    GUICtrlSetTip($MiniBtn[0],"Main Form")
    GUISetState(@SW_SHOW)
EndFunc
;===========Mini Window=============
Func _Miniwindow2()
    $MiniWin[1] = GUICreate("MiniWindow2", 32, 32, $X -50 , $Y ,$WS_POPUP,$WS_EX_TOPMOST+$WS_EX_TOOLWINDOW+$WS_EX_LAYERED)
    $MiniBtn[2] = GUICtrlCreatePic($Icon[1], 0,0,32,32)
    GUISetState(@SW_SHOW)
EndFunc
;===========Mini Window=============
Func _Miniwindow3()
    $MiniWin[2] = GUICreate("MiniWindow3", 32, 32, $X , $Y + 50,$WS_POPUP,$WS_EX_TOPMOST+$WS_EX_TOOLWINDOW+$WS_EX_LAYERED)
    $MiniBtn[3] = GUICtrlCreatePic($Icon[3], 0,0,32,32)
    GUISetState(@SW_SHOW)
EndFunc
;===========Mini Window=============
Func _Miniwindow4()
    $MiniWin[3] = GUICreate("MiniWindow4", 32, 32, $X , $Y + 100,$WS_POPUP,$WS_EX_TOPMOST+$WS_EX_TOOLWINDOW+$WS_EX_LAYERED)
    $MiniBtn[4] = GUICtrlCreatePic($Icon[4], 0,0,32,32)
    GUICtrlSetTip($MiniBtn[4],"Close")
    GUISetState(@SW_SHOW)
EndFunc

;==========
Func _Miniwindow5()
    $MiniWin[4] = GUICreate("MiniWindow5", 32, 32, $X, $Y ,$WS_POPUP +$WS_VISIBLE,$WS_EX_TOPMOST+$WS_EX_TOOLWINDOW+$WS_EX_LAYERED)
    $MiniBtn[5] = GUICtrlCreatePic($Icon[7], 0,0,32,32,0x0100,$GUI_WS_EX_PARENTDRAG)
    GUICtrlSetTip($MiniBtn[5],"Move")
    GUISetState(@SW_SHOW)
EndFunc
;===============
Func _Miniwindow6()
    $MiniWin[5] = GUICreate("MiniWindow6", 100, 40, $X - 200, $Y ,$WS_POPUPWINDOW ,$WS_EX_TOPMOST+$WS_EX_TOOLWINDOW)
    GUISetBkColor(0xABCDEF)
    $MiniBtnô] = GUICtrlCreatePic($Icon[8], 0,0,100,40)
    GUICtrlSetTip($MiniBtn[5],"Open")
    GUISetState(@SW_HIDE)
    EndFunc

:P

Edited by Gee

Share this post


Link to post
Share on other sites



mother-child form :P

If $MiniWin[0] = mother then let other form know it!

exp:

$MiniWin[1] = GUICreate("MiniWindow2", 32, 32, $X -50 , $Y ,$WS_POPUP,$WS_EX_TOPMOST+$WS_EX_TOOLWINDOW+$WS_EX_LAYERED, $MiniWin[0])

note: in ur case $MiniWin[6] must be global right :(

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0