Widget base directory parameter

Is it possible to specify a base directory, such as system.TemporaryDirectory, for Widgets?

For example, the following does not work:

[lua] local list = widget.newTableView{
left = 0,
top = 0,
width = 240,
height = 366,
maskFile = “mask-240x366.png”,
baseDirectory = system.TemporaryDirectory
}[/lua] [import]uid: 8271 topic_id: 28435 reply_id: 328435[/import]

I should point out that this does not work also, though it is the key name specified in the widget.newButton documentation:

http://docs.coronalabs.com/api/library/widget/newButton.html

So, I guess I’m really asking about the base directory setting for the Table View widget.

[lua] local list = widget.newTableView{
left = 0,
top = 0,
width = 240,
height = 366,
maskFile = “mask-240x366.png”,
baseDir = system.TemporaryDirectory
}[/lua] [import]uid: 8271 topic_id: 28435 reply_id: 114766[/import]

Hey Horace. It isn’t at present, but feel free to file a feature request for this functionality here: http://developer.coronalabs.com/content/bug-submission

I’m presuming you want to set the baseDirectory so it looks for the mask file etc in the baseDirectory specified? [import]uid: 84637 topic_id: 28435 reply_id: 114767[/import]

Yes - this is all related to the widget and mask work I’m doing at the moment as I’ve decided that a fully featured menu component will need to generate it’s own masks to avoid the developer needing to provide a (potentially) very large number of masks themselves.

Also, it does seem that (as I’m sure you know already, Danny) only newScrollView, newTableView and setTheme do not accept ‘baseDir’ parameters in their options tables. [import]uid: 8271 topic_id: 28435 reply_id: 114770[/import]

@Horace, gotcha.

I just had a look, and certain widgets are indeed missing a baseDir parameter.
If you haven’t filed that feature request yet, please reference my name in the description. If you have already filed it, post the bug number and I will take it over.

Thanks! [import]uid: 84637 topic_id: 28435 reply_id: 114773[/import]

Thanks Danny - I had posted, so here’s the ID: Case 15565 [import]uid: 8271 topic_id: 28435 reply_id: 114776[/import]

Just wondering…

The documentation for the newTableView states:

[lua]maskFile (optional)
String. If you set a custom height, you need to specify the maskFile parameter, which is the filename of the bitmap mask which will be used on your tableView.[/lua]

I am currently calling that with a broken path to my mask file (see earlier discussion) and the tableView is rendering just fine. It looks ok because I am nesting it within another display group which also has it’s own mask.

Is it strictly true that if width and height are specified the mask must be specified? My current code would appear to contradict that.

Also, am I being too anally retentive? [import]uid: 8271 topic_id: 28435 reply_id: 114778[/import]