How to use custom modal with ctools and triggered by a button form I'm using ctools to render my node form. 
And my quesiton is how to insert the custom style for the popup window.
I know how to use the custom style in the text button. but I don't know how to use it in the button form

the code for my button form

function hs_ajax_button_form($cmp_id=NULL)
{
    $form = array();
    $slogan_url='hs_ajax/nojs/slogan/'.$cmp_id;
    $form['url'] = array(
    '#type' =&gt; 'hidden',
    // The name of the class is the #id of $form['ajax_button'] with "-url"
    // suffix.
    '#attributes' =&gt; array('class' =&gt; array('hs-ajax-button-url')),
    '#value' =&gt; url($slogan_url),
    );

    $form['ajax_button'] = array(
    '#type' =&gt; 'button',
    '#value' =&gt; t('New Post'),
    '#attributes' =&gt; array('class' =&gt; array('ctools-use-modal')),
    '#id' =&gt; 'hs-ajax-button',
    );

  return $form;
}


and my trigger code is below

 $button_form=hs_ajax_button_form($campaign_id);

                    $form['PlayerAttendInformation'][$key]['ctools']=array(
                    '#type'=&gt;'markup',
                    '#markup'=&gt;drupal_render($button_form),
                    );


my style is as below

    $sample_style = array(
        'slogan-style' =&gt; array(
          'modalSize' =&gt; array(
            'type' =&gt; 'fixed',
            'width' =&gt; 800,
            'height' =&gt;700,
            'addWidth' =&gt; 20,
            'addHeight' =&gt; 15,
          ),
          'modalOptions' =&gt; array(
            'opacity' =&gt; .5,
            'background-color' =&gt; '#000',
          ),
          'animation' =&gt; 'fadeIn',
          'modalTheme' =&gt; 'CToolsSampleModal',
          'throbber' =&gt; theme('image', array('path' =&gt; ctools_image_path('ajax-loader.gif', 'hs_ajax'), 'alt' =&gt; t('Loading...'), 'title' =&gt; t('Loading'))),
        ),
        );


how can i do that?
Try this:

  $form['ajax_button'] = array(
    '#type' =&gt; 'button',
    '#value' =&gt; t('New Post'),
    '#attributes' =&gt; array('class' =&gt; array('ctools-use-modal','ctools-modal-slogan-style')),
    '#id' =&gt; 'hs-ajax-button',
    );


Vincent