Jump to content

Resim Ve Checkbox


Dj Demir

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...