×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    8

    Customize Dialog

    Hi All Developers,
    I have the problem in LWUIT..
    Can you help me to remove title dialog , So I want show the dialog without title dialog

    You can see in the problem in this picture :


    I'm also get trouble in wrapping text.. Anyone have idea to wrap my text in the dialog ?

    Thanks for Helping


    Best Regards, Budi
    Last edited by renzatsu1; 2013-05-21 at 05:19.

  2. #2
    Registered User
    Join Date
    Nov 2012
    Posts
    7

    Re: Customize Dialog

    try .getTitleArea().setVisible(false) or use a blank title ("").

    to wrap the text, try TextArea.

    i.e.

    Dialog dialog = new Dialog("");
    dialog.getTitleArea().setVisible(false);

    TextArea textArea = new TextArea("...your text...");
    textArea.setFocusable(false);
    textArea.setRows(2);
    textArea.setGrowByContent(true);
    dialog.addComponent(textArea);

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    8

    Re: Customize Dialog

    Quote Originally Posted by kyuste View Post
    try .getTitleArea().setVisible(false) or use a blank title ("").

    to wrap the text, try TextArea.

    i.e.

    Dialog dialog = new Dialog("");
    dialog.getTitleArea().setVisible(false);

    TextArea textArea = new TextArea("...your text...");
    textArea.setFocusable(false);
    textArea.setRows(2);
    textArea.setGrowByContent(true);
    dialog.addComponent(textArea);
    Thanks Kyuste for reply.. I still get problem in Dialog title..
    Anyone have idea about this problem..

  4. #4
    Nokia Developer Champion
    Join Date
    Aug 2010
    Location
    Ahmedabad
    Posts
    299

    Re: Customize Dialog

    I tried this code and there is no title in the dialog box.

    Code:
            Dialog demoDialog = new Dialog("");
            demoDialog.setAutoDispose(true);
            demoDialog.setTimeout(2000);
            demoDialog.show();
    Could you please share your code to show the dialog box?

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Customize Dialog

    Renzatsu1: Hey this is what you need to do (this can also be done via code but i think this way is the better shorter one).

    Open your resource file with the resource editor
    Click on your theme, go to the constants tab
    and add hideEmptyTitleBool constant with the value true
    Save the resource file and refresh the eclipse project.

  6. #6
    Regular Contributor
    Join Date
    Dec 2012
    Location
    Indonesia,DKI Jakarta
    Posts
    87

    Re: Customize Dialog

    I had the same problem with renzatsu, i think your code just to make the dialog automatically disposed. The problem is to remove title component, the grey color.
    Quote Originally Posted by girishpadia View Post
    I tried this code and there is no title in the dialog box.

    Code:
            Dialog demoDialog = new Dialog("");
            demoDialog.setAutoDispose(true);
            demoDialog.setTimeout(2000);
            demoDialog.show();
    Could you please share your code to show the dialog box?

  7. #7
    Regular Contributor
    Join Date
    Dec 2012
    Location
    Indonesia,DKI Jakarta
    Posts
    87

    Re: Customize Dialog

    Shai.i i had same problem with budi. What do you mean by resource file..??. Do you mean the newTheme.res?

    Quote Originally Posted by shai.i View Post
    Renzatsu1: Hey this is what you need to do (this can also be done via code but i think this way is the better shorter one).

    Open your resource file with the resource editor
    Click on your theme, go to the constants tab
    and add hideEmptyTitleBool constant with the value true
    Save the resource file and refresh the eclipse project.

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Customize Dialog

    muhamad.iqbal: Yes, i mean the .res file which you open with the lwuit resource editor.

  9. #9
    Registered User
    Join Date
    Mar 2013
    Posts
    8

    Re: Customize Dialog

    Hi, Shai thanks for reply

    In my project, I don't use themes, then I just try it and my UI was broken. This because I load the res file...
    Do you have any solutions..? I just need remove title component, the grey color on upper dialog ..

    Thanks

  10. #10
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Customize Dialog

    if your not using resource file at all then try this code (only after you called Display.init() and setThemeProps - if you use it)

    Hashtable props = new Hashtable();
    props.put("@hideEmptyTitleBool", "1");
    UIManager.getInstance().addThemeProps(props);

  11. #11
    Registered User
    Join Date
    Mar 2013
    Posts
    8

    Re: Customize Dialog

    Quote Originally Posted by shai.i View Post
    if your not using resource file at all then try this code (only after you called Display.init() and setThemeProps - if you use it)

    Hashtable props = new Hashtable();
    props.put("@hideEmptyTitleBool", "1");
    UIManager.getInstance().addThemeProps(props);
    Thanks Shai..
    Hmm I think that is code for change Screen into full screen mode...
    same like code Display.getInstance().setForceFullScreen(true);

    But my problem is to remove title dialog (Grey Color Area) like this picture:


    Do you have any solution?

Similar Threads

  1. Custom dialog- a dialog similar to a popup dialog
    By zhengyu97 in forum Symbian User Interface
    Replies: 1
    Last Post: 2010-11-24, 04:46
  2. Customize Pop Up dialog
    By prabhu_manju in forum Symbian User Interface
    Replies: 1
    Last Post: 2010-10-29, 08:17
  3. Customize Note Dialog
    By syedshakeel2004 in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-06-15, 08:33
  4. can i customize Data Query Dialog
    By nital_shah in forum Symbian
    Replies: 18
    Last Post: 2008-11-20, 11:50
  5. Customize font of the CEikEdwin dialog line in CAknDialog\CAknForm
    By VigenIssahhanjan in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-01-31, 18:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×