Jump to content

Grid Nesnesi


crazybross
 Share

Recommended Posts

Grid nesnesinin On Selection Changed evresine şu kodları yazdım

 

 

Not:Sorunlu kısım Başında Odano yazan input

 tablo = Grid.GetFocusCell("tablo");

 odano = Grid.GetCellText("tablo", tablo.Row, tablo.Column);

Input.SetText("oda", odano);

Aldığım sonuç istediğim gibi orda sıkıntı yok

 

LaAb2G.png

 

 

Ancak yön tuşlarıyla grid nesnesinde hücreleri gezebiliyorum ve gezerken istediğim sonucu alamıyorum bana yanlış değer döndürüyor.
 

NqAZbP.png

 

Bu sorunu çözebilirmiyiz ?

Edited by crazybross
Link to comment
Share on other sites

  • 2 hafta sonra ...
  • Editor

On key eventında yaz aynı kodları.

 

Ama on key event ında if e_Modifiers = sağtuş  gibi kontrol koyki sadece yön tuşlarıyla çalışsın kodlar

Link to comment
Share on other sites

Grid nesnesinin On Selection Changed evresine şu kodları yazarsanız olacaktır:

odano = Grid.GetCellText("tablo", e_Row, e_Column);
Input.SetText("oda", odano);

pairs'e not: grid'de on key eventi yok hatta doğru düzgün event bile yok. ardı kökü 2 tane event var  :D

Link to comment
Share on other sites

Kintaro abi kodlarım bu  dediğin kod çalışmadı Pairs sende bakabilirsen zahmet olacak ama





 tablo = Grid.GetFocusCell("tablo");


 Grid.SetFocusCell("tablo", tablo.Row, tablo.Column);

 
 odano = Grid.GetCellText("tablo", tablo.Row, tablo.Column);

Input.SetText("oda", odano);



if odano=="" then
GrafikTemizle()



else
Input.SetText("oda", odano);

	renk = Grid.GetCellColors("tablo", tablo.Row, tablo.Column);--secili rengi cek
	if renk.Background==49188 then--oda bos ise
	GrafikTemizle()
	else-- oda dolu ise
	rezerno = INIFile.GetValue("AutoPlay\\Docs\\ayarlar\\ayarlar.ini", "Musteriler", odano);
	yol="AutoPlay\\Docs\\musteriler\\"..odano.."\\"..rezerno..".ini"
	bilgial(yol)
	local hesap = String.Find(isim, " ", 0, false);
	local yeni_ad = String.Left(isim, hesap-1);
	local yeni_soyad = String.Replace(isim, yeni_ad.." ", "", false);
	Input.SetText("oda", odano);
	Input.SetText("ad", yeni_ad);
	Input.SetText("soyad", yeni_soyad);
	-----------------------------------
	Input.SetText("rno", String.Replace(odano..giris, ".", "", false));
	Input.SetText("pno", pasaport);
	Input.SetText("ksayi", kisisayi);
	-----------------------------------
	Input.SetText("gtarih", giris);
	Input.SetText("ctarih", cikis);
	Input.SetText("gsayi", kalinangun);
	------------------------------------
	Input.SetText("tutar", tutar);
	Input.SetText("bilgi", bilgi);
	Input.SetText("otipi", odeme);
		
	end


end--deger bossa ifi






Link to comment
Share on other sites

Tabiki daha sağlıklı olur,ancak şuan için ben ini dosyalarıyla böyle bir proje yaptım, ams acces verirabanı destekliyormu onu bilmiyorum,konuya hakim biri o sorunu cevaplasın ancak sqlite oracle ve mysql desteğini görmüştüm.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...