IRCForum  

Geri Git   IRCForum > mIRC Scripting ve Sohbet Programları > mIRC Scripting Dersleri

Kullanıcı Etiket Listesi

Yeni Konu aç Yanıtla
 
LinkBack Seçenekler Stil
Eski 25 Nisan 2012, 08:03   #1 (permalink)
Moderator
 
Rohit Kullanıcısının Avatarı
 
Kayıt tarihi: 13 Nisan 2012
Yaşadığı yer: Macedonia
Yaş: 23
Mesajlar: 49
IRC: zardon.net
Web: www.Zardon.Net
Uzmanlık alanı: mIRC Scripting
Tesekkurler: 44
25 Mesajina 36 Tesekkur Aldi
Rep gücü: 4
Rohit is just really niceRohit is just really niceRohit is just really niceRohit is just really nice
Standart mtoolbar button dersi

Bu ders ‘te size mToolbar Designer v.Beta ‘daki Button
olusturma ozelliklerini anlaticam.

Dersi Anlatan : Rohit
Gerekli Malzeme ;

  • mToolbar.Dll
  • Hos.Dll
  • mtb isminde bir klasor
  • 2 tane icon isimler ; go.ico – toolbox.ico
* \ Sorular \*
[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak İçin TIKLAYINIZ...] ile Button meydana nasil gelir ?

Button’a tikladigim zaman belirttigim dialog’u Nasil aktivite eder ?

icon nasil eklerim ?

Rengini ve Seklini Nasil Ayarlarim ?

1. Button Baslangic.
Kod:
mtb Toolbar AddButton 1 17 5 149 67 > 1. Start
mtb Toolbar ButtonColors -i 1 16777215 15199215 8421504 13029334 15463415 16771022 15697005 13562879 38631
mtb Toolbar ButtonEnabled -i 1 $true
mtb Toolbar ButtonIconSize 1 16 16
mtb Toolbar ButtonShowTooltip -i 1 $false
mtb Toolbar ButtonShowFocusRect -i 1 $false
mtb Toolbar ButtonTooltip 1 >



2. Button Renklendirme
Kod:
on *:dialog:mircdb_toolbar:init:*: {
if ($mtbdll(IsTreeBar) == $true) mtb KillTreeBar
if ($mtbdll(IsToolbar) == $true) mtb KillToolbar
hos Dock $dname top 0
hos DockSize $dname 115
mtb Toolbar Create 115 $dname
mtb Toolbar ShowBgColor $false
mtb Toolbar BgColor 15395562 10987431 16711680
mtb Toolbar ShowBgPicture $false
mtb Toolbar BgPicture > none
mtb Toolbar BgGradStyle Butterfly
mtb Toolbar BgGradShift 0
mtb Toolbar BgGradRotation 0
mtb Toolbar ShowBgTooltip $false
mtb Toolbar BgTooltip > $chr(32)
mtb Toolbar BgDrawBorder $false
mtb Toolbar AddButton 1 17 5 149 67 > 1. Start
mtb Toolbar ButtonColors -i 1 16711680 0 255 13029334 15463415 16771022 15697005 13562879 38631
mtb Toolbar ButtonEnabled -i 1 $true
mtb Toolbar ButtonIconSize 1 16 16
mtb Toolbar ButtonShowTooltip -i 1 $false
mtb Toolbar ButtonShowFocusRect -i 1 $false
mtb Toolbar ButtonTooltip 1 >
mtb Toolbar ButtonIconPos -i 1 left
mtb Toolbar ButtonGradientStyle -i 1 LinearH
mtb Toolbar ButtonFont -i 1 9 +b 16777215 > Tahoma
mtb Toolbar ButtonShowHotTrack 1 $false
mtb Toolbar ButtonText 1 > 1. Start
}



