XWidgetSoft Forum
https://www.bbs.xwidget.com/

Word warp for edit???
https://www.bbs.xwidget.com/viewtopic.php?f=3&t=4536
Page 1 of 1

Author:  Jimking [ May 11th, 2014, 2:30 pm ]
Post subject:  Word warp for edit???

If I remember well there was the "Word Warp" function for the text when you use the "edit" component...
Was removed on the last version...? :?
IS VERY IMPORTANT AND A MUST HAVE FUNCTION!

Edit: Tested and works manually pressing the "Enter" to change line.

This works only on the Designer but when debug/run widget, the Enter doesn't work! :idea:

Author:  qiancang [ May 11th, 2014, 6:02 pm ]
Post subject:  Re: Word warp for edit???

word wrap is a function of memo component.
edit component never has it.

Author:  Jimking [ May 12th, 2014, 2:02 am ]
Post subject:  Re: Word warp for edit???

Damm you're right..!!!
Anyway, a word warp for the edit I think that is necessary too..

Author:  Jimking [ May 12th, 2014, 2:36 am ]
Post subject:  Re: Word warp for edit???

BUT WHY the "OnChange" tag is missing from the "memo"...?????!!!!! :shock: :|

Is there a way though a custom script to reproduce this function but for memo?

Quote:
function edit1OnChange(Sender)
{
if(edit1.Text)
{
image1.visible=true;
}
else
{
image1.visible=false;
}
}

Author:  qiancang [ May 12th, 2014, 3:19 am ]
Post subject:  Re: Word warp for edit???

you can replace onchange with onkeydown.

Author:  Jimking [ May 12th, 2014, 3:44 am ]
Post subject:  Re: Word warp for edit???

Thanks mate! Works ok :mrgreen:

Quote:
function memo1OnKeyDown(Sender)
{
if(memo1.Text)
{
image1.visible=true;
}
else
{
image1.visible=false;
}
}



What about a "save ini" function? I need that the image will stay on after the reload of the widget (the image appears when the memo contains text) . After reload the memo is saved but the image disappears..

Author:  qiancang [ May 12th, 2014, 4:53 am ]
Post subject:  Re: Word warp for edit???

it's not easy to save the information.
since we have to save the date together.
and when we change month in calendar and click one day,we have to choose which memo and which info to display.
it's harder than you think.
so,i would like to help you next week.

Author:  Jimking [ May 12th, 2014, 5:09 am ]
Post subject:  Re: Word warp for edit???

I see... :(
I used a simple way to show/hide the images with the corrisponding memo and this works ok.
The hard part is that we have the months that are changing but the images are steady...
If there are steady images and texts will be easy..
Anyway I will wait for your help when you will have some free time.. Thank you!

Of course meanwhile, if someone else can help us is welcome! :roll:

I'm will replacing the "edit" components "memos" and I will attach the widget here..

Author:  Jimking [ May 12th, 2014, 10:13 am ]
Post subject:  Re: Word warp for edit???

Here is the widget with memo instead of edit components.
- Double click on each date to slide in/out the memo panel for the corrisponding date.
- Click on the "Today" to go to today.

Attachments:
transparent_ice_calendar.xwp [259.59 KiB]
Downloaded 411 times

Author:  Jimking [ May 20th, 2014, 2:25 am ]
Post subject:  Re: Word warp for edit???

Any help guys? :(
It will be awesome with it, but if it's really hard to add the extra note function for each day, I will remove this mode adding just a single generic note panel...
So please confirm..

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/