{"id":4423,"date":"2014-03-30T10:52:29","date_gmt":"2014-03-30T10:52:29","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-tframe-collection-of-common-programming-errors\/"},"modified":"2014-03-30T10:52:29","modified_gmt":"2014-03-30T10:52:29","slug":"problem-about-tframe-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-tframe-collection-of-common-programming-errors\/","title":{"rendered":"problem about tframe-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/15264f7bf48e10ce32dfa4865a13763c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKen White<br \/>\ndelphi tframe<br \/>\nI have a delphi application that used a PageControl with a number of TabSheets. I also create new TabSheets at runtime and populate them with instances of predefined frames. These frames work well, except for the cosmetic problem of not centering on the TabSheet. I have tried to use Frame.Align := alClient, but that didn&#8217;t do it. The relevant code follows:CreateNewPage(3); NewLimitedChoiceFrame := TLimitedChoiceFrame.Create(NewInputPage); NewLimitedChoiceFrame.Parent := NewInputPage;CreateNe<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/769afbd310de11e845d9725c0bd26665?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nvcldeveloper<br \/>\ndelphi delphi-2009 tframe<br \/>\nIn Delphi 2009, In one of my projects, I have a custom frame with some controls on it which I want to use as the base class for some other controls. I want to register this frame as an IDE wizard to be available in New Items list. When I add my newly added item (my custom frame) to a project, I expect it to:Show all the properties and events I added to the custom frame in object inspector. Derive the newly created frame from my custom frame rather than TFrame.Ok, to make it show my properties a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7993bfc44f2372777651b3da035c0c77?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJustin<br \/>\ndelphi load tframe bpl<br \/>\nI am trying to load a tframe inside a delphi package (bpl) to be shown in my main app please give me code for both package and application.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2538a493e7b4485d41a1c51fa9fa70d1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmenjaraz<br \/>\ndelphi tframe<br \/>\nIn this article there is an explanation of how to use TFrames as an alternative to TTabSheets in a Delphi PageControl.I&#8217;ve been pondering a similar exercise, which the above doesn&#8217;t seem to provide the solution for, and for which my solution seems to be overly complicated.The requirement is for a tabbed interface, where each tab can be one of a number of different designs. Each design is implemented as a TFrame.Due to the nature of the application being designed, we may have multiple copies of<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1ffec3da54706587fbe0d053a9fffc5e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nlivelaughlove<br \/>\nruntime c++builder tframe<br \/>\ni have 2 tframes, and an add button. I am trying to add one tframe onto the other when the button is press. but for w.e reason my code can&#8217;t seem to work. it&#8217;s not adding the frame like it&#8217;s suppose to. there is no errors or running, it compiles and runs, but when i press the button it does nothing. i got it to work when i added a tframe to a scrollbox, and all i did was change the location for the tframe to be added.code for TFrame2void __fastcall TFrame2::AddFrame() {int temp = 0;TFrame1* NewF<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2538a493e7b4485d41a1c51fa9fa70d1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmenjaraz<br \/>\ndelphi tframe<br \/>\nI was having my usual stroll around SO and bumped on some frames discussions.I&#8217;m mainly a Delphi hobbyist and not a professional so I had to learn how to use TFrames my own way witch is:Create a TFrame inside it&#8217;s unit. Add that unit to the main form Uses clause. Have a private variable of that TFrame&#8217;s type OnCreate of the form instanciates the TFrame and attaches it to a TPanel both on the Create and .Parent On one of my Actions set that TFrame.Visible := True and .BringToFront.This is my prac<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ken White delphi tframe I have a delphi application that used a PageControl with a number of TabSheets. I also create new TabSheets at runtime and populate them with instances of predefined frames. These frames work well, except for the cosmetic problem of not centering on the TabSheet. I have tried to use Frame.Align := [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4423","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4423"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4423\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}