<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Open new page of a Page Control for New Record]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=8976</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=8976&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Open new page of a Page Control for New Record.]]></description>
		<lastBuildDate>Wed, 26 Jun 2024 23:15:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51152#p51152</link>
			<description><![CDATA[<p>Hi Derek,Hi guys,<br />I made some changes, The code is not dynamic but already has a repeatable structure.<br />_<br />Thanks for your common procedure &quot;customer_maintenance&quot;, it was a good inspiration, I had to rename it to &quot;dynamic_card_xxxx&quot; where with xxxx I indicate the numbers of the TabSheets (the first pair of x&#039;s) and the sub TabSheets (the second pair of x&#039;s). <br />I commented on your &quot;OnMouseDown&quot;, I couldn&#039;t handle it. I then inserted a new one common procedure &quot; Close_All &quot;.<br />So It is sufficient to work on the *dinamic_card* to make the project &quot;explode&quot; in an orderly way.<br />_<br />I made the tabs visible in the forms otherwise you can&#039;t work on them, but I make them disappear in OnShow.<br />_<br />I almost forgot; I also inserted the Unicode smileys <img src="https://myvisualdatabase.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />_<br />Thanks for your help!</p>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Wed, 26 Jun 2024 23:15:02 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51152#p51152</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51151#p51151</link>
			<description><![CDATA[<p>Thanks so much Derek for your suggestions.&nbsp; She will treasure it.&nbsp; <br />_ <br />1. Yes, better messagebox, mine was just an example for practice.&nbsp; <br />_<br />2. In fact, I had noticed that it was starting to become difficult to manage the code, even with just a few pages, a more dynamic and easily adaptable code would be needed, I will take a look at your project as soon as I am in front of the PC.<br />_<br />3. It was a desired effect that I tested, just go to my code and uncomment the only commented line, you will see the tabsheet pop up. <br />_<br /> 4. I don&#039;t know how to embed Unicode icons, I think I will find the solution in your project.</p>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Wed, 26 Jun 2024 20:57:22 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51151#p51151</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51150#p51150</link>
			<description><![CDATA[<p>Hi Salvatore,<br />A couple of suggestions to your attached project.<br />1.&nbsp; using a separate tabsheet just to confirm that a record has been added / changed means you are having to write extra lines of code to make the tabsheet visible / invisible.&nbsp; I would suggest using &#039;showmessage&#039; or &#039;messagebox&#039; to achieve the same thing more effectively.<br />2.&nbsp; when you &#039;add&#039; or &#039;edit&#039; a record, you could use a common procedure (in the attached example, I&#039;ve called it &#039;customer_maintenance&#039;) rather having repeated lines of code (it means if you need to change something, you only need to do it in one place - plus it&#039;s fewer lines of code anyway).<br />3.&nbsp; in your example, if you went into the &#039;Project Area&#039; tabsheet just to view, when you clicked on the &#039;Home&#039; tabsheet, it left the &#039;Project Area&#039; tabsheet visible so the form behaviour was inconsisent.<br />4.&nbsp; I noticed that you described Tabsheet1 as &#039;HOME&nbsp; LOL&#039; - you can actually incorporate unicode icons as part of your labels anywhere in your project.<br />Have a look at the attachment - but as I said at the beginning, they are just suggestions so feel free to ignore them if they are not appropriate&nbsp; <img src="https://myvisualdatabase.com/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /><br />Regards,<br />Derek</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Wed, 26 Jun 2024 19:58:12 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51150#p51150</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51149#p51149</link>
			<description><![CDATA[<p>Thank you guys<br />I did some testing before understanding how the tool works.<br />Once you understand the logic it&#039;s easy to play with.<br />I attach my project.</p>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Wed, 26 Jun 2024 18:21:39 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51149#p51149</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51146#p51146</link>
			<description><![CDATA[<p>Thanks pavlenko.vladimir.v <br />Thanks sparrow.&nbsp; &nbsp;<br />_<br />I will test your solutions, hopefully tomorrow <br />_<br />I will update you.</p>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Tue, 25 Jun 2024 23:02:28 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51146#p51146</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51143#p51143</link>
			<description><![CDATA[<div class="codebox"><pre><code>form1.PageControl1.Pages[1].TabVisible := False;

OR

form1.TabSheet2.TabVisible := false;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Tue, 25 Jun 2024 20:43:39 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51143#p51143</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51142#p51142</link>
			<description><![CDATA[<div class="quotebox"><cite>salvatorevicari85 wrote:</cite><blockquote><p>I&#039;m playing around with Derek&#039;s code a bit.<br />I can&#039;t figure out how to write the script to hide a TabSheet, using &quot;Visible=False&quot; method.<br />I&#039;ll post the code but it&#039;s definitely wrong.</p></blockquote></div><p><span class="postimg"><img src="https://myvisualdatabase.com/forum/misc.php?action=pun_attachment&amp;item=10544&amp;download=0" alt="https://myvisualdatabase.com/forum/misc.php?action=pun_attachment&amp;amp;item=10544&amp;amp;download=0" /></span></p>]]></description>
			<author><![CDATA[null@example.com (pavlenko.vladimir.v)]]></author>
			<pubDate>Tue, 25 Jun 2024 20:09:40 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51142#p51142</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51138#p51138</link>
			<description><![CDATA[<p>I&#039;m playing around with Derek&#039;s code a bit.<br />I can&#039;t figure out how to write the script to hide a TabSheet, using &quot;Visible=False&quot; method.<br />I&#039;ll post the code but it&#039;s definitely wrong.</p><div class="codebox"><pre><code>procedure Form1_Button1_OnAfterClick (Sender: TObject);                   //** switch back to the &#039;customer list&#039; tabsheet after saving the record
begin
  form1.PageControl1.ActivePageIndex := 0;
    form1.PageControl1.PageIndex1.Visible  := False; &lt;--------- ERROR -------------
end; </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Tue, 25 Jun 2024 17:36:39 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51138#p51138</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51131#p51131</link>
			<description><![CDATA[<p>Found !!!<br />It was sufficient to enter the &quot;Settings&quot; of tablegrid1 and click on the mechanical wheel of the &quot;name&quot; column and select &quot;count&quot; from the formula. Perfect !!!!</p>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Tue, 25 Jun 2024 10:34:27 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51131#p51131</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51130#p51130</link>
			<description><![CDATA[<p>Hi,<br />Have a look at the attached screen shot.<br />You can switch footers off completely, or you can do counts, sum, average etc etc (where relevant).&nbsp; Additionally, you can add text before or after the calculation (ie £: or &#039;No&#039; of Contacts:) etc etc<br />This is also where you can align (using the &#039;alignment tab&#039;) tablegrid headers and column contents.<br />Regards<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Tue, 25 Jun 2024 10:31:02 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51130#p51130</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51129#p51129</link>
			<description><![CDATA[<p>Another question, perhaps off topic.<br />In the example you uploaded, the table automatically counts the rows.<br />I tried to figure out how to enable or disable the row counter in the table footer:<br />- There is nothing in the script.<br />- I looked at all the options, nothing.<br />- I also searched the Forum. Nothing.<br />How do I enable or disable row counting in the table footer.<br />Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Tue, 25 Jun 2024 09:46:18 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51129#p51129</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51128#p51128</link>
			<description><![CDATA[<p>Thanks Derek. It works great</p>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Tue, 25 Jun 2024 09:06:35 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51128#p51128</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51127#p51127</link>
			<description><![CDATA[<p>Hi,<br />Is this the sort of thing you need?&nbsp; (see attached).<br />Another option for you could be to view a list of records (tablegrid) and add / edit / delete records on the same form - you don&#039;t always have to use a second form.<br />Regards,<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Sat, 22 Jun 2024 17:47:06 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51127#p51127</guid>
		</item>
		<item>
			<title><![CDATA[Open new page of a Page Control for New Record]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=51126#p51126</link>
			<description><![CDATA[<p>Greetings,<br />It is possible to set a function so that when you set a button in:</p><p>NEW RECORD<br />SHOW RECORD<br />Double click on a line</p><p>Open a New Page of a Page-Control, rather than a new window?</p><p>The reason is that once a new window is opened it is impossible to move the one below it, which makes the work very inconvenient.</p><p>Thank you</p>]]></description>
			<author><![CDATA[null@example.com (salvatorevicari85)]]></author>
			<pubDate>Sat, 22 Jun 2024 15:23:22 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=51126#p51126</guid>
		</item>
	</channel>
</rss>
