Forum Discussion

100uu's avatar
100uu
Visitor
9 years ago

how hide one dialog and show .another dialog

i want to hide one dialog and show another dialog but i did dose not work ,
first, i call displayProcessDialog function and then i call showPurchaseDialog function but it's not work
 here is my code ,anyone know how to do ? 
thanks

sub displayProcessDialog(title="You need subscribe this channel, wait a moment please ...")
  ' ProgressDialog
  progressdialog = createObject("RoSGNode","Dialog")
  progressdialog.backgroundUri = "pkg:/images/dialog_bg.9.png"
  ' progressdialog.title = title
  progressdialog.title = "Subscription"
  ' progressdialog.optionsDialog = true
  progressdialog.message = "You need subscribe this channel"
  progressdialog.buttons=["Subscriptibe to xxxxx $9.99"]
  m.top.dialog = progressdialog

  progressdialog.observeField("buttonSelected","subscriptionCheck")
  m.timer = createObject("RoSGNode","Timer")
  m.timer.duration = 50
  m.timer.ObserveField("fire","dismissdialog")
  m.timer.control = "start"
end sub

function showPurchaseDialog()
  purchasedialog = createObject("RoSGNode","ProgressDialog")
  purchasedialog.backgroundUri = "pkg:/images/dialog_bg.9.png"
  purchasedialog.title = "Purchasing subscription..."
  ' m.top.purchasedialog = purchasedialog
  ' purchasedialog.close = false
end function
No RepliesBe the first to reply