Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Unable to customize the dialog box of SC.Warn/SC.prompt

    Hi All,
    I posted similar questions before but the main problem I am facing is this when I am using overloaded method of warn/prompt which takes dialog as an argument, and when I set various methods on this dialog it doesn't work. Since dialog is a child of Canvas I wanted to add a image in the dialog but the dialog doesn't display the image. But I am able to set some basic settings like height and width. Can anyone tell me the reason behind this?

    Thanks
    Kiran

    #2
    For what your doing better to create your own customize widget for it, if you look at the code, the only customization allowed is for: properties.buttons, properties.toolbarButtons, properties.title, and properties.icon, as well as any handlers you may want to apply. And I don't actually think this is any 'icon' var that can be set, so it gets the global icons from the skin dir. To customize it fully, best to create your own window probably.

    Comment


      #3
      Thanks svjard for the reply
      Are you talking about the code of SC class?? or is it that we cannot do any customization for the dialog component it self.

      Thanks
      V Kiran Kumar

      Comment


        #4
        Yeah, when you call SC.warn() for example and pass the Dialog parameter that is all that is looks at for customization. So with all you want to do you might consider your own dialog class so you can have no header, your own set of images/icons, look-n-feel basically.

        Comment


          #5
          Thanks svjard
          I will try using my custom dialog

          Kiran

          Comment

          Working...
          X