This is probably a 'newbie/stupid' question but i must be missing some basic knowledge to get started using
Delphi for php.
Let's say i make a new project, with one unit, add a window component and a mainmenu on
the window.
Put a button on the window and in the php onclick event of the button i write
复制内容到剪贴板
代码:
function Button1Click($sender, $params)
{
$this->MainMenu2->Width = 200;
} That doesn't work; ok let's try
复制内容到剪贴板
代码:
$this->Window1->Caption = "My caption"; Doesn't work either..both give a 'undefined or no object' error.
What am i doing wrong?
Also, when does one use the '->' and when '.' to access component properties?
And how do i access component properties in the JS events?
The only thing i got to work in js event is Window1.maximize();