How to prevent Dashcode from renaming label-strings after save operation [iBook Author related]? - dashcode

For use in iBooks Author, I created a widget with Dashcode.
The widget some labels:
If I save the widget within Dashcode, the windows flickers a bit (updates) - and all labels suddenly appear with the same text:
Please note, that the widget doesn't create any JS code yet.
How to prevent Dashcode from 'unifying' the string?
This post is probably helpful for Dashcode/iBook Author users too [and my similar question].

Figured out the cause of the problem:
Don't clone - copy & paste - a text label.
Somehow, they get connected :-(

Related

Widget wont refresh with setstate sfcalendar custom agenda

The Picture shows how it should look like.
But in my App, the agenda is inside a TAB!
Can anyone tell me why my code wont work?
I am trying to display data from DataSource but it wont show up!
(SFCalendar - Custom Agenda)
(Basically - to get it to show my appointments in a separate widget "far up the tree" <onTap: calendarTapped>)
I recreated the code on github since its too much code for stackoverflow - i guess its easier with vcs anyway:
https://github.com/panval/sfcalcustagenda.git
I simply can't manage to get it to work!
What am I missing?
You arent passing the selected item on Tabs widget. You can use constructor the way you did for CustomAgenda.
class Tabs extends StatefulWidget {
Tabs({Key? key, required this.appointmentDetails});
and use
CustomAgenda(appointmentDetails: widget.appointmentDetails),
You can remove the state variable from here.

Xamarin.Android, SfChart, Widget

I have SfChart where part is on C# and xml. There is anyway to put this inside of widget?
Maybe anyway to transfer whole object into widget or export to bitmap (getDrawingCache and DrawingCache are deprecated). Have anyone idea with sample?
Edit: converted to Bitmap working but only on live View(on screen). When trying only in cs. Bitmap is black. On Android.Forms was Platform.CreateRenderer(view) but on Xamarin.android nothing i found.
Greetings from Syncfusion.
Currently, we don’t have support to update the SfChart in Android widget without rendering in the UI. We have already logged a feature request for this requirement, and you can track the feature using the feedback link below.
Feedback: https://www.syncfusion.com/feedback/19685
Regards,
Devakumar D

Save notebook widget state in vs code

Is there a possibility to save notebook widget state during export to html in vs code?
The widget appears well but it disappears when I export the notebook in html format. More precisely for my case, I display a map, I add data to it and the map is not displayed in the exported html file.
Thanks.
Currently it's not possible:
https://github.com/microsoft/vscode-jupyter/issues/4404
Thanks for the suggestion! We don't have plans to prioritize implementing this now, and if this issue receives upvotes from the community we will reconsider.

Show Loading Screen on Home Screen Widget Android

I understand the "android:initialLayout" element within the xml folder for defining the default layout of an Android homescreen widget. I want to be able to display a "loading your information" on my widget while I am waiting for data...how do I do this. I have tried to display an error message on my widget if there is no connectivity, but it doesn't get past the "android:initialLayout" , so showing code I believe is irrelevant. Correct me if I am wrong please...don't bash me. Any help greatly appreciated!
Yes, the initialLayout is so that your widget displays something before Android has had a chance to call your widget-updating code. This is a great place to put a "Loading..." message.
Once your onUpdate method is called in your widget, that is your chance to get your data. If you have a connectivity problem at that point, you can display an error message at that point. Otherwise, if you successfully get your data, then you can draw you widget with the data.
I'm not sure if I've answered your question, so apologies if I have not. Please clarify a bit more if I have not. The main questions I have are:
Is Android calling your onUpdate function? Log statements can be really helpful for this.
Are you trying to load your data in the background, such as a separate Service, and then reading the results in the widget? Or are you loading the data inside the widget?

Creating GTK Widget Using Expander

I am trying to create GTK Widget like shows in following Images
Is it possible to create it in GTK+ under C,
I tried using GtkExpander but it is not working out ...
Can any one Help....
Stripping the arrow is quite trivial. Just append the following code to you $HOME/.gtkrc-2.0 (or create it if not found):
style "pradeep" {
GtkExpander::expander-size = 0
GtkExpander::expander-spacing = 0
}
widget "*.GtkExpander" style "pradeep"
This is done by customizing the appearance using resource files. You can get the same result programmatically by changing the GtkExpander style properties.
Furthermore, you can connect your own callback to its "activate" signal and switch the background color of the widget whenever is active or not. And a lot more...
Just remember someone loves to have a consistent user interface.
If what you want is to duplicate the look, then there are two very inefficient solutions to the problem:
Write your own GTK theme engine (see Murrine or Clearlooks).
Replace your entire program by a GtkDrawingArea widget and use Cairo to draw exactly the look you want. You'll be on your own then, though, so you'll have to write all your widget placement algorithms, buttons, expanders, menus, and whatnot, from scratch.
GTK isn't really meant for this sort of thing. The whole point of GTK is that you design your user interface with the standard widgets, and they just work with whatever theme, language, or accessibility technologies your users need to use. If you design your own look and there's no way to change it, then someone with color blindness or poor eyesight won't be able to use it. Or the text will get all misaligned if someone uses your application in another language. Or at the very least, maybe someone just likes a black desktop with white lettering, and your application will stick out and look really ugly on that user's computer. If you really need to make it look exactly that way, then probably GTK isn't the right tool for you.