Change the ActionItem image
Hi, I would like to know how to change the image of an actionItem without using the onTriggered slot. kind of how mediaKey (play/pause) changes the image of the actionItem of game for a break in the media player by default.
I tried setting imagesource, but it doesn't seem to work.
ActionItem { id: butn title: qsTr("On") ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { if (title == "On") { setTitle("Off") //this works setImageSource("asset:///off.png") //this works } else { setTitle("on") //this works setImgeSource("asset:///on.png") //this works } }
^ ^ ^ It works fine
MediaKeyWatcher { id: keyWatcher key: MediaKey.PlayPause onShortPress: { if (butn.title=="on") { butn.setTitle("off") //This works butn.setImageSource("assets:///off.png") //this doesn't work } else { if (butn.title=="off") { butn.setTitle("on") //this works butn.setImageSource("asset:///on.png") //this doesnt work } } } }
^ ^ ^ set the imagesource to outside of the ationItem doesn't seem to work
The images are in the current folder.
I managed to work around it by changing the title of mediaKeyWatcher, then by changing the Image using the actionItem onTitleChanged slot.
I spent days on this, I hope this helps someone else.
ActionItem { id: butn title: qsTr("On") ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { if (title == "On") { setTitle("Off") //this works setImageSource("asset:///off.png") //this works } else { setTitle("on") //this works setImgeSource("asset:///on.png") //this works } } onTitleChanged:{ if (title == "On") { setImageSource("asset:///off.png") //this works } else { setImgeSource("asset:///on.png") //this works } } }
MediaKeyWatcher { id: keyWatcher key: MediaKey.PlayPause onShortPress: { if (butn.title=="on") { butn.setTitle("off") } else { if (butn.title=="off") { butn.setTitle("on") } } } }
Still weird kind that only an actionItem can change its own imagesource
Tags: BlackBerry Developers
Similar Questions
-
How to change the background image of a newtab
Hello
I'm looking for a simple addon that will allow me to change the background image for my new tab page. I still want the empty bar url and the new tab to say "new tab". Just the simple ability to change the background image without changing anything else.
Thanks in advance
NielsHere's an add-on which may help! https://addons.Mozilla.org/en-us/Firefox/addon/customize-aboutnewtab/
-
Change the preview image of audio files (no icon) in the Finder?
I know that this is easily done in iTunes, simply by changing the 'work' of the song.
But I need to do it outside of iTunes, and I need to change the preview image and not the image of the icon.
Many tutorials show how to easily change the icon of a file, but I found nothing on the change in the preview...
As said, I need to do it in the Finder, or perhaps with Quicktime? I don't know how I can use it, if necessary.
I need to have the work I want already in the file before you import it into iTunes, regardless of the reason for which I won't get into that.
You can use a tag editor to third party such as Meta-z for the files to m4a format. I would recommend the Rage of free media now, but I can't find a download link works.
-
How can I change the background image of an album?
I'm trying to figure out how to change the background image of the album. I'm not trying to change the picture of the official album, but the background image for the album. Is there a way I can change it?
Your screenshot is the section of the iTunes store. None of the graphics or text on the iTunes Store are under your control. You cannot change them.
-
Why change the background image of the dashboard of data crash the app?
I'm changing the background image of my dashboard (on a third generation iPad). Whenever I try to make the change, the data dashobard app breaks down just. Even if I try to change to a color, the application crashes. I can insert a picture without problem. I guess it's just a bug or something but has anyone else seen this problem?
I was able to reproduce this crash with the following steps:
-Set up a background image of a page
-Copy the dashboard somehow. You can reproduce the dashboard, share by email, export and re - import OR clouds, etc.
-Open the copy of dashboard
-From the copy, change the background image (for a solid color or another image)
If you set a background image of a page, close and reopen your dashboard and then try to change the background to something else, you will encounter this error.
Solution: If you have the original background image in your Camera Roll, you can fall as an image on the same page (Photo Palette, select in the library). Then you can remove this image and change the background also image.
If you do not have the original image, you may need to start with a new dashboard. (For each page on the old dashboard, you can tap the bottom, select all, copy / paste on another dashboard).
There is a similar problem with images removed, if you shared the dashboard and you work on a copy. In this case, the solution is to copy and paste the image before deleting. (Otherwise, you'll get a dialog error instead of an accident, but the image is not clear).
I deposited cars for these issues internally. Sorry for the inconvenience.
-
How can I change the thumbnail image of a music file (song.wma)
When you use the media player, a thumbnail image has been placed on all the music files (example: song.mp3, song.wma & song.m4a). I want to manually change the thumbnail images on these files.
How can I change the thumbnail image of a music file (song.wma)?
Hi ksquare2,
See the following information about your question:
http://Windows.Microsoft.com/en-us/Windows7/add-or-change-album-art-in-Windows-Media-Player
I hope this helps!
-
How can I change the background image for the lock screen?
Hi, I just bought a new laptop and I got Windows 7 installed in the store, and I would like to change the background image for the lock screen. When I went to activate my account, I found out that it has already been activated, but I can't find the settings-> settings more PC in the lower corner on the right. Thank you!
Lock screen?
Are you referring to the login screen?
Or wallpaper?
Right-click on your desktop and select Personalize.
Office link is at the bottom left and use a win-7 theme.
-
How to change the background image of the "submit" button
Hi all
I want to change the appearance of a submit button: instead of show a button with text 'Add', I want the button submit to be like an icon 'more'
I tried to change the background image of the button submit like that, but it doesn't work. What is the ownership change?
CSSStyle customCss = new CSSStyle(); customCss.setProperty("background-image", "url('/OA_MEDIA/plus.png')"); OASubmitButtonBean addSubmitButton = (OASubmitButtonBean)webBean.findIndexedChildRecursive("addSubmitButton"); addSubmitButton.setInlineStyle(customCss);
Thank you
Kind regards
Afaf
Why not try with just an Image and fireAction on it?
-
Change the background image on the login page (smarthphone theme)
Hello
I would like to know how to change the background image on my login page.
Version of the apex is 4.2.4.
The theme is jQuery Mobile Smartphone (topic 50).Pls remind me if I missed some important information.
I have a model of customised area on this page. My user name text fields and password + "CONNECT" button is placed in this area.
I also have an inline css that centers in my area. My dimensions of the region are also placed here.
Not available to access the application today so bad im trying to provide the look of it with a drawing.
Also I noticed that my experience has some white color.
Ty for any information that you provide.
Hi Para,
Try the style of your page like
But if trying to define for your application color gradients extract ThemeRoller to http://jquerymobile.com/themeroller
to set the themes of all colors and gradients you want without doing custom overrides CSS jQM Apex definitions.
Everything you have requested can be configured via the ThemeRoller.
Also found what may be useful if you are going to customize your login
Kind regards
Benjamin.
-
How can we change the brand image on the timeline
How do you change the brand image on the timeline so that when you put it on a cut, you know that you have found the end of the shooting and not the first image of the other shooting? Any help would be appreciated.
Is there anyway to change the way it marks a release point?
N ° point marked became get where is the head of reading, and as always get is placed at the head of the frame. You will need to take a step back a frame, no way around it when moving to the edit point.
However, you can mark a more easy clip by selecting it and pressing the key. This will put the In and out of the points for this clip at the same time.
-
Can I change the header image on one or more pages in a site model?
Hi all
I have a site I created in DW CS3 I'm kicking around the idea of adding an affiliate store. I think I might be better served if the store has an image of header different than the main site. I can create a whole new site for the store, or what I like to do now is just make a new page in the main model and change the header image just for this page to see how it goes. Anyone know the code I could use to have a template page replace the CSS and use a new just header image for only one page?
The URL is http://isuckatgolf.NET If necessary.
Thank you!
Ken
You are in Design view or Code?
I have DWCS4, so perhaps this was changed between 3 and 4?
EDIT: Another way to go (in DWCS4 anyway) is to click on the image in Design view, then go to insert > template objects > editable region
-
How to allow visitors to change the background image of my site?
Hello.
I wanted that my visitors to be able to change the background image to another image. Already, I know how to do it with the colors but doesn't seem to work wih images. You are able to do this on Google, but can not seem to find it anywhere online. I just want it to change while the visitor is on the site. for example
1 visitor - context changes to-myarea.jpg
2 visitor - context changes to-my cat.jpg
and so on...
This would not change the site forever, just at the point where the visitor is about it.
Concerning
Leon
Here are a few ways to do this:
Option #1:
You'll need a JavaScript script and an array on the page background images.
An example of work below. View source in the browser to see the code.
http://ALT-Web.com/BG-img.html
Option #2:
Create more than one style sheet with different colors and background - images of the body.
Create a selector of stylesheet like this with jQuery
http://www.kelvinluck.com/assets/jQuery/styleswitch/toggle.html
Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
-
You can change the background image to a variable?
I'll be honest, I don't expect really a yes answer to this, but I thought I might as well see if I can save me some work.
I'm creating a module of e-learning training of personnel who must show a slightly different content depending on the region of the user (there are three). For the moment, I have the legend and click boxes conditional use actions to understand what the user selected region, but the capture system uses specific sites in the region with different flags etc.. I was wondering: is it possible for me to change the background image of a slide in the value of a variable, or I just have three separate slides for different pages?
Hello
You will not be able to change the background image. What should be possible, but it will drastically increase the size of your file is to put 3 images with the dimensions of the blade and entering in the slide show, the appropriate image based on the chosen variable. I don't know if everything has to change in the background, or perhaps only in certain areas? In this case, try to have it be flying image as small as possible.
Lilybiri
-
I need to change the background image often when running
any body help me,.
I need to change the background image often when running
concerning
welcan
Hello
You can also use effects rather than a timer, much more enjoyable... following example moves between a series of embedded images.
David.
http://gumbo.flashhub.NET/menu/ source included
-
Change the background Image on a Page of a Site.
CSS of my site has a background image set. I need to change the background image on a page, which has a feedback form.
I tried a number of different positions for the insertion of the image, but nothing helped. I tried to go in the rule for div id = 'background', and change is here, but it affects all pages. So, I guess that I must write a new rule?
Here is the code:
< div id = 'background' >
< div id = "items" >
< h2 > Heard! < / h2 >
< p > < a href = "index.php? status = pending" > waiting for < /a > < a href = "index.php? status = planned ' > under < /a > < a href =" index.php? status = declined "> refused < /a > < /p >" "
< ol >
<? PHP {? >}
< li > < strong > <? PHP echo $row_Getclan ['title'];? > < / strong > < br / >
<? PHP echo $row_Getclan ['content'];? > < br / >
by
<? PHP echo $row_Getclan ['author_name'];? >, to <? PHP echo $row_Getclan ['created_at'];? > < /li >
<? PHP} while ($row_Getclan = mysql_fetch_assoc ($Getclan));? >
< /ol >
< p > < a href = "<?" PHP printf ("%s? (pageNum_Getclan = %d %s", $currentPage, max (0, $pageNum_Getclan - 1), $queryString_Getclan);? > "> previous view < /a > <?" PHP echo ($startRow_Getclan + 1)? >... <? PHP echo min ($startRow_Getclan + $maxRows_Getclan, $totalRows_Getclan)? > on <? PHP echo $totalRows_Getclan? > < a href = "<?" PHP printf ("%s? ("pageNum_Getclan = %d %s" %s "$currentPage, min ($totalPages_Getclan, $pageNum_Getclan + 1), $queryString_Getclan);? > "> Next < /a > < /p >"
< / div >
< div id = "crΘer" >
Speak < h2 > < / h2 >
< do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >
< table align = "center" >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > title: < table >
< td > < input type = "text" name = "title" value = "" size = "32" / > < table > "
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" valign = "top" > content: < table >
< td > < textarea name = "content" cols = "50" rows = "5" > < / textarea > < table >
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > votre_nom: < table >
< td > < input type = "text" name = "author_name" value = "" size = "30" / > < table > "
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > Your_email: < table >
< td > < input type = "text" name = 'author_email' value = "" size = "30" / > < table > "
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > < table >
< td > < input type = "submit" value = "Insert file" / > < table >
< /tr >
< /table >
< input type = "hidden" name = "MM_insert" value = "form1" / >
< / make >
< / div > < / div >
Thank you.
div id = 'background' will work for all pages related to a style sheet.
The best way to do what you want is to re-register your stylesheet with another name. So for a page, link to this new stylesheet. Then, in the style sheet, change the background image. It was easy.
The only way to do and keep a style sheet is change the designation of the div tag that has your training, to something like the div id = 'backgroundCommon' and then create another div for just one page as div id = "backgroundSpecial".
Then in your style sheet, copy the description of div and rename it backgroundSpecial and then call on just the single page, with the other pages making up the backgroundCommon.
Make sense?
Maybe you are looking for
-
MacBook Air cannot find the printer wireless
My MacBook Air cannot 'see' my wireless printer and will print when connected by USB. I lived every suggestion troubleshooting support site HP could offer and they sent me here. I don't think there is a problem with the printer or the network becau
-
I tried to do this several times over several days, on a HP a1620n running Windows XP Media Edition, Version 5.1. Nothing happens after that I get the full download message. Thank you.
-
my google chrome keeps frezzing up.so I tried windows fix it.this comes up with an error code 0x80092003.each time I try to use fix on any problem why
-
Where run as command option admin is spent on the Windows 7 operating system?
HP Pavilion p6330f Home Premium Windows 7 desktop PC Firefox 29 IE9 Opera 21 Maxthon 4 cloud browser I'm Admin and single user I connected this title and user page which clearly shows. Recently, I ran Malwarebytes and quarantined and then deleted wha
-
Need to install CS 1.3 BRANCHED to NEW DISCUSSION
I have to purchase licenses Adobe Student for the Creative Suite Premium 1.3 for Windows. I used it very well until I was forced to install Windows 10 on my current computer. Now Photoshop request activation. When I click on activate over the inter