Toolbars - can't get icons to show up. lazarus / 10-Designer ---------------------------------------------------------------------- daz · 2008-09-23 23:39 Well I tried to create a toolbar with the built in lazarus component, I made an image list with one image and set the 2 image lists in the toolbar to use the image list, but it's blank even when I compile it... can anyone post a quick tutorial or something for me? :S [Random different question] If any of you have windows XP, open up notepad and click on the file menu. There's little horizontal separators between some of the menu items, is there any way to replicate that effect with lazarus? ---------------------------------------------------------------------- Leledumbo · 2008-09-24 02:47 Can't test the first one, no Lazarus in campus :-( Quote If any of you have windows XP, open up notepad and click on the file menu. There's little horizontal separators between some of the menu items, is there any way to replicate that effect with lazarus? Use '-' as menu name (without quotes) ---------------------------------------------------------------------- daz · 2008-09-24 02:55 Ah thanks for the second one! If you ever get back to lazarus again, I'd be happy to know about the toolbar . Until then, I'll wait for you or someone else ---------------------------------------------------------------------- theo · 2008-09-24 09:39 Did you set the ImageIndex Property of each ToolButton to 0 or 1 or 2 ... ---------------------------------------------------------------------- daz · 2008-09-24 22:46 Ah thanks theo. Aside from that what you posted led me to the conclusion that right clicking the component might hold the answer. Basically, I'm not used to right clicking and selecting "New ____" heh. ---------------------------------------------------------------------- HPF_BR · 2008-10-30 19:24 I have this piece of code that shows the hint at statusbar on Delphi:   private     { private declarations }     procedure AppHint(Sender : TObject); ... procedure TFormPrincipal.AppHint(Sender: TObject); begin   StatusBar1.Panels[0].Text:= Application.Hint; end; procedure TFormPrincipal.FormCreate(Sender: TObject); begin   Application.OnHint:= AppHint; end; So i tried run this code in lazarus and it says "Error: Wrong number of parameters specified for call to "AppHint" " in the procedure TFormPrincipal.FormCreate(Sender: TObject); Can anyone help me? ---------------------------------------------------------------------- Leledumbo · 2008-10-31 03:09 Did you add {$mode delphi} directive? ObjFPC and Delphi handles procedural types differently, use @AppHint in ObjFPC. Otherwise, it will be considered a procedure call.