I've been looking for some examples on creating a custom statusbar for an AIR application, but haven't found anything really useful. That was until I started looking around in the Tour de Flex AIR app for an example, and it was right there (part of the app itself). Would anyone have some suggestions on replicating this statusbar. The trouble I'm having is that I cannot seem to get the value of a dynamic variable to display. I'm attempting to display the current user.
In your application's initialize handler:
statusBarFactory = new ClassFactory(yourpackage.yourStatusBarClassName);
Application will create status bar from your class.
In your descriptor xml, make the systemChrome tag false, then it's just a matter of imagining how you want to make your status bar look and implement it.
Related
I finished the functionalities of my app. Now when user first time login i need to make introduction guide on every page, with a short text Myabe some alert. Also on the dialog need chechbox , if he check the guide wont show again. I dont know where to start and how to organize this. Any example, practise to start. On all the dialogs will be static text.
You can refer any sample which guides you to create Tutorial Screen.
You can use built in Carousel View to have that as well.
Here I'm sharing one of that: How to add tutorial screen in Xamarin.Forms
Edit
To add it on every single page, you can use custom Popup, which can be created using Rg.Plugins.Popup
I am new to TurboGears2 and by extension ToscaWidgets2. I am following the tutorial given here http://turbogears.readthedocs.org/en/latest/cookbook/datagrid.html
for creating a basic datagrid. When I view the index page, all I see is this:
class 'tw2.core.params.DataGrid_s_s'
I have also tried using a DataGrid for showing data from an existing DB, but I also get the same above result. Shouldn't there be a .css file that would handle the grid generation/display?
I have checked past tutorials for using DataGrid on TurboGears, and when it comes to displaying the grid, they only show this line:
${grid(value=data} ( or ${grid(data)} in older TG versions).
Since there are no errors being shown, I am at a complete loss here. I have searched online for a solution on this, but I haven't been lucky. Any advice on how to get around this?
Cheers,
DM
It changed in recent ToscaWidgets versions, when you want to display a widget (like the DataGrid) you should prefer an explicit call to the display method instead of calling the widget itself.
try to replace ${grid(value=data} with ${grid.display(value=data}
Have a look at the Forms tutorial, it covers some basics on working with forms and TW2 widgets, the DataGrid in the ends it's just a Widget so behaves like forms for some features.
I have a flex application showing a chart. I want to give user the functionality to download this chart as image. How can i do it?
This Adobe Cookbook entry can answer your question. And yes, your project should be targeted Flash Player 10.
I would use the ImageSnapshot class to take a 'pic' of the chart, then save it locally using FileReference.save().
Let's say that you're using some black box library (i.e. no source code) that sets your cursor to something when rolling over a certain sprite. You can override that by catching rollOver and rollOut events, blocking propagation and using the CursorManager.
Question: is there a way to tell the CursorManager to use the system cursor?
Obviously, I could feed the CursorManager some "system like" cursor, but this would look weird if the local settings are different from that icon, which is likely to be always.
thank you!
f
You can create your own version of CursorManager - just create file mx/managers/CursorManager.as, copy it's content from default manager (use Ctrl+Shift+T to navigate to it) and change the code.
If you use RSLs then you need to create monkey-patch and load it BEFORE RSLs.
if you embed SDK into code then you can simply compile the app and class will be replaced.
I have a Flex 3.5 Air Application; The main window has, besides the header, a TabNavigator. In a Tab, I've put a Google Maps object. It works fine, except that it "loads" very slow and the whole application freezes ( not responding problem ).
Now I would like to fix that but don't really now how to implement one of these solutions:
1) Load the API before the whole application loads.
2) Load the API somehow async, when the tab is clicked. I don't really need a fancy preloader, it's enough that my app doesn't freeze.
Please note that I'm "110%" sure that it's the GoogleMaps's fault since the tab canvas is empty, and no other code is there [double checked that]. Also please note that the map only loads, then I call the setCenter method, so no other operations that could freeze it.
EDIT: I managed to determine that not the Api Object creation is slow, but the actual display of it on the GUI. Here's the line of code. ResellersMapClass only extends the Google Maps API class since I intend to add there extra functionality. But right now is clean.
this.map = new ResellersMapClass();
//between here
this.mapContainer.addChild( this.map );
//and here
Now is there a way to preload this ? Or any other solution that will prevent the GUI from freezing.
Thanks,
Gabriel
I had the same problem with the Yahoo! map API. I ended up just dropping it in a module and gave it a ProgressBar for the load. That should help with the async issues at least. If the problem is a heavy algorithm in the library, there is no way around that until flash rolls out true multi-threading (crosses fingers).