XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Save ini/image https://www.bbs.xwidget.com/viewtopic.php?f=8&t=4585 |
Page 1 of 1 |
Author: | Jimking [ May 25th, 2014, 4:55 am ] |
Post subject: | Save ini/image |
I have an image that appears only when a "note" contains text. But when the widget reloads the image should re-appear again since the note is saved. So I need a simple "save ini" function. But what should I put as setvalue? ![]() Setvalue(................); SaveIni(); |
Author: | digigamer [ May 25th, 2014, 5:26 am ] |
Post subject: | Re: Save ini/image |
Need to see the script. Can't get it |
Author: | Jimking [ May 25th, 2014, 5:36 am ] | ||
Post subject: | Re: Save ini/image | ||
digigamer wrote: Need to see the script. Can't get it Here: - Double click on each date to slide in/out the day's note panel. The red circle appears only when the note has txt. Also the red circles disappear when you're navigating though months. (I made it simple so the user can add notes only for the current month, so no need complicated script for all months) - click on "Today" to GoTotoday IMPORTANT: The eventually current month's red circles=notes appear only when you use "GoToToday" button.
|
Author: | digigamer [ May 25th, 2014, 11:30 pm ] |
Post subject: | Re: Save ini/image |
Saw your script, I've got some plans about this widget. May be i'll put an OLE-db that will allow to do year round note keeping. Will take a day for testing... Still, was it malfunctioning somewhere? I saved a note (in its unmodified form of the widget) and went to another date then again clicked it, gone?? Fixed IT ![]() Still here is another problem. I store tem in the database and retrieve them easily, no problem, but how to determine which date is being clicked?? only what I can know is, an image with s(1-42) has been clicked |
Author: | Jimking [ May 25th, 2014, 11:57 pm ] |
Post subject: | Re: Save ini/image |
No the notes are saving with no problem. Remember that each date has its own slidepanel! Also tested when the widget reloads. The problem and the reason why I ask help is that the red circle appears after add a note, but disappears after the widget reloads. That's why I need the "save ini", for the images, not for the notes. If you notice I have the "Auto save memo" option enable for all.. Also don't forget this: "The eventually current month's red circles appear only when you use "GoToToday" button." If there is a way to modify this I don't know.. And really man no need to do all this job for all the year. I know that its difficult. With the last part of the script I added a "way" to make the things simple and have notes only for the current month. |
Author: | digigamer [ May 26th, 2014, 12:14 am ] |
Post subject: | Re: Save ini/image |
jimking wrote: And really man no need to do all this job for all the year. I know that its difficult. With the last part of the script I added a "way" to make the things simple and have notes only for the current month. As of now, the 3000+ lines of code has come down to 300. ![]() As I stated, there is no problem at all in storing the events for all round the year, the problem is to find out which images corresponds to which date i.e, s1 stands for say may 1 in one but for june, it will be different. * Calendar has amode for selection, which reflects the changes in the associated dateTimeCore, discovered in now. So, one more hurdle over. No need for separate memos for all 42 dates now. |
Author: | Jimking [ May 26th, 2014, 12:29 am ] |
Post subject: | Re: Save ini/image |
Quote: As I stated, there is no problem at all in storing the events for all round the year, the problem is to find out which images corresponds to which date i.e, s1 stands for say may 1 in one but for june, it will be different. Exactly, and this is the hard part! That's why I told you that I have abandoned the idea.. Really man if you can help me just with the save ini for the red circles, It will be great! For the rest needs time and I don't have the requirement from anyone to do this.. I added a separate slidepanel for each date, so the user no need to mix various notes, and also to have the corrosponding red circle function. |
Author: | digigamer [ May 26th, 2014, 11:06 pm ] |
Post subject: | Re: Save ini/image |
sure then |
Author: | Jimking [ May 29th, 2014, 1:14 am ] |
Post subject: | Re: Save ini/image |
digigamer wrote: sure then So the "save ini" for the red images only for the current month can be done..? |
Author: | qiancang [ May 29th, 2014, 7:24 am ] | ||
Post subject: | Re: Save ini/image | ||
digigamer wrote: Saw your script, I've got some plans about this widget. May be i'll put an OLE-db that will allow to do year round note keeping. Will take a day for testing... Still, was it malfunctioning somewhere? I saved a note (in its unmodified form of the widget) and went to another date then again clicked it, gone?? Fixed IT ![]() Still here is another problem. I store tem in the database and retrieve them easily, no problem, but how to determine which date is being clicked?? only what I can know is, an image with s(1-42) has been clicked use database is a perfect idea! which do you use,access or sqlite? i made a widget to show how to locate certain day in calendar and get the start day and end day of calendar. cal1 |__core:datetimecore1 |__tag:null |__enable selection:true text1 |__core:datetimecore1 |__tag:%date
|
Author: | Jimking [ May 29th, 2014, 9:01 am ] |
Post subject: | Re: Save ini/image |
Great, but the pratical advantage using this mode..? |
Author: | qiancang [ May 29th, 2014, 4:47 pm ] |
Post subject: | Re: Save ini/image |
jimking wrote: Great, but the pratical advantage using this mode..? digigamer would know how to use these code to finish your calendar ![]() i geuss your calendar will be ok soon. |
Author: | Jimking [ May 30th, 2014, 1:18 am ] |
Post subject: | Re: Save ini/image |
qiancang wrote: jimking wrote: Great, but the pratical advantage using this mode..? digigamer would know how to use these code to finish your calendar ![]() i geuss your calendar will be ok soon. Yes, I hope too!!! ![]() |
Author: | Jimking [ June 1st, 2014, 2:43 am ] | ||
Post subject: | Re: Save ini/image | ||
I see many difficulties about this and is actually complicated, so I decided to abbandon this idea and post it simple: - Only one generic slidepanel with memo, that when contains txt a single red circle will show up reminding that there is a note inside. The save ini still needed though.. But forget all the previous! This time is just for a single image:
|
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |