CCControlButton's Title not show in cocos2d-x - cocos2d-x

When I use the following code to get the title in my button, my button does not show its title, just a blank button. How can I fix this code?
resumeBtn->setTitleForState(CCString::create(stringResource->getString("resume")->getCString()), CCControlStateNormal);
resumeBtn->setTitleForState(CCString::create(stringResource->getString("resume")->getCString()), CCControlStateHighlighted);
Any help would be appreciated.

Related

Html code to make link with text box and pretext link

So, I want to konw i anyone can help me
I need a html code that does this
A text that can't be changed. Something like: Put youu code here
A invisible pretext link. Something like http://trackyourcode.com/yourcode
Then a text box that the person can write the damn code
then a button tha says GO
when the person press the "go" button it will open a new tab with the pretext link + the person's code
So if the person puts "6584" as code
the link will turn ou like this
http://trackyourcode.com/yourcode6584

HTML button anchor link

Thanks in advance for your help.
I want three buttons to anchor link to a single location (contact form) on a one page website.
Button 1 works, but the other two display missing pages or wrong url.
This is the code:
BUTTON 1:
CONTACT ME TODAY
BUTTON 2:
text hereGET IN TOUCH
BUTTON 3:
text hereCONTACT ME TODAY
LINKED LOCATION:
I hope you can help me. Thanks!

How to avoid disabled background on alert messages in Flex

Please let me know how can i avoid a disabled background while displaying an alert message in flex. I want to be able input ie click or key stroke while the alert box is being displayed? Is it possible? how?
Thanks in advance
When calling Alert.show, add the NONMODAL flag to the flags parameter. So something like this:
Alert.show('Alert Text', 'Alert Title', Alert.YES|Alert.NO|Alert.NONMODAL);
Strange, but it should work.
Source

Highlight link with click

I'd like to create a link that when it is clicked it will open up a some sort of dialog with some text a user can copy.
I was going to use jquery ui dialog for this but I'm wondering if there is something else I should consider?
Ideally I'd like to have that text highlighted so it is ready to copy. Don't think I can do this with jquery dialog?
Any guidance would be appreciated.
Try this :
HTML :
<div id="dialog">
<textarea id="textbox">some text to copy and paste</textarea>
</div>​
JavaScript:
$('#dialog').dialog();
$('#textbox').focus().select();​
This opens a dialog and then selects all of the text within the textarea. Because the focus function is used you can Ctrl+C straight off as the text is already in focus and selected.
Working demo : http://jsfiddle.net/eZbXD/
Instead of opening a dialog, you can show a textbox in which the link is selected and ready to copy. I have done something like that before. Look at this fiddle. You can remove unnecessary codes and give some style according to your need.

bada Programming - Tab and Panel

I am currently doing an app with tabs with panels. I have tried following the TabSample provided here: http://developer.bada.com/help/index.jsp?topic=/com.osp.cppapireference.help/classOsp_1_1Ui_1_1Controls_1_1Panel.html and the BasicApp (for usage of panels) provided in the IDE. The app has 2 tabs, tab1 and tab2. In tab1, there is a button and a label, once the button is clicked, it will change the text in the label and appLog it. The problem I am currently facing is that when I can't even click on the button, it does not respond (no response for button and label and applog), I have to click on tab2 then click back to tab1 in order for the button to work/respond. May I know how to solve this?
Many thanks in advance!
I kept trying and looking out what's wrong with the TabForm and realized the problem and solved it by adding these lines of code in TabForm::OnInitializing(void) :
if (pTab)
{
pTab->SetSelectedItem(__panelId);
__pPanel[0]->SetShowState(false);
__pPanel[1]->SetShowState(false);
__pPanel[__panelId]->SetShowState(true);
}