Topic: Label action

Dear Dimitry and MVD Fans

Happy new year for ALL of you.

Sorry to bother you

I have a question about the properties of labels. Dose labels have onclick event

I was trying to create a list of actions using labels and I do not know how to open a new form for example on clicking the corresponding label

Again

Does labels have onclick event like buttons ?

Thanks

Re: Label action

Hello smoufa.

Of course, label has a property OnClick.
This exemple : if you click on Label1, a Form2 is displayed.

procedure Form1_Label1_OnClick (Sender: string);
begin
   Form2.Show;
end;

But to get this action, you have to active Script Tab (the fourth icone from the left)

Is it Ok for you ?

JB

Re: Label action

Dear JB
I tested your procedure but it is not working
Also, I red the help which says the label has no OnClick event
Anyway, Thank you so much for your kind help.
Watling for final call from Dimitry
Regards

Re: Label action

Hello smoustafa

Amazing !

I've tested it before answer your question.
Please see the attachment

JB

Post's attachments

Attachment icon Test_Label.zip 331.24 kb, 401 downloads since 2015-12-27 

Re: Label action

Hi smoustafa

Please take this second attachment
In the first I forgot the essential :the script
By the way, I made it with MVD 2.3 beta2

JB

Post's attachments

Attachment icon Test_Label2.zip 331.94 kb, 459 downloads since 2015-12-27 

Re: Label action

smoustafa


Script from jean.brezhonek have to work, just download example "Test_Label2.zip" for test.

Dmitry.