Dj Demir Posted August 16, 2010 Share Posted August 16, 2010 Herhangi bir gui tasarladığımız zaman guinin ana sahnesine resim ekleriz genelde bende resim ekledim şık dursun diye . ama resimin üstüne Checkbox koymam lazım Checkbox koyduğum zaman çok iğrenç duruyor . çoğunuz denemişsinizdir herhalde ne demek istediğim anlaşılmıştır umarım yok mu bir hal çaresi Checkboxu koyduğumuz zaman sırıtmayacak bir yöntem? Teşekkürler . Link to comment Share on other sites More sharing options...
blackman12 Posted August 16, 2010 Share Posted August 16, 2010 GUICtrlCreateCheckbox komutundan sonra GUICtrlSetBkColor(-1,-2) satırı koyarsan sorun kalmaz. Birde arkaplan resmini GuiCtrlCreatePic ile oluşturduktan sonraki satıra Guictrlsetstate(-1,$gui_disable) koyman gerekli Link to comment Share on other sites More sharing options...
djonur007 Posted August 16, 2010 Share Posted August 16, 2010 peki resim üzerine tab nasıl koyacağız? bir türlü yapamadım Link to comment Share on other sites More sharing options...
blackman12 Posted August 16, 2010 Share Posted August 16, 2010 yardım dosyasında aynen anlatıyor: Function GUICtrlCreatePicIf a picture is set as a background picture, as the other controls will overlap, it's important to disable the pic control and create it after the others controls: GuiCtrlSetState(-1,$GUI_DISABLE). This is not enough for Tab or Listview control which behave differently. In this case you need to create the picture with the $WS_CLIPSIBLINGS style, GuiCtrlSetState(-1,$GUI_ONTOP) is necessary for the Tab, TreeView or Listview control. çeviri: eğer bir resmi arkaplan olarak kullanacaksanız, diğer kontroller resmin üzerinde olmalıdır. burada önemli olan resim kontrolünü disable hale getirdikten sonra diğer kontrolleri oluşturmaktır kısacası resimden sonra : GuiCtrlSetState(-1,$GUI_DISABLE) yap diyor. bu durum tab ve listview öğeleri için yeterli değildir.bu durumlarda arkaplan olacak resim öğesi oluşturulurken $WS_CLIPSIBLINGS stiliyle oluşturulur. tab oluşturulduktan sonra da ontop duruma getirilmelidir tab treeview ve listview için. kısacası: resim oluşturulurken $WS_CLIPSIBLINGS stiliyle oluşturulur. tab oluşturulduktan sonraki satıra GuiCtrlSetState(-1,$GUI_ONTOP) komutu girilir. Link to comment Share on other sites More sharing options...
djonur007 Posted August 17, 2010 Share Posted August 17, 2010 on top'u düşünmüştüm ama komutu bilmediğim için. eyv'Allah blackman... Link to comment Share on other sites More sharing options...
Dj Demir Posted August 18, 2010 Author Share Posted August 18, 2010 Ben O BkColor'daki -2'yi başka birşey anlamışım Meğerse renk koduymuş demek istediğim bu değildi çünkü her gui tasarımı yaptığımızda checkboxun arka plan rengini resime mi uyarlayacaz bu hep böyle devam etmemeli herhalde benim demek istedigim Checkbox'un arka plan rengini transparan yapmak istedigimiz resimin ya da başka bir yerin üstüne bıraktığımız zaman sorun kalmayacak bu mümkün değil midir ki bu programda ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.