Page 1 of 1
How to change height and width of field to user preference
Posted: Wed Oct 28, 2015 8:10 am
by samjith
Hi,
How to change height and width of a field to user preference? by mousestilldown handler. etc
Thanks
Samjith
Re: How to change height and width of field to user preferen
Posted: Wed Oct 28, 2015 8:51 am
by bn
Hi Samjith,
could you please describe in detail what you want.
Is it a one time change, is it a fixed change, is the user doing this "all the time" why would the user want to change etc. Is the field open for typing or is it a locked field?
All this is important to understand what you want.
Kind regards
Bernd
Re: How to change height and width of field to user preferen
Posted: Wed Oct 28, 2015 9:28 am
by samjith
Hi Bernd,
I wish to creating a text editor, that can have features like "split window",etc as in vim editor
when we split the main field, then, shows 2 field with same size (size:- 1 field + 2 field = size of main field).
if we change the width of first field by the user, then the second field automatically adjust.
Is it a one time change, is it a fixed change, is the user doing this "all the time" why would the user want to change etc. Is the field open for typing or is it a locked field?
The user can change height/width of a field by mouse
The user want to change field size for better handling
The field is not locked, open for typing
I know it is very difficult to understand what i meant, because of my bad english.
Thanks,
Samjith
Re: How to change height and width of field to user preferen
Posted: Wed Oct 28, 2015 3:02 pm
by dunbarx
Hi.
A few ways to do this. A table field, where you adjust the tabStops to show either one column or two (or more?). A dataGrid, where you change its "native" properties in much the same manner. Or, as you first mentioned, two separate fields that can be managed as a pair, where one is shown or hidden, their widths adjusting as you wish. They can sync together if they need to scroll. This is simple to do.
Which route you take may be a matter of style, but if you told more about your requirements, one of the solutions might suddenly become the best one.
Craig Newman
Re: How to change height and width of field to user preferen
Posted: Wed Oct 28, 2015 3:12 pm
by Klaus
Namaste Samjith,
I think you are looking for something like this, see attachment, that may get you started.
Best
Klaus
Re: How to change height and width of field to user preferen
Posted: Thu Oct 29, 2015 12:33 pm
by samjith
Hi Klaus,
Thanks for the stack, really great.
I am attaching a stack, to spilt window (horizontally, vertically) and delete windows
But some bug in delete windows because i did this with the help of "rect" property
Please go through the stack,
Could you tell me how to implement this buttons inside the attached stack?
or any more way to do this?
I think, now you can understand what i really want to do.
You are great.
Thanks,
Samjith
Re: How to change height and width of field to user preferen
Posted: Thu Oct 29, 2015 2:15 pm
by Klaus
Hi samjith,
hm, your stack is completely different than mine
I had the impression that you want to let the user resize existing fields!
Problem is, that you are using "the selectedfield", if no field is selected/has focus
then your script will not work as exspected.
Maybe you could manage a list of IDs of the newly created field(s) and use that list
to delete one or more fields when the user clicks your "delete" button?
Best
Klaus