3. icon ekleme
Kod:
dialog mircdb_toolbar {
title “New Project”
size -1 -1 372 50
option dbu
}
on *:dialog:mircdb_toolbar:init:*: {
if ($mtbdll(IsTreeBar) == $true) mtb KillTreeBar
if ($mtbdll(IsToolbar) == $true) mtb KillToolbar
hos Dock $dname top 0
hos DockSize $dname 108
mtb Toolbar Create 108 $dname
mtb Toolbar ShowBgColor $false
mtb Toolbar BgColor 15395562 10987431 16711680
mtb Toolbar ShowBgPicture $false
mtb Toolbar BgPicture > none
mtb Toolbar BgGradStyle Butterfly
mtb Toolbar BgGradShift 0
mtb Toolbar BgGradRotation 0
mtb Toolbar ShowBgTooltip $false
mtb Toolbar BgTooltip > $chr(32)
mtb Toolbar BgDrawBorder $false
mtb Toolbar AddButton 1 5 3 216 67 > Connect \ Disconnect
mtb Toolbar ButtonIcon 1 > C:\ \A LL\Codes\button ico\48X48\go.ico
mtb Toolbar ButtonColors -i 1 16711680 0 255 13029334 15463415 16771022 15697005 13562879 38631
mtb Toolbar ButtonEnabled -i 1 $true
mtb Toolbar ButtonIconSize 1 32 32
mtb Toolbar ButtonShowTooltip -i 1 $false
mtb Toolbar ButtonShowFocusRect -i 1 $false
mtb Toolbar ButtonTooltip 1 >
mtb Toolbar ButtonIconPos -i 1 left
mtb Toolbar ButtonGradientStyle -i 1 LinearH
mtb Toolbar ButtonFont -i 1 9 +b 16777215 > Tahoma
mtb Toolbar ButtonShowHotTrack 1 $false
mtb Toolbar ButtonText 1 > Connect \ Disconnect
mtb Toolbar AddButton 4 224 3 238 67 > Control Panel
mtb Toolbar ButtonIcon 4 > C:\ \A LL\Codes\button ico\48X48\toolbox.ico
mtb Toolbar ButtonColors -i 4 16711680 0 255 13029334 15463415 16771022 15697005 13562879 38631
mtb Toolbar ButtonEnabled -i 4 $true
mtb Toolbar ButtonIconSize 4 32 32
mtb Toolbar ButtonShowTooltip -i 4 $false
mtb Toolbar ButtonShowFocusRect -i 4 $false
mtb Toolbar ButtonTooltip 4 >
mtb Toolbar ButtonIconPos -i 4 left
mtb Toolbar ButtonGradientStyle -i 4 LinearH
mtb Toolbar ButtonFont -i 4 9 +b 16777215 > Tahoma
mtb Toolbar ButtonShowHotTrack 4 $false
mtb Toolbar ButtonText 4 > Control Panel
}



