How to change height and width of field to user preference
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to change height and width of field to user preference
Hi,
How to change height and width of a field to user preference? by mousestilldown handler. etc
Thanks
Samjith
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
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
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
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.
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
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.
The user can change height/width of a field by mouseIs 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 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
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
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
Namaste Samjith,
I think you are looking for something like this, see attachment, that may get you started.
Best
Klaus
I think you are looking for something like this, see attachment, that may get you started.
Best
Klaus
- Attachments
-
- fields_resize1.rev.zip
- (1.36 KiB) Downloaded 233 times
Re: How to change height and width of field to user preferen
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
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
- Attachments
-
- SPlit.zip
- (1.79 KiB) Downloaded 225 times
Re: How to change height and width of field to user preferen
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
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