Page 1 of 1

Edit Box - Set not editable

Posted: Thu May 14, 2015 1:30 pm
by Nowhk
Is there a way to put Edit Boxes devices not editable? I can put the mouse, delete and write what I want. I'd like to avoid this...

Re: Edit Box - Set not editable

Posted: Thu May 14, 2015 1:48 pm
by Nubeat7
use a label then, or block any mouse action

Re: Edit Box - Set not editable

Posted: Thu May 14, 2015 2:06 pm
by Nowhk
Label has not S pin input. How would you block mouse action? This is not enough:

Immagine.png
Immagine.png (7.19 KiB) Viewed 11235 times

Re: Edit Box - Set not editable

Posted: Thu May 14, 2015 2:09 pm
by Nubeat7
Nowhk wrote:Label has not S pin input..

just create one with "i" on your keyboard ;)

maybe it would be good to read the manual (page 63)

Re: Edit Box - Set not editable

Posted: Thu May 14, 2015 2:43 pm
by Nowhk
Oh, I can use "I" for every element! Nice ;) Didn't noticed this. Thanks!
Unfortunatly I can't set a background, but I'll use a "back" image behind the label.

Re: Edit Box - Set not editable

Posted: Thu May 14, 2015 11:11 pm
by Perfect Human Interface
Nowhk wrote:Unfortunatly I can't set a background, but I'll use a "back" image behind the label.


Use a "filled rectangle" prim and wire the view from the MGUI and the area (use "view to area") and a "colour" prim to the inputs. Make sure the order of the view connections is correct so that you don't draw the rectangle on top of the text.