You are not saying what you mean by 'It still doesn't work':
- does it compile correctly ?
- if yes, do you mean that the second form is just not shown ?
Anyway, as far as I can see, there is problem with your component names. Theoretically, you cant' have a second form called 'PlusMakkelijk' and also a menuitem called with the same name 'PlusMakkelijk' in FormMenu.
So, I guess your second form has another name. Or it's not included in the project. Or ...
Attached, a basic sample (YourTest.zip) trying to use your own component/unit names (with only a unique sub menuitem). Please note that I've had to rename the sub menuitem differently: PlusMakkelijkShow.
Source code for the main form:
unit SommenOefeningUnit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus;
type
{ TFormMenu }
TFormMenu = class(TForm)
Handleiding: TMenuItem;
PlusMakkelijkShow: TMenuItem;
SommenMenu: TMainMenu;
procedure PlusMakkelijkShowClick(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
FormMenu: TFormMenu;
implementation
{$R *.lfm}
{ TFormMenu }
uses PlusMakkelijkUnit;
procedure TFormMenu.PlusMakkelijkShowClick(Sender: TObject);
begin
PlusMakkelijk.Show;
end;
end.