Creating a child window that I have control overl

I need to create a child window (Not a new whole screen). This will be used to ask the user questions.

  1. Sometimes I want a child window with 1 button, 2 buttons, 3 buttons etc.
  2. There will be several text boxes where the text that will hold e.g. the question I want to ask.
  3. The buttons will have text on them (This text will change depending on the question asked, e.g. “YES” “NO”, “APPLE” etc.)
  4. I want to get the return value of the question e.g. Button selected = “APPLE”.

I was able to do this using MFC by creating a Dialog window that accepted variables in its constructor such as: noOfButtons=2, button1Colour=RED, button2Colour=GREEN,button1Text=“APPLE”, button2Text=“ORANGE”,questionText=“What is your fav fruit?”
Instead of always creating each window from scratch (e.g. one window with two buttons, one window with three buttons), is there a way I can create a ‘master’ child window and pass it certain parameters that will define its layout.

How can I accomplish something like this ??

Many thanks. [import]uid: 77494 topic_id: 12721 reply_id: 312721[/import]

From your explanation, you seem to be a Microsoft Developer.

In Apple iOS, you have Views, on the mobile device there are no child windows. Plus when you create a Dialog in Resource Editor, you are essentially creating a Dialog that has embedded elements as children.

So what you need to do in Corona, is to create a Group, and have the child elements in that group, think of it as your child view/window.

Further to that you are describing that you want this to be a template, which can handle multiple buttons and each button can be customised. Why do you not try a function in Corona that creates the group and the child objects as you want.

If you are happy to pay for the time, I can write up a custom control for you that will do just that.

Hope that made sense to you,

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 12721 reply_id: 46624[/import]

re: From your explanation, you seem to be a Microsoft Developer.
Yes :slight_smile:

re: you want this to be a template, which can handle multiple buttons and each button can be customised.
yes indeed. I want to pop up a ‘view’ that is not fullscreen. That has text and buttons that I can customise (Position, colour, text etc)

Then when the user presses e.g. button 1, I want to be able to know that.

re: If you are happy to pay for the time, I can write up a custom control for you that will do just that.

OK, budget is verrrry tight but I would like to discuss this.
can you email me your contact details?

Thanks [import]uid: 77494 topic_id: 12721 reply_id: 46632[/import]

dev[at]oz-apps[dot]com

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 12721 reply_id: 46633[/import]

Hi,
take a look to this link :
http://developer.anscamobile.com/code/match-letter

It have something like what you want.

[import]uid: 65047 topic_id: 12721 reply_id: 46638[/import]