<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : TCL UNİT</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Clomosy ile de&#287;i&#351;ken kullan&#305;m&#305; : TCL UNİT]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 03:03:52 +0000</pubDate>
  <lastBuildDate>Tue, 21 Oct 2025 09:29:11 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1210</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[TCL UNİT : Merhaba G&#246;k&#231;e,Birim ad&#305;n&#305; kontrol...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1210&amp;PID=2609#2609</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1210<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Ekim&nbsp;2025 Saat 09:29<br /><br />Merhaba Gökçe,<br>Birim adını kontrol eder misin?<br>Kodda herhangi bir hata yok.]]>
   </description>
   <pubDate>Tue, 21 Oct 2025 09:29:11 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1210&amp;PID=2609#2609</guid>
  </item> 
  <item>
   <title><![CDATA[TCL UNİT : var Form1 :TclForm; PnlMain, PnlEntry...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1210&amp;PID=2608#2608</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=346">Gökçe ulusoy</a><br /><strong>Konu:</strong> 1210<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Ekim&nbsp;2025 Saat 09:09<br /><br /><div><div>var</div><div>&nbsp; Form1 :TclForm;</div><div>&nbsp; PnlMain, PnlEntry : TclProPanel;</div><div>&nbsp; BtnLogin,BtnSignUp :TCLProButton;</div><div>&nbsp; EdtUName, EdtUPassword : TclProEdit;</div><div>&nbsp; Unit1:TCLUnit;</div><div><br></div><div>void GoToMainPage;</div><div>{</div><div>&nbsp; Unit1.UnitName='Mainpage'</div><div>&nbsp; Unit1.CallerForm=Form1;</div><div>&nbsp; Unit1.Run;</div><div>}</div><div><br></div><div><br></div><div>void GetUserLogin(AUserName,AUserPassword);</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerQuery.SQL.Text =</div><div>&nbsp; &nbsp; &nbsp; 'SELECT * FROM Users WHERE UserName = :UserName AND UserPassword = :UserPassword';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerQuery.ParamByName('UserName').Value= AUserName;</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerQuery.ParamByName('UserPassword').Value= AUserPassword;</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerQuery.ExecSQL;</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerQuery.Connection.Commit;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (not Clomosy.DBSQLServerQuery.Eof)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Login successful.');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GoToMainPage;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(' Login failed.');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('004: Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void GetUserRegistration(AUserName,AUserPassword);</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerQuery.Sql.Text = '</div><div>&nbsp; &nbsp; INSERT INTO Users (UserName, UserPassword) VALUES ('+QuotedStr(AUserName)+', '+QuotedStr(AUserPassword)+')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerQuery.Open;</div><div>&nbsp; &nbsp; ShowMessage('User registered.');</div><div>&nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('003: Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void GetUserControl;</div><div>&nbsp;var</div><div>&nbsp; &nbsp;clickedBtn:TClProButton;</div><div>{</div><div>&nbsp; clickedBtn = TClProButton(Form1.Clsender);&nbsp;</div><div><br></div><div>&nbsp; if((EdtUName.Text &lt;&gt;'' ) &amp;&amp; (EdtUPassword.Text &lt;&gt;'' ))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if(clickedBtn.clTagStr == 'SignUp')</div><div>&nbsp; &nbsp; &nbsp; GetUserRegistration(EdtUName.Text,EdtUPassword.Text);</div><div>&nbsp; &nbsp; else if (clickedBtn.clTagStr == 'Login')</div><div>&nbsp; &nbsp; &nbsp; GetUserLogin(EdtUName.Text,EdtUPassword.Text);</div><div>&nbsp;&nbsp;</div><div>&nbsp; EdtUName.Text = '';</div><div>&nbsp; EdtUPassword.Text = '';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>&nbsp; else ShowMessage('Do not leave username and password blank.');</div><div>}</div><div>&nbsp;&nbsp;</div><div>&nbsp; void SqlserverConnectionCreateTable;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; TableExists: Boolean;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerConnect('SQL Server', 'DESKTOP-2AGN5H8\ATIKER', 'sa', '1', 'Gökyar',1433);</div><div>&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Check if the table exists</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerQuery.Sql.Text='SELECT * FROM sys.tables WHERE name = ''Users''';</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerQuery.Open;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Check the results</div><div>&nbsp; &nbsp; &nbsp; TableExists = not Clomosy.DBSQLServerQuery.Eof;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Create the table if it does not exist</div><div>&nbsp; &nbsp; &nbsp; if not (TableExists)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerQuery.Sql.Text = 'CREATE TABLE Users(</div><div>&nbsp; &nbsp; &nbsp; &nbsp; userID INTEGER PRIMARY KEY AUTOINCREMENT,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; UserName TEXT ,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; UserPassword TEXT )';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerQuery.Open;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Table successfully added to the database!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerQuery.Sql.Text = '</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INSERT INTO Users (UserName, UserPassword) VALUES (''ömer'', ''123456'');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INSERT INTO Users (UserName, UserPassword) VALUES (''leyla'', ''456789'');';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerQuery.Open;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Adding data to the table was successful!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('001: Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Data was added to the existing Users table.');</div><div>&nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('002: Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div><br></div><div>{</div><div>&nbsp; Form1 = TclForm.Create(Self);</div><div>&nbsp; Unit1 = TclUnit.Create;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Form1.SetFormBGImage('<a href="https://resmim.net/cdn/2025/10/17/j7YS9i.webp" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/17/j7YS9i.webp</a>')</div><div>&nbsp; Form1.clsetCaption('Login Page');</div><div>&nbsp; SqLServerConnectionCreateTable;</div><div>&nbsp; PnlMain = Form1.AddNewProPanel(Form1,'PnlMain');</div><div>&nbsp; PnlMain.ALign = AlCenter;</div><div>&nbsp; PnlMain.Height = Form1.clHeight / 3;</div><div>&nbsp; PnlMain.Width = Form1.clWidth - 20;</div><div>&nbsp; PnlMain.clProSettings.BackgroundColor = nil;</div><div>&nbsp; PnlMain.SetclProSettings(PnlMain.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; EdtUName = Form1.AddNewProEdit(PnlMain,'EdtUName', 'User Name');</div><div>&nbsp; EdtUName.Align=alMostTop;</div><div>&nbsp; EdtUName.Height = PnlMain.Height / 4;&nbsp;</div><div>&nbsp; EdtUName.Margins.Top= 5;</div><div>&nbsp; EdtUName.Margins.Left= 10;</div><div>&nbsp; EdtUName.Margins.Left= 10;</div><div>&nbsp; EdtUName.clProSettings.BorderColor = clAlphaColor.clHexToColor('#c838e5');</div><div>&nbsp; EdtUName.clProSettings.BorderWidth = 1;</div><div>&nbsp; EdtUName.clProSettings.RoundHeight = 20;</div><div>&nbsp; EdtUName.clProSettings.RoundWidth = 20;</div><div>&nbsp; EdtUName.clProSettings.IsRound = True;</div><div>&nbsp; EdtUName.SetclProSettings(EdtUName.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; EdtUPassword = Form1.AddNewProEdit(PnlMain,'EdtUPassword', 'User Password');</div><div>&nbsp; EdtUPassword.Align=alMostTop;</div><div>&nbsp; EdtUPassword.Height = PnlMain.Height / 4;</div><div>&nbsp; EdtUPassword.Margins.Top= 5;</div><div>&nbsp; EdtUPassword.Margins.Left= 10;</div><div>&nbsp; EdtUPassword.Margins.Left= 10;</div><div>&nbsp; EdtUPassword.SetclProSettings(EdtUName.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlEntry = Form1.AddNewProPanel(PnlMain,'PnlEntry');</div><div>&nbsp; PnlEntry.ALign = AlBottom;</div><div>&nbsp; PnlEntry.Height = PnlMain.Height / 4;</div><div>&nbsp; PnlEntry.Margins.Top= 5;</div><div>&nbsp; PnlEntry.Margins.Left= 10;</div><div>&nbsp; PnlEntry.Margins.Left= 10;</div><div>&nbsp; PnlEntry.SetclProSettings(PnlMain.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; BtnLogin = Form1.AddNewProButton(PnlEntry,'BtnLogin','Login');&nbsp;</div><div>&nbsp; BtnLogin.Align=alLeft;</div><div>&nbsp; BtnLogin.Width = PnlEntry.Width / 2;</div><div>&nbsp; BtnLogin.clTagStr = 'Login';</div><div>&nbsp; BtnLogin.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; BtnLogin.clProSettings.BorderColor = clAlphaColor.clHexToColor('#c838e5');</div><div>&nbsp; BtnLogin.clProSettings.BorderWidth = 2;</div><div>&nbsp; BtnLogin.clProSettings.RoundHeight = 20;</div><div>&nbsp; BtnLogin.clProSettings.RoundWidth = 20;</div><div>&nbsp; BtnLogin.clProSettings.IsRound = True;</div><div>&nbsp; BtnLogin.SetclProSettings(BtnLogin.clProSettings);</div><div>&nbsp; Form1.AddNewEvent(BtnLogin,tbeOnClick,'GoToMainPage');</div><div>&nbsp; //Form1.AddNewEvent(BtnLogin,tbeOnClick,'GetUserControl');</div><div>&nbsp;&nbsp;</div><div>&nbsp; BtnSignUp = Form1.AddNewProButton(PnlEntry,'BtnSignUp','Sign Up');&nbsp;</div><div>&nbsp; BtnSignUp.Align=alRight;</div><div>&nbsp; BtnSignUp.Width = PnlEntry.Width / 2;</div><div>&nbsp; BtnSignUp.clTagStr = 'SignUp';</div><div>&nbsp; BtnSignUp.SetclProSettings(BtnLogin.clProSettings);</div><div>&nbsp; Form1.AddNewEvent(BtnSignUp,tbeOnClick,'GetUserControl');</div><div>&nbsp;&nbsp;</div><div>&nbsp; Form1.Run;</div><div>}Mainpage sayfası çalışmıyor.</div></div>]]>
   </description>
   <pubDate>Tue, 21 Oct 2025 09:09:01 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1210&amp;PID=2608#2608</guid>
  </item> 
 </channel>
</rss>