Prev: How to automatically select all items from listdlg
Next: One more double exponential fitting issue
From: Olivier on 15 Apr 2010 05:40 Is there any way to find if the user is double clicking in the 'edit text' box in a gui
From: Yair Altman on 17 Apr 2010 15:25 "Olivier " <sumit.iitkgp(a)gmail.com> wrote in message <hq6mto$6af$1(a)fred.mathworks.com>... > Is there any way to find if the user is double clicking in the 'edit text' box in a gui I don't understand why you would want to do this: clicking in edit-boxes has a very well-known GUI behavior, which is not Matlab-specific: Single-clicking selects the edit-box (moves it into focus); double-clicking selects the entire text within the editbox. Matlab editboxes behave like this so why would you wish to modify this behavior? (of course it can be done, but I don't want to give you the answer if you are asking the wrong question...) Yair Altman http://UndocumentedMatlab.com
From: Olivier on 20 Apr 2010 02:20 "Yair Altman" <altmanyDEL(a)gmailDEL.comDEL> wrote in message <hqd1uh$pho$1(a)fred.mathworks.com>... > "Olivier " <sumit.iitkgp(a)gmail.com> wrote in message <hq6mto$6af$1(a)fred.mathworks.com>... > > Is there any way to find if the user is double clicking in the 'edit text' box in a gui > > > I don't understand why you would want to do this: clicking in edit-boxes has a very well-known GUI behavior, which is not Matlab-specific: Single-clicking selects the edit-box (moves it into focus); double-clicking selects the entire text within the editbox. Matlab editboxes behave like this so why would you wish to modify this behavior? > > (of course it can be done, but I don't want to give you the answer if you are asking the wrong question...) > > Yair Altman > http://UndocumentedMatlab.com Hi Yair I understand the behaviour predefined in the matlab. But in my gui I have an 'edit text' box and wants that when user clicks on the text box another uesr interface opens up to provide the user with the choices to enter in the edit box and at the same time user can also enter the data of her/his own wish which might not be mentioned in the list. If you have the way to do it, Please let me know it would be of great help. Thank You Sumit
From: Yair Altman on 20 Apr 2010 03:27 "Olivier " <sumit.iitkgp(a)gmail.com> wrote in message > I understand the behaviour predefined in the matlab. But in my gui I have an 'edit text' box and wants that when user clicks on the text box another uesr interface opens up to provide the user with the choices to enter in the edit box and at the same time user can also enter the data of her/his own wish which might not be mentioned in the list. Instead of using an edit-box, use an editable drop-down (aka popup-menu or combo-box) control: jcb = javax.swing.JComboBox({'Red','Green','Blue'}); jcb.setEditable(1); [hjcb,hContainer] = javacomponent(jcb,[200,200,100,20],gcf); Yair Altman http://UndocumentedMatlab.com
|
Pages: 1 Prev: How to automatically select all items from listdlg Next: One more double exponential fitting issue |