4. Botton Aktivite (tiklama)
Kod:
on *:signal:mToolbar:{
if $1 == sclick {
;echo -a $1-
if $4 == 1 { if ($scid($activecid).status = connecting ||  $scid($activecid).status = connected ) { scid $activecid disconnect } |  else { scid $activecid server } scid $activecid window -a “status  window”  }
if $4 == 2 { dialog -m cpanel cpanel }
}
}
5. Deneme Toolbar.
Kod:
alias tb if $dialog(mircdb_toolbar) { dialog -c mircdb_toolbar  mircdb_toolbar } | else { dialog -m mircdb_toolbar mircdb_toolbar }
alias mircdb_toolbar {
}
alias hos dll $shortfn(mtb/hos.dll) $1-
alias mtbdll return $dll($shortfn(mtb/mtoolbar.dll),$1,)
alias mtb dll $shortfn(mtb/mtoolbar.dll) $1-
dialog mircdb_toolbar {
title “MedyaToolbar”
size -1 -1 372 25
option dbu
}
 on *:dialog:mircdb_toolbar:init:*: {
if ($mtbdll(IsTreeBar) == $true) mtb KillTreeBar
if ($mtbdll(IsToolbar) == $true) mtb KillToolbar
hos Dock $dname top 0
hos DockSize $dname 80
mtb Toolbar Create 80 $dname
mtb Toolbar ShowBgColor $false
mtb Toolbar BgColor 15395562 10987431 16711680
mtb Toolbar ShowBgPicture $false
mtb Toolbar BgPicture > none
mtb Toolbar BgGradStyle Butterfly
mtb Toolbar BgGradShift 0
mtb Toolbar BgGradRotation 0
mtb Toolbar ShowBgTooltip $false
mtb Toolbar BgTooltip > $chr(32)
mtb Toolbar BgDrawBorder $false
mtb Toolbar AddButton 1 5 3 216 67 > Connect \ Disconnect
mtb Toolbar ButtonIcon 1 > mtb\go.ico
mtb Toolbar ButtonColors -i 1 16711680 0 255 13029334 15463415 16771022 15697005 13562879 38631
mtb Toolbar ButtonEnabled -i 1 $true
mtb Toolbar ButtonIconSize 1 32 32
mtb Toolbar ButtonShowTooltip -i 1 $false
mtb Toolbar ButtonShowFocusRect -i 1 $false
mtb Toolbar ButtonTooltip 1 >
mtb Toolbar ButtonIconPos -i 1 left
mtb Toolbar ButtonGradientStyle -i 1 LinearH
mtb Toolbar ButtonFont -i 1 9 +b 16777215 > Tahoma
mtb Toolbar ButtonShowHotTrack 1 $false
mtb Toolbar ButtonText 1 > Connect \ Disconnect
mtb Toolbar AddButton 4 224 3 238 67 > Control Panel
mtb Toolbar ButtonIcon 4 > mtb\toolbox.ico
mtb Toolbar ButtonColors -i 4 16711680 0 255 13029334 15463415 16771022 15697005 13562879 38631
mtb Toolbar ButtonEnabled -i 4 $true
mtb Toolbar ButtonIconSize 4 32 32
mtb Toolbar ButtonShowTooltip -i 4 $false
mtb Toolbar ButtonShowFocusRect -i 4 $false
mtb Toolbar ButtonTooltip 4 >
mtb Toolbar ButtonIconPos -i 4 left
mtb Toolbar ButtonGradientStyle -i 4 LinearH
mtb Toolbar ButtonFont -i 4 9 +b 16777215 > Tahoma
mtb Toolbar ButtonShowHotTrack 4 $false
mtb Toolbar ButtonText 4 > Control Panel
}
on *:start: dialog -m mircdb_toolbar mircdb_toolbar
__________________
" IRC volunteer .. "

I Am Yours..
Rohit şu anda çevrimiçi!   Alıntı ile Cevapla
Yanıtla

Etiketler
button, dersi, mtoolbar


Şu anda bu başlığı 1 kişi görüntülemekte. (0 kayıtlı kullanıcı, 1 ziyaretçi)
 
Seçenekler
Stil

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code durumu, Açık
Smileler Açık
[IMG] kodları, Açık.
HTML kodları, Kapalı.
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Hızlı Geç


Zaman formatı: GMT.
Şu an saat: 12:55.


Powered by vBulletin® Version 3.8.4   Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Site açıklaması: IRC daemon - mIRC Scripting başta olmak üzere web teknolojileri, SEO ve bunların yanında güncel bilgilere yer veren IRC ağırlıklı forum sitesi.

YASAL UYARI!
5651 sayılı kanunun 8. maddesine ve Türk Ceza Kanununun 125. maddesine göre, foruma eklenen içeriklerden ilgili içeriği ekleyen kullanıcı ve içeriğin üreticisi sorumludur. Hukuksal şikâyetleriniz için yargı kanalına başvurmadan önce, IRCForum yönetimine iletisim[at]ircforum[dot]com eposta adresini kullanarak bildirdiğiniz takdirde şikâyetleriniz, en geç bir gün (yirmi dört saat) içerisinde işleme alınacak ve sorun teşkil eden içerik siteden geri dönüşümsüz biçimde silinecektir.

Bilgi: Tema üzerinde çalışmalarımız etkin olarak devam etmektedir.