New Candy Lib: Widget Candy for Corona

Thanks for the suggestions, Andreas.

Widget Candy has just been updated to 1.0.87, which contains the following improvements:

* Added two new button properties to alert and confirmation windows (.width and .newLine). The optional .width property specifies the width of a button (can be a number or a percent string), while the optional .newLine property places a button on a new line, if set to true. Use it to place buttons vertically within a confirmation window. See updated manual, confirmation window properties, for details.

* Fixed position issue with alert and confirmation windows when device orientation was changed.

Here is an example on how to display three buttons in a confirmation window, where the buttons are placed vertically:

[lua]buttons =
{
{icon = 15, caption = “Yes”, width = “100%”},
{icon = 16, caption = “No” , width = “100%”, newLine = true},
{icon = 17, caption = “Perhaps” , width = “100%”, newLine = true},
},[/lua]
To keep informed about updates: Twitter @XPRESSIVECOM [import]uid: 10504 topic_id: 25953 reply_id: 137192[/import]

Hi X-PRESSIVE (Mike? Is it you,Mike?),

thanks for the fast help!

Introducing the newLine-property is a really great idea, so much better than my suggestion, and the width-per-button is much appreciated, too!

Best,
Andreas [import]uid: 107675 topic_id: 25953 reply_id: 137197[/import]

I have a question about the Widget library. Does it work when multi-touch is activated? Will I be able to successfully use a slider while pressing a button at the same time? [import]uid: 69494 topic_id: 25953 reply_id: 137212[/import]

Is there any sort of datepicker in this lib? [import]uid: 132483 topic_id: 25953 reply_id: 137298[/import]

Just wanted to say that I finally posted my first app using Widget Candy to Google Play. I really like the look and feel that I could achieve for an app that requires buttons and lists. You can check out the app, Oh Behave!, here: https://play.google.com/store/apps/details?id=com.thinkatorium.ohbehavelite&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS50aGlua2F0b3JpdW0ub2hiZWhhdmVsaXRlIl0. [import]uid: 104085 topic_id: 25953 reply_id: 137300[/import]

Hello! I was checking to see if there was a way to get the actual text that was input to a an input text field once you’ve entered text.

I was hoping for something like a ‘.text’ from the _G.GUI.NewInput object I created. I want to iterate through all the fields of user data and confirm there’s data in them before transmitting off to the back end server.

Appreciate any help!!

-Mario [import]uid: 11636 topic_id: 25953 reply_id: 142488[/import]

Never mind!! Found it:

myWidget.Props.caption  

It was the ‘Props’ that threw me! :slight_smile:

-Mario [import]uid: 11636 topic_id: 25953 reply_id: 142489[/import]

Hello! I was checking to see if there was a way to get the actual text that was input to a an input text field once you’ve entered text.

I was hoping for something like a ‘.text’ from the _G.GUI.NewInput object I created. I want to iterate through all the fields of user data and confirm there’s data in them before transmitting off to the back end server.

Appreciate any help!!

-Mario [import]uid: 11636 topic_id: 25953 reply_id: 142488[/import]

Never mind!! Found it:

myWidget.Props.caption  

It was the ‘Props’ that threw me! :slight_smile:

-Mario [import]uid: 11636 topic_id: 25953 reply_id: 142489[/import]

I have 4 Widget Candy buttons, all of them are added to a window using the parentGroup command. The window has height = “auto”, and after adding the buttons i call MyWindow:layout(false). So far so good.

When simulating for the iPhone, iPhone 4, Droid, Nexus One, and Sensation, the window somehow seems to be ignoring the bottomMargin of the last button, and ends immediately below the button, looking unfinished.

When simulating for the iPad, iPad Retina, iPhone 5, Galaxy S III, Galaxy Tab, the bottomMargin is there.

On real life Android machines, my EEEPad TF300 tablet shows the border just fine, while my Galaxy SII phone doesn’t. I don’t have any apple products to test on.

Is this a bug in the library, or am i doing something wrong? (I can post the relevant code here but it’s fairly long…)

[import]uid: 215620 topic_id: 25953 reply_id: 144023[/import]

thomasvg50,

I have had this problem before and it is usually one of three cases:

Do you have the includeInLayout property set to true in each button?

Do you have the height property of the winodw set to “auto”?
looks like you already checked this one

After adding the buttons, do you call window:layout()?
use the variable name of your window not “window”

Anyway, hope this helps.
-Phil [import]uid: 106158 topic_id: 25953 reply_id: 144137[/import]

Just purchased Wiget candy and particle candy. Looking forward to integrating wiget candy into may app to clean up the interface over the next week or two.

I would love to see a ScrollView Widget from you guys. There are issues that I’ve run into with both v1 and v2 scrollview widgets from Corona. Having one that is integrated with wiget candy would be outstanding. It’s could be contained by a border that could be sized as needed based on device display area, and easily located on the screen allowing for custom ui’s by the user, or at least allow us to code a few ui arrangement options.

I don’t think I need particle candy for my current app, but I couldn’t pass up the 50% off :wink:

Thanks again
T [import]uid: 170004 topic_id: 25953 reply_id: 144789[/import]

I have 4 Widget Candy buttons, all of them are added to a window using the parentGroup command. The window has height = “auto”, and after adding the buttons i call MyWindow:layout(false). So far so good.

When simulating for the iPhone, iPhone 4, Droid, Nexus One, and Sensation, the window somehow seems to be ignoring the bottomMargin of the last button, and ends immediately below the button, looking unfinished.

When simulating for the iPad, iPad Retina, iPhone 5, Galaxy S III, Galaxy Tab, the bottomMargin is there.

On real life Android machines, my EEEPad TF300 tablet shows the border just fine, while my Galaxy SII phone doesn’t. I don’t have any apple products to test on.

Is this a bug in the library, or am i doing something wrong? (I can post the relevant code here but it’s fairly long…)

[import]uid: 215620 topic_id: 25953 reply_id: 144023[/import]

thomasvg50,

I have had this problem before and it is usually one of three cases:

Do you have the includeInLayout property set to true in each button?

Do you have the height property of the winodw set to “auto”?
looks like you already checked this one

After adding the buttons, do you call window:layout()?
use the variable name of your window not “window”

Anyway, hope this helps.
-Phil [import]uid: 106158 topic_id: 25953 reply_id: 144137[/import]

Just purchased Wiget candy and particle candy. Looking forward to integrating wiget candy into may app to clean up the interface over the next week or two.

I would love to see a ScrollView Widget from you guys. There are issues that I’ve run into with both v1 and v2 scrollview widgets from Corona. Having one that is integrated with wiget candy would be outstanding. It’s could be contained by a border that could be sized as needed based on device display area, and easily located on the screen allowing for custom ui’s by the user, or at least allow us to code a few ui arrangement options.

I don’t think I need particle candy for my current app, but I couldn’t pass up the 50% off :wink:

Thanks again
T [import]uid: 170004 topic_id: 25953 reply_id: 144789[/import]

I have 4 Widget Candy buttons, all of them are added to a window using the parentGroup command. The window has height = “auto”, and after adding the buttons i call MyWindow:layout(false). So far so good.

When simulating for the iPhone, iPhone 4, Droid, Nexus One, and Sensation, the window somehow seems to be ignoring the bottomMargin of the last button, and ends immediately below the button, looking unfinished.

When simulating for the iPad, iPad Retina, iPhone 5, Galaxy S III, Galaxy Tab, the bottomMargin is there.

On real life Android machines, my EEEPad TF300 tablet shows the border just fine, while my Galaxy SII phone doesn’t. I don’t have any apple products to test on.

Is this a bug in the library, or am i doing something wrong? (I can post the relevant code here but it’s fairly long…)

[import]uid: 215620 topic_id: 25953 reply_id: 144023[/import]

thomasvg50,

I have had this problem before and it is usually one of three cases:

Do you have the includeInLayout property set to true in each button?

Do you have the height property of the winodw set to “auto”?
looks like you already checked this one

After adding the buttons, do you call window:layout()?
use the variable name of your window not “window”

Anyway, hope this helps.
-Phil [import]uid: 106158 topic_id: 25953 reply_id: 144137[/import]

Just purchased Wiget candy and particle candy. Looking forward to integrating wiget candy into may app to clean up the interface over the next week or two.

I would love to see a ScrollView Widget from you guys. There are issues that I’ve run into with both v1 and v2 scrollview widgets from Corona. Having one that is integrated with wiget candy would be outstanding. It’s could be contained by a border that could be sized as needed based on device display area, and easily located on the screen allowing for custom ui’s by the user, or at least allow us to code a few ui arrangement options.

I don’t think I need particle candy for my current app, but I couldn’t pass up the 50% off :wink:

Thanks again
T [import]uid: 170004 topic_id: 25953 reply_id: 144789[/import]

I have 4 Widget Candy buttons, all of them are added to a window using the parentGroup command. The window has height = “auto”, and after adding the buttons i call MyWindow:layout(false). So far so good.

When simulating for the iPhone, iPhone 4, Droid, Nexus One, and Sensation, the window somehow seems to be ignoring the bottomMargin of the last button, and ends immediately below the button, looking unfinished.

When simulating for the iPad, iPad Retina, iPhone 5, Galaxy S III, Galaxy Tab, the bottomMargin is there.

On real life Android machines, my EEEPad TF300 tablet shows the border just fine, while my Galaxy SII phone doesn’t. I don’t have any apple products to test on.

Is this a bug in the library, or am i doing something wrong? (I can post the relevant code here but it’s fairly long…)

[import]uid: 215620 topic_id: 25953 reply_id: 144023[/import]

thomasvg50,

I have had this problem before and it is usually one of three cases:

Do you have the includeInLayout property set to true in each button?

Do you have the height property of the winodw set to “auto”?
looks like you already checked this one

After adding the buttons, do you call window:layout()?
use the variable name of your window not “window”

Anyway, hope this helps.
-Phil [import]uid: 106158 topic_id: 25953 reply_id: 144137[/import]