Pics In Jiggy?

Discussion in 'Jiggy Runtime Development' started by Nickll9009, Apr 23, 2008.

  1. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    Hey I want to add a picture to my alert sheet how do i do this?
  2. hockeypanda32

    hockeypanda32 Well-Known Member

    Joined:
    Dec 18, 2007
    Messages:
    2,183
    Likes Received:
    89
    Device:
    iPhone 4 (Black)
    I don't know about alert sheet but here is how to add a pic!

    Code:
      
    var pic = new Image( "Example.png" ); 
    var imgView = new UIImageView( pic ); 
    imgView.position = [30, 100]; 
    mainView.addSubview( imgView );
  3. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    Hey thanks! Also can i add a text box and a keyboard to an alert sheet?
  4. The Ax

    The Ax Banned

    Joined:
    Mar 11, 2008
    Messages:
    647
    Likes Received:
    22
    Thats a good question.
    Maybe in a game that stores highscores this is possibe?

    Code:
    var sheet = new UIAlertSheet( "" , [ "Button" , "Button2" ] , 0 );
    sheet.setAlertSheetStyle(1);
    sheet.setTitle( "AlertSheet Title" );
    sheet.setBodyText( "Text of the body of the alertsheet" );
    sheet.onButtonClicked = function( button )
    {
    if ( button == 1 )
    {
    sheet.setTitile(TestButton)
    }
    if ( button == 2 )
    {
    sheet.setTitile(TestButton2)
    }
    };
    Try That the click button 1
  5. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55

    yup,

    Code:
    sheet.addTextFieldWithValue( "" );
  6. hotshot88

    hotshot88 New Member

    Joined:
    Apr 17, 2008
    Messages:
    34
    Likes Received:
    1
  7. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55


    note also that in some cases, you can add an image not just to a view, but an item, such as you can in a UIButtonBar
  8. PAEz

    PAEz New Member

    Joined:
    Jan 29, 2008
    Messages:
    201
    Likes Received:
    10
    yeah.... but can i change the keyboard type for the alert box?
    i didnt notice a way...bumma....so if anyone knows?
  9. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55

    yeah, i haven't used it in a while but its something like this:


    sheet.setPreferredKeyboardType(2);

    or

    sheet.preferredKeyboardType = 2;


    not quite positive. mess around with that a little. you can get like the numbers screen and stuff
  10. PAEz

    PAEz New Member

    Joined:
    Jan 29, 2008
    Messages:
    201
    Likes Received:
    10
    thanx alot for that, but unfortunately i still dont think it can be done.
    that properity..preferredKeyboardType ...is right for UIKeyboard .. but it doesnt seem to apply to an alert.
    ohwell
    sorry to hear about the lose of your source code by the way...once lost the source to prolly the only app i did that i cared about...a GTA3 CarSwapper for dummies

    Please Register or Log in to view images

    ...never did redo it, still got the exe somewhere

Share This Page