deselect [number] box after input
Is there any way to deselect a number box after input is finished other then mouse-clicking into empty space?. When finishing with RETURN the number-box stays selected. With TAB it can move to the next number-box, but no way to deselect except by clicking anywhere in the empty space.
this is pretty annoying sometimes when there are numbderboxes in a bpatcher,
you can not even deselect them by clicking somewhere else after you entered
something using the keyboard.
for entry-only numberboxes it might be wise to make your own using [lcd].
pid: I tried to connect the number box the the thispatcher object in a bpatcher – nothing happens, number-box still selected. But may be you meant something different?
Roman Thilenius: Sorry, but I do not understand how to do that. If I open an LCD I can write something into it with message [ascii $1] but then it is stuck inside LCD and I cannot get it out. And I cannot find any description for getting it sent out to an output of the LCD. I need the number box to make an input of numbers to send them to another object, but then after the input is finished, I want it to deselect. I do not see how I can do that with LCD.
Both: Thanks for your efforts.
@Ullstein: that’s what pid meant.
----------begin_max5_patcher---------- 467.3ocyUsrSqCCDccxWgkYaAEmWs.q3G.IVeEB4jLzZThcUrCTtH92wdbBz dos2.TArH1JmYxny43IddJLfVnVAZJ4LxeHAAOEFDfPNff92CnM7Uk0bMlFs T0z.RCchOlAVYP7JPC0PogvHZnTIqH7aMPKQ0YV1YDx4DyBfbOutCF91Zgzl YmDKPbO3RtobgM8aZsEySL1z3ShlPXY49sH2VR5IQjq6+HQExAUwcGOcn52p jFIuAvHWzJ30CQjcMBYMXPAwdCzR0Azn0JhV7WrHLKKbnOGF5VlLRCSBOX40 67qBBitGIGMC0ZBJ43o3Zz1Ub9AQwrcn3dXellGWBdBRK3x4Tx0GNCoBpsxN JZDtRN1OjsWWI6C5Jw+NcEyBgFcBn8+aLwLrcI+z8YLoGj1k3OnwPmXedkNZ 98CAN5RWnMjIgdta4nqbqfrxi7ob0FPq4yg2Yq96pFQq1LzQS8W.Ma6NZxOR q1mrMqqoXusRoINodJpd+Ms6pQh8izHIbyd11OZHEwYJ+y7LTjN7MsEspqsb np8Gij2DpcdlcpE2HTx0xIcibVHpp.45yKZDUKUVJ1SgcbDMVFkOBFk8sxnr QvnjuUFwFAix+BLx9xyguDQ6e3G -----------end_max5_patcher-----------
@roman, do you have an example? I doubt it’s still the case since Max 5.
Thanks Emmanuel Jourdan. Yes it works, but unfortunately only outside of a bpatcher. But putting your little patch outside the bpatcher, works.
Thanks to you and pid
All the best
@Ullstein: you can send a message to the main patcher to select itself.
----------begin_max5_patcher---------- 950.3ocyX0rbaBCD9L9oPC4paGD+XiaO0WfNSOmoSFAHaqVPhADNoMSd2qPB rQ1Bavg35KJwqzJs6m91ePuNyxNh8BtzF7Evi.KqWmYYIEUKvp42V1YnWhSQ kxkYGyxxvTt8b0bb7KbobBEf.Q4Hd7VbQ6rzpLVEOEyk55zHcMixKI+EWKC5 94VwRcIzMOUfi4JSxyodZvJm5wP4nqXD7yFUHIxylE8qOAcr6r8TTlb6s+VA Ak1wbHzVqAVK6sYypGlOPmmheVbVm36EfLDg9DeKo7r..bz.vpPoOCWU+Gny pSP.0ty+SNVofssIvIbjXiyUfMC6t2fO5tboz6f9RuKT4qK8MeO61t+3rHbR WTEUrogIuWOcmpqIHrSkqz3KBngjh2gKJILZmc0xdLFp.i1DyRYEJEfxErev Qegor3eq7.mVgI30i63X4X5AMbZNkCC5qjPyKvkhnWDuwK6dxnpT9Slol5yu FEi6UYirKK6MEjDFs1HzzrVb6wIvq.oKFz0tkqfhxMnLmwRiPE6HkjnTr1kl fphnjLDGyIJ6w0Yudjr7BBkqsWXJRrGaKiKXooZakZlcFlIAuiDieljv2J2q CnkVV0NjLsfHM4mMKqd1lDwUXp3NG.Ak3XFMAfVywE.QzVdEWDaA3awfcnzJ bW8SITwpqT9samILFndl7T8EGC8k70vP0knjB50ksdTj7R6iNJyTGyItsZSP o9m4WINqkPWGli.P6dQI3UiRgd03xBUd8kGmO2bN8HDcicev3h6aXLAmJJb4 37wgkqj4GClBrL3JwR2aCVV1WeFSZbrBUg9p3XHzHt1Az7uCHfY3xRzFrYTS ls7ii+AckMo5KGggWh.1K4y6df7UI5p5LrJ2qu5fjN4IqJD3LrX05hzyuPHK bBYeG55ntXYOEvk9V87lgyRVUQbqCzbsBz8SQAbQY588f839vniV2VRRhdKO x6KRRNSfL660cPW+i0pWLPqN3txpCFnU6cWY0vAZ0KlPqtQnRxz7UvGZX5c+ YuApDqKBL2kzEppap6n+CuJvQc9LUfxJn41cFAnDLRPwc5.kK9FItWIt35KI KKFxSjLummIwerjkFgkncs68Ceud207Rf8WqGd3G0iXZhRhJ.bjfpdaN8zhy DQzbUeM9os0Lv2bx6VPx51tx6lH4q9bhPysnLr1SL0Zx0j6Qte5sgn.jiKtz .KmTTIrawhgzxwoESLWH4jqngZQvAXQKtoVTv.rHuapEsX.VTvM0h79f4Qhe 71r+ATCMMME -----------end_max5_patcher-----------
Sorry ,but I am afraid this does not work. At least not with t a bpatcher. Your earlier sugestion works very well, this one does not succeed. Still, many thanks for taking care, I really appreciate. Thank you.
It’s really working here, with the latest Max version.
eij: right, it occurs in max4.
"but then it is stuck inside LCD and I cannot get it out."
it is of course quite some work to use lcd for things like that.
it also needs a lot of CPU, but for input elements this should not matter.
lcd has mouse drag position output, and also mouse over tracking, the
latter has to be turned on as it is off by default.
the mouse drag tracking also works when dragging outside the lcd, just
like you would exspect from a GUI element.
after you wrote something in an lcd you would do "clear", and then write the
next thing into it.
everything in background, which is overlapped by something dynamic, must
be redrawn now any time when you change something in foreground.
so if you want to have a black background, then a blue rect with white
numbers, you would initialize it by
brgb 0 0 0, clear, paintrect 25 25 75 75 0 0 200,
and then you send the "write" or ascii" stuff.
when the mousemovement now changes the number from 7 to 13,
you would have to repeat writing "paintrect 25 25 75 75 0 0 200"
in order to delete the 7 before writing the 13.
i´ve used lcd for all kind of GUI elements such as multiple sliders
in one box, XY fields limited to a circle, clickable menus, or sliders
which are bipolar, diagonal, or change color and size when moved.
it is also great for making simple little buttons or number boxes, which
is what you should start with. ^^
Thanks for all your help. I managed to make what I need with the suggestion that pid and Emmanuel made. And thank you Roman for your continuation.
All the best