Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4336478
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:48:44+00:00 2026-05-21T10:48:44+00:00

Over one month ago, I posted the following problem at http://forums.smartclient.com/index.php but nobody answered:

  • 0

Over one month ago, I posted the following problem at http://forums.smartclient.com/index.php but nobody answered:

I use the following code from showcase:

public void onModuleLoad() {  

            Canvas canvas = new Canvas();  

            DragLabel dragTranslucent = new DragLabel("Translucent", 50);  
            dragTranslucent.setDragAppearance(DragAppearance.TARGET);  
            dragTranslucent.setDragOpacity(60);  
            canvas.addChild(dragTranslucent);  

            DragLabel dragShadow = new DragLabel("Shadow", 200);  
            dragShadow.setDragAppearance(DragAppearance.TARGET);  
            dragShadow.setShowDragShadow(true);  
            //TODO: dragShadow.setDragShadowDepth(8);  
            canvas.addChild(dragShadow);  

            DragLabel dragOutline = new DragLabel("Outline", 350);  
            dragOutline.setLeft(350);        
            dragOutline.setDragAppearance(DragAppearance.OUTLINE);  
            canvas.addChild(dragOutline);  

            canvas.draw();  
        }  

        public static class DragLabel extends Label {  
            public DragLabel(String contents, int left) {  
                setTop(50);  
                setLeft(left);  
                setContents(contents);  
                setAlign(Alignment.CENTER);  
                setPadding(4);  
                setShowEdges(true);  
                setBackgroundColor("#EEEEEE");  
                setKeepInParentRect(true);  
                setCanDragReposition(true);      
            }  
} 

And this is the result (sorry for links, but I don’t have any reputation points):

i47.tinypic.com/9rsqae.jpg

However, I should get something like this (it’s from showcase):

i49.tinypic.com/11l670p.jpg

The problem concerns firefox and chrome. Does anybody know how to fix it?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:48:45+00:00Added an answer on May 21, 2026 at 10:48 am

    I’ve solved the problem by put <!doctype html> from html file in comments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with one of my websites. http://www.weddingguest-book.com I only found this
I Built an IoC container long time ago while watching this show http://www.dnrtv.com/default.aspx?showNum=126 few
I just discovered PHP-ActiveRecord not too long ago after struggling for nearly a month
I have a for loop that loops over one array... for i=1:length(myArray) In this
why would I prefer Google Apps server over one of Amazon's various offerings? the
I used textmate to work with ruby code for over one year. Recently I
Pulling my hair out over this one. I have one wordpress install at /2009
When should I choose one over the other? Are there any pointers that you
Are there any advantages of using one over the other besides readability?
im tearing my hair out over this one. A query is throwing an error:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.