Sayfayı Yazdır | Pencereyi Kapat

cursor image

Nereden Yazdırıldığı: Clomosy | Forum
Kategori: Genel Programlama
Forum Adı: Genel İşlemler
Forum Tanımlaması: TRObject dili ile programlama yaparken karşılaşılan genel işlemler
URL: https://forum.clomosy.com.tr/forum_posts.asp?TID=1248
Tarih: 10 Mart 2026 Saat 03:33
Program Versiyonu: Web Wiz Forums 12.07 - https://www.webwizforums.com


Konu: cursor image
Mesajı Yazan: Alperen Bayam
Konu: cursor image
Mesaj Tarihi: 23 Aralık 2025 Saat 21:03
clomosyde mouse imlecine yani cursoruma nasıl bir image ataybilirim? https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" rel="nofollow - https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{"version":"2024.11.0","token":"439455f3e46c40b98dbd42a2f1a954d8","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}" crossorigin="anonymous">



Cevaplar:
Mesajı Yazan: Emr.Erkmn
Mesaj Tarihi: 24 Aralık 2025 Saat 09:18
Merhaba Alperen,
Clomosy' de standart bir web uygulaması olduğu için doğrudan .cur veya .ani dosyasını yükleyip cursor  özelliğine atamak yerine sahte imleç yapabiliriz.

var
  MyForm : TclForm;
  MyCursor : TclProImage;
  TestBtn : TclProButton;

// Fare her hareket ettiğinde çalışacak prosedür
void MoveCursorImage;
{
  MyCursor.Position.X = MyForm.clFormMousePosX; 
  MyCursor.Position.Y = MyForm.clFormMousePosY;
  
}

{
  MyForm = TclForm.Create(Self);
  
  TestBtn = MyForm.AddNewProButton(MyForm, 'TestBtn', 'Tıklama Testi');
  TestBtn.Align = alCenter;
  TestBtn.Height = 50;
  TestBtn.clProSettings.BackgroundColor = clAlphaColor.clRed;
  TestBtn.SetclProSettings(TestBtn.clProSettings);
  
  // 2. İmleç Olacak Resim
  MyCursor = MyForm.AddNewProImage(MyForm, 'MyCursor');
  MyCursor.clSetImage(' https://resmim.net/cdn/2025/12/24/w3oiVi.png" rel="nofollow - https://resmim.net/cdn/2025/12/24/w3oiVi.png '); 
  MyCursor.Width = 40;
  MyCursor.Height = 40;
  MyCursor.Align = alNone; // Serbest dolaşabilmesi için None olmalı
  
  MyCursor.HitTest = False; 
  
  MyForm.AddNewEvent(MyForm, tbeOnMouseMove, 'MoveCursorImage');
  

  MyForm.Run;


Örnek kodu bu şekilde.
https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" rel="nofollow - https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{"version":"2024.11.0","token":"439455f3e46c40b98dbd42a2f1a954d8","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}" crossorigin="anonymous">


Mesajı Yazan: Alperen Bayam
Mesaj Tarihi: 24 Aralık 2025 Saat 11:01
Teşekkürler hocam https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" rel="nofollow - https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{"version":"2024.11.0","token":"439455f3e46c40b98dbd42a2f1a954d8","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}" crossorigin="anonymous">



Sayfayı Yazdır | Pencereyi Kapat

Forum Software by Web Wiz Forums® version 12.07 - https://www.webwizforums.com
Copyright ©2001-2024 Web Wiz Ltd. - https://www.webwiz.net