Where did my form Controls go? lazarus / 10-Designer ---------------------------------------------------------------------- CaptBill · 2010-11-28 07:31 Hi, I'm a new user and somehow none of my controls are visible when compiled.Editing the form is no prob, all components are there but they disappear at run time. Other programs have no problems loading them (example programs). I must have messed up a global setting somewhere because any new program I make has the same issue as my app. What am I missing? Thanks in advance. Here is the standard header when creating a new project, if that helps... program project1; {$mode objfpc}{$H+} uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   {$ENDIF}{$ENDIF}   Interfaces, // this includes the LCL widgetset   Forms, Unit1, LResources   { you can add units after this }; {$IFDEF WINDOWS}{$R project1.rc}{$ENDIF} begin   {$I project1.lrs}   Application.Initialize;   Application.CreateForm(TForm1, Form1);   Application.Run; end. ---------------------------------------------------------------------- joseme · 2010-11-28 14:24 Hi, To compare your code with mine, I create a new project with a single unit, and some controls on it. Using Lazarus 0.9.29, project code is Code: [Select]program Project1; {$mode objfpc}{$H+} uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   {$ENDIF}{$ENDIF}   Interfaces, // this includes the LCL widgetset   Forms, Unit1   { you can add units after this }; {$R *.res} begin   Application.Initialize;   Application.CreateForm(TForm1, Form1);   Application.Run; end. and everything shows fine. There are some differences with yours. I am working on Windows 7. What is your platform? ---------------------------------------------------------------------- Leledumbo · 2010-11-28 17:33 Quoteall components are there but they disappear at run timeensure you have (Laz 0.9.28.2 and below with FPC 2.2.4 and below): Code: [Select]initialization   {$I yourformunit.lrs}or (Laz 0.9.29 and FPC 2.4.0 and above): Code: [Select]{$R *.lfm}in the unit containing your form. ---------------------------------------------------------------------- CaptBill · 2010-11-28 19:26 Hi, Thanks for your quick response, fellows. My issue, whatever I tweaked wrong, is only a problem with the file apparently (so far). I am now able to compile forms with components. I un-installed and reinstalled version 9.28.4 beta last night but still had issue. I reboot this morning and, voila...my controls work for a new project. Duh... I am transferring the code I need to a new proj and all is fine. Ps. Am I using the best version for XP?     (9.28.4b)FPC(2.2.4)SVN(22279) ---------------------------------------------------------------------- ivan17 · 2010-11-28 19:58 Quote from: CaptBill on November 28, 2010, 08:26:33 pmPs. Am I using the best version for XP?     (9.28.4b)FPC(2.2.4)SVN(22279) no. note the link Daily Snapshots at the top left of this page. take the 8th file (Lazarus + fpc 2.4.3 / win32 / Lazarus-0.9.29-28515-fpc-2.4.3-20101128-win32.exe) ---------------------------------------------------------------------- CaptBill · 2010-11-28 20:18 Quote from: ivan17 on November 28, 2010, 08:58:27 pmQuote from: CaptBill on November 28, 2010, 08:26:33 pmPs. Am I using the best version for XP?     (9.28.4b)FPC(2.2.4)SVN(22279) no. note the link Daily Snapshots at the top left of this page. take the 8th file (Lazarus + fpc 2.4.3 / win32 / Lazarus-0.9.29-28515-fpc-2.4.3-20101128-win32.exe) Thank you Ivan... I am reinstalling now. ---------------------------------------------------------------------- Leledumbo · 2010-11-29 02:28 Quoteno. note the link Daily Snapshots at the top left of this page. take the 8th file (Lazarus + fpc 2.4.3 / win32 / Lazarus-0.9.29-28515-fpc-2.4.3-20101128-win32.exe)Daily snapshots aren't meant for those writing programs with stable Lazarus version. Though IMO it's almost as stable as the stable version :p ---------------------------------------------------------------------- TurboRascal · 2010-11-29 13:36 Hmm... is it really a good idea to use dailies of a development version? Especially for production use... Though for experimenting it might be fine. ---------------------------------------------------------------------- Leledumbo · 2010-11-29 15:54 QuoteHmm... is it really a good idea to use dailies of a development version?Watch the bugtracker. If either the compiler or IDE is currently suffering from a big bug (like wrong register allocation in fpc and the change of autosizing / layouting algorithm in lcl), then I suggest to wait until it's solved. ---------------------------------------------------------------------- ivan17 · 2010-12-01 14:28 QuoteHmm... is it really a good idea to use dailies of a development version?with daily version being FAR ahead of stable (0.9.28), i'd say go for it. yes, now and then bugs show up (or are more likely reintroduced) but it's usually no big deal. if it worries you, just take today's version and don't upgrade it until your project is done. ---------------------------------------------------------------------- TurboRascal · 2010-12-01 21:19 I guess it might be feasible to do just that - install a snapshot, test it and if it works fine, keep it... If not, try another one... Perhaps it would be good to test some snapshots and use them as weekly or monthly public releases... I once had a similar idea, maybe I could revisit that...