Abdullah 37 Posted May 22, 2010 Share Posted May 22, 2010 Arkadaşlar programı çalıştırdığımız zaman programın otomatik olarak ekranın üst veya alt kısmına yerleşmesini nasıl sağlarız.? Link to comment Share on other sites More sharing options...
casira Posted May 22, 2010 Share Posted May 22, 2010 winapi pluginini kullanabilirsin. Link to comment Share on other sites More sharing options...
egemynet Posted May 22, 2010 Share Posted May 22, 2010 Sol ust koşe yer = Application.GetWndHandle(); Window.SetPos(yer, 0, 0) Link to comment Share on other sites More sharing options...
Abdullah 37 Posted May 22, 2010 Author Share Posted May 22, 2010 Sol ust koşe yer = Application.GetWndHandle(); Window.SetPos(yer, 0, 0) köşe derken ekranın üst ortasında Link to comment Share on other sites More sharing options...
casira Posted May 22, 2010 Share Posted May 22, 2010 0 sayılarını değiştirerek deneyerek bulabilirsin. yer = Application.GetWndHandle(); Window.SetPos(yer, 0, 0) Buradaki ilk 0 x yani pencereni soldan 0 pikselde başlatır.İkinci 0 y yani pencereni yukardan 0 pikselde başlatır. Biraz matematik yapalım Mesela bilgisayarının ekran çönürlüğü 1024x768 varsayıyorum. Yaptığın program projen ise 600x400 ebatlarında varsayıyorum. Bu durumda 1024/2=512 600/2=300 512-300=212 x sayımız oluyor y zaten 0 şimdi kodumuzu yazalım. yer = Application.GetWndHandle(); Window.SetPos(yer, 212, 0) Bu kodları sayfanın on Show evresine ekledinmi işlem tamamdır. Link to comment Share on other sites More sharing options...
spydevil Posted May 22, 2010 Share Posted May 22, 2010 Ekranın tam ortası için; local tbSistemCozunurluk = System.GetDisplayInfo(); local tbPencereBoyut = Window.GetSize(Application.GetWndHandle()); Window.SetPos(Application.GetWndHandle(), (tbSistemCozunurluk.Width / 2 - tbPencereBoyut.Width / 2), (tbSistemCozunurluk.Height / 2 - tbPencereBoyut.Height / 2));[/CODE] Ekranın üst orta için; [CODE]local tbSistemCozunurluk = System.GetDisplayInfo(); local tbPencereBoyut = Window.GetSize(Application.GetWndHandle()); Window.SetPos(Application.GetWndHandle(), (tbSistemCozunurluk.Width / 2 - tbPencereBoyut.Width / 2), 0);[/CODE] Link to comment Share on other sites More sharing options...
cyber01 Posted June 23, 2010 Share Posted June 23, 2010 peki yapmış olduğumuz bir projeyi mesela radyo proğramı bunu saatin yanına nasıl gizleye biliriz. Link to comment Share on other sites More sharing options...
KintaRo Posted June 23, 2010 Share Posted June 23, 2010 Programı sol üst köşeye sabitlemek için Project > Actions > On Startup evresine: Window.SetPos(Application.GetWndHandle(), 0, 0)[/CODE] Eğer sürekli oraya sabitlemek istiyorsanız; Page On Preload evresine: [CODE]Page.StartTimer(100)[/CODE] On Timer evresine: [CODE]Window.SetPos(Application.GetWndHandle(), 0, 0)[/CODE] Programın saatin orda çıkması içinde Project Settings'den System Tray'i seçin. Link to comment Share on other sites More sharing options...
cyber01 Posted June 23, 2010 Share Posted June 23, 2010 Teşekkür ederim. sağol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.