Custom Input Dialog

Harris

Expert
Licensed User
Longtime User
How does one reference values (like text edit controls, checkboxes) from a custom dialog (modal). I see is doesn't raise events (but could it?). I create a panel with various input views but don't see how I can get the vallues from them.

Thanks
 

Harris

Expert
Licensed User
Longtime User
Yes, I now see how I can access content of various views upon return - since it is my panel on the custom.

I have tried a button on the panel with it's click event but it doesn't get called (currently). Do you have a link the the "demo where a button on the dialog has a Click event". I have searched and can't find it - probably cause I'm blind... I would rather used the custom input, since it is modal and I dont have to mess around with the visibility of my panel and adding response buttons, etc...


Thanks so much.
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
:sign0013: stund me...

Dim cd As CustomDialog
Dim btn1 As Button
btn1.Initialize("btn1")
btn1.Text = "Press me"
pnl.AddView(btn1, 80dip, 50dip, 60dip, 60dip)
ret = cd.Show("B4A Custom Dialog", "Yes", "No", "Maybe", Bmp)

My button on my panel were all created in the designer, generating members (and the click member). I have to remove the panel from activity and attach it to the custom. The only thing I see is I don't "btn1.Initialize("btn1")" in design mode. Could this be why I do not raise the click event for my button?

Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…