Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 2 of 2 total |
How to assign a procedure to the OnClick event of a panel |
Wed, Sep 4 2013 6:43 AM | Permanent Link |
Franck - Midi pyrénées - France Esteves Ducilia | Hello there,
I would like to create somes panels at runtime and assign a procedure to the event Onclick. I have the message [Error] unitMain.wbs (101,35): The menuPanelClick(menuPanel) method is not a class method thank for your help procedure creMenuPanel(str : string) ; var menuPanel : TPanel ; begin menuPanel := TPanel.create(mainForm.panelLeft) ; menuPanel.color := clForestGreen ; menuPanel.Height := 50 ; menuPanel.Width := 100 ; menuPanel.Visible := true ; menuPanel.EnableDrag : = true ; menuPanel.OnClick := TmainForm.menuPanelClick(menuPanel)); end ; procedure TmainForm.menuPanelClick(Sender: TObject); begin ShowMessage('me') ; end; |
Wed, Sep 4 2013 8:00 AM | Permanent Link |
Franck - Midi pyrénées - France Esteves Ducilia | No need an answer . I have found the solution. Thank
|
This web page was last updated on Saturday, January 18, 2025 at 08:56 AM | Privacy PolicySite Map © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |