DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Editbox "Enter" as an Event

Hi,
 
In one of the dialogboxes i prepare, there is an editbox where user enters a string and then clicks the "Load Button" to load files in dataportal
 
But for the users it is not desirable that they enter the string and then they click a button. They want to just press "Enter" after writing the string in the editbox.
 
Is there a way to trigger an event when "Enter" is pressed in Editbox?
 
 
thanks in advance
 
kaan
0 Kudos
Message 1 of 5
(3,677 Views)
Hello Kaan!
 
You can define the button as a default button with the properties  ButtonType = 4 - OK and Default = 1 - Yes. Then all 'Enter' are treated like a Click on the button.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 5
(3,674 Views)

Hello Matthias,

Thanks a lot for the answer. You saved me ! 🙂

cheers

Kaan

0 Kudos
Message 3 of 5
(3,670 Views)

Hi i really dont get your answer.

I got 2 elements, EditBox and Button.

 

I have set the button to type - 4 and default -Yes. When in editbox i press enter, it triggers the OnClick event of the button, but it closes/terminates the dialog box.

 

I got Diadem 2017, your post is years old, did it changed the behaviour in this time?

 

Thanks for help

0 Kudos
Message 4 of 5
(2,590 Views)

Hi,

 

Digging an old topic.

 

The trick from Twigeater works with one editbox/button, thanks!

 

What if I have several editboxes, and I want to be able to press enter in every editboxes, with different behavior for each editbox?

 

Thanks,

Jacques

0 Kudos
Message 5 of 5
(52 Views)