Alpha value for the bottom of a list
Hmm, I don't have a problem with this technique.
ListSkin:
public class ListSkin extends UISkin { private var selectedSkin:Sprite; private var upSkin:Sprite; private var upOddSkin:Sprite; private var downSkin:Sprite; public function ListSkin() { super(); } override protected function initializeStates():void { upSkin = new Sprite(); upSkin.graphics.beginFill(0xFF0000, 0.15); upSkin.graphics.drawRect(0, 0, 200, 200); upSkin.graphics.endFill(); upOddSkin = new Sprite(); upOddSkin.graphics.beginFill(0xFF0000, 0.35); upOddSkin.graphics.drawRect(0, 0, 200, 200); upOddSkin.graphics.endFill(); downSkin = new Sprite(); downSkin.graphics.beginFill(0xFF0000, 0.50); downSkin.graphics.drawRect(0, 0, 200, 200); downSkin.graphics.endFill(); selectedSkin = new Sprite(); selectedSkin.graphics.beginFill(0xFF0000, 0.75); selectedSkin.graphics.drawRect(0, 0, 200, 200); selectedSkin.graphics.endFill(); this.setSkinState(SkinStates.UP_ODD, upOddSkin); this.setSkinState(SkinStates.UP, upSkin); this.setSkinState(SkinStates.DOWN, downSkin); this.setSkinState(SkinStates.SELECTED, selectedSkin); this.setSkinState(SkinStates.FOCUS, upSkin); } }
Excerpt from the CellRenderer class:
public class ListCellRenderer extends CellRenderer { override protected function init() : void { super.init(); ///more code here, adding fields, images and etc. setSkin(ListSkin); } }
And with this code I have transparent background in the list. It was weird, because I need to adjust the skin not on the list, rather on the cell display. I use above rendered as a skin on the list and it works perfect.
Tags: BlackBerry Developers
Similar Questions
-
Default value for the select list of type of form elements
Hello
I do not work with Apex that mutch, so this may be a simple question... but I still need help.
I have a form, in this form, I have a question P19_ONTVANGER_ID, this is based on a LOV.
This LOV is on a table that has a field of username with the value of APP_USER.
The table looks like:
ONTVANGER_ID this is the PK and is going to be the return value from the LOV.
NAME is the display value for the LOV.
USERID is the column APP_USER.
What users would like to get is that if they create a new record, the default value for the P19_ONTVANGER_ID field is their own ONTVANGER_ID.
But they must also be able to select another user.
hope there is someone out there that can and will help me.
Kind regards
Rob
APEX 4.0.2 Oracle 10Rob-v-M-Gn-Nl wrote:
Until now, I had, but I need to select the value of the id of the table and the list of selection item appears the corresponding value.How can I do this?
You can select the Type of default value as the body of the PL/SQL function
and to add something like that
declare v_return number; begin select your_id into v_return from your_table where some_column = :APP_USER; return v_return; exception when no_data_found then return null; end;
http://www.asktheoracle.NET/PLSQL-function.html
-
UDI-00014: invalid value for the parameter, "remap_tablespace".
Hi all
Windows 2003 Server
Oracle 10g
I'm doing a reorg, so I droped and recreated the schema. No w I want to import my datapump schema export, but it gives me an error:
UDI-00014: invalid value for the parameter, "remap_tablespace".
Here is my script:
Impdp patterns of name of user and password = siebel directory = dpdir dumpfile = logfile schema_exp.dmp = schema_imp.log remap_tablespace = SBL_DATA:SBL_DATA, SBL_INDEX:SBL_INDEX State 60
What I'm doing wrong, it makes me crazy, please help
Published by: user11211037 on December 6, 2009 00:54Syntax and Description
SCHEMAS = schema_name [,...]
If you have the IMP_FULL_DATABASE role, you can use this parameter to perform a schema mode import by specifying one single schema other than your own or a list of schemas to import. First, schemas were created (if they do not already exist), including the system and the role of subsidies, the history of password and so on. Then all the objects contained in the imported patterns. Unprivileged users can only specify their own schemas. In this case, no information about the schema definition is imported, only the objects it contains.
Hope you are clear.
Concerning
Asif Kabir-Mark your answer as correct/useful.
-
Definition of default values for the inputs of button and the cursor?
Hello
I use Labview 8.5.1 and have a few entries button and zipper-type on my front. How can I set some of them having specific (as opposed to zero) default values when the VI is executed?
Thanks for the help
The default value for the type of slide of entry (or button).
Right-click on the control.
Select "Operations on the data" > "default to the current value of doing."
-
How can you specify the default value for the undefined array elements
According to aid LV, the tables have two default values, the normal default value and the default value for the undefined array elements.
I assume that there must be a way to specify the default value for later, but I can't find it anywhere. Any ideas?
I know that you can drag the item out of the table container. Change the default value on this scalar element. Then drag the item in table tank.
-
failed to create value for the message Analyzer "at line 54.
I get the following error, can someone please?
failed to create value for the message Analyzer "at line 54.
Hi ejpeppjep,
Check if this article helps you fix the problem: http://support.microsoft.com/kb/823768
If the problem persists, we recommend that you try the following steps and check the result.
Step 1: a. Click Start, click Run, type cmd and click ok.
b. at the command prompt, type sfc/scannow and press ENTER.
c. once the analysis is complete, restart the computer and check if the problem persists.Note: You will be asked to insert the Windows XP disk, if a file is missing.
For more information, see Description of Windows XP System File Checker (Sfc.exe)
Step 2: If the problem persists, restore the computer to an earlier time
see How to restore Windows XP to a previous state .Visit our Microsoft answers feedback Forum and let us know what you think.
-
Essbase Warning (1023135) skip certain values for the replication
Hello
When you replicate the complete data of a partition Essbase BSO in Essbase ASO (11.1.2.2),
thousands of warning messages are logged in the application log:
"Warning (1023135) skip certain values for the replication.
The partition (data of level 0) valid and the counties of cells in each area are exactly.
No idea of the possible causes and consequences?
Thanks for your help.
Philippe CuissetHello
Thanks to the contributors.
The contours of the source and the corresponding target, with the exception of 3 members with different names in the source and target.
My score has 2 spaces for these 3 members. Mapping advanced between the names of source and target members has been set in a field, but it was missing in the other (not detected by the validation of the partition!). I don't set it too and now no more warnings.Philippe Cuisset
-
Hallo,
in my tables and forms (created from VO istances) there are some areas for which, insert and update, I calculate and set the value programmatically when a record is created or updated.
In some cases, I put the necessary values using the 'CreateWithParams' in the workflow diagram...
In some other ones, I associate an action, a bean, a created button drag-and - drop operation 'CreateWithParams' of the istance VO...
public String cwpButton_action() { BindingContainer bindings = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding("CreateWithParams"); // here I calculate and set the needed params // ... Object result = operationBinding.execute(); if (!operationBinding.getErrors().isEmpty()) { return null; } return null; }
And is ok if I can calculate the values for the attributes before a new record is created.
But the approach that I have used to define the attributes (for new and updated records) whose value should be caluclated after the user has filled in the fields, before committing to the database?
Thank you
Federico
Federico,
Let me first tell you that our code is activity masking errors (the cache instead of working on them).
- If (! operationBinding.getErrors () .isEmpty ()) {}
- Returns a null value.
- }
- Returns a null value.
This means that you do not check the errors at all. You must at least print a log with the error message, you receive, if you get one!
To solve your problem, you override the method prepareForDML() of the entity or entities in question. You can calculate and set the necessary attributes until they get engaged in the doDML(). Do not use doDML() because it is too late in the life cycle.
Timo
-
When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?
Hi kevin7frg,
You can go to "file > create > scanner > configure presets PDF»
The dialog box that appears, you can choose 8.5 X 11 as the default width and height of PDF pages to scan.
Hope that helps.
Kind regards
Ana Maria
-
Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.
Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.
I was wondering if I saved a layer somewhere and set it as a default value.
If you group the layers, you will be left with a single layer, thus spreading your concern.
Suggest that you do the following:
- Make sure you have the latest drivers for your printers
- Reset the default preferences.
Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.
Items nearby and let regenerate the file.
-
How to add the default value for the "Full - Text Search" box
Hi all
I am looking for the ability to add a default value for the "Full text search" box in the search form.
Example:
When the user accesses the search page it get default values for some fields (defined in the rule as default values) such as
xField1 = txt1 and xFiel2 = txt2.
and Furthermore we need full-text = Hello world.
Is this possible?
Another way that we use is to open the search by URL with coreContentOnly = 1 as a form:
http:// < Server >/cs/idcplg? IdcService = GET_DOC_PAGE & to Action = GetTemplatePage & to Page = STANDARD_QUERY_PAGE & coreContentOnly = 1 & to xField1 = txt1 & to xFiel2 = txt2
It is possible to add full-text criteria here? Somethig like: & text = Hello World
Thank you
Leon
It is not possible in a very obvious way, not to mention that it is a rather strange request. I can't really imagine a realistic use for this case.
Anyway, without a messy customization, you should provide a default query with an FTX inside element text setting (i.e. "IdcService = GET_DOC_PAGE & Action = GetTemplatePage & Page = STANDARD_QUERY_PAGE & QueryText =
Hello World " "")To do this in a profile in the secondary effects of the profile section, add the following:
<$dpPromote("QueryText",>$dpPromote("QueryText",>
Hello everyone ") $>. -
Syntax to set a default value for the metadata of Web site field
In my profile, I have a rule where I did the infoOnly metadata xWebSites field and define a default value like this:
< $dprDefaultValue = # active.xWebSites$ >
Y at - it something I am doing wrong? Incorrect syntax?
Thank you!!
I found this in the documentation of the Site Studio:
"To identify the ID of an article or a website, open the page to check content on the content server and click Browse next to the"Section of the Web Site." In the window choose the Web Site Section, select your Web site and notice the ID in brackets next to each section (Figure). »
Can I set the default value for the ID?
-
How can we formulize a threshold value for the maximum number of connections for LDAP?
Hi all
We use Sun one DS 5.2 on the Solaris platform.
How can we define the value for the attribute config "nsslapd-maxconnections" because it depends on allocaated for each process's file descriptors.
If you please also correcct me if the above statement is false.
Thank you.Hello
This attribute can be used to limit the number of simultaneous client connections slapd can handle. The main goal is to Cap slapd memory usage.
By default, this limit is undefined, so slapd can handle up to the number max allowed for the slapd process file descriptor.Use only when necessary. You can use the ulimit command to get the limit of the OS settings.
-Sylvain
-
Multiple values for the same column in the columns of diffétent in the same row?
Hi all
I wonder how you can display different values for the same column in different columns on the same line. For example, using a CASE statement, I can:
CASE WHEN CODE IN ('1 ', ' 3') THEN COUNT (ID) AS 'Y '.
CASE WHEN CODE NOT IN ('1 ', am') THEN COUNT (ID) AS "N".
Yes, that will produce two columns but will produce null values to empty and also two separate registers.
Any ideas?
Thank youAre you sure that this code works for you?
Select ID ,CASE WHEN MODE_CODE IN ('1', '3') THEN COUNT( No) END as "Fulltime" ,CASE WHEN MODE_CODE NOT IN ('1', '3') THEN COUNT( No ) END as "Other" From table group by ID
I guess the code above fails because MODE_CODE is not in your group by?
My suggestion would be to put the CASE in the COUNT:
Select ID ,COUNT(CASE WHEN MODE_CODE IN ('1', '3') THEN No END) as "Fulltime" ,COUNT(CASE WHEN MODE_CODE NOT IN ('1', '3') THEN No END) as "Other" From table group by ID
CASE expressions return no. when the respective conditions are true and NULL otherwise.
COUNTY will have non-null values. -
How to find out the ASCII values for the Spanish character
Hello
I had an obligation to maintain the Spanish character and must also always records based on the Spanish character.
Kindly guide me for below.
To filter the records that contains Spanish characters?
To get the ASCII values for the particular column?
For example, we can find the ASCII value of 'a' using the select syntax ASCII('a') double.
But I want to find the value of the particular column ASCII values. That is to say. name.
For example, the customer name is 'Suresh', I want the ASCII values for the entire name of 'Suresh '.
Please do the necessary help / advice on that.
Thank you
OraharTo expand on what I said in my first post, you want to do something in this direction:
with t (thename) as ( select 'Suresh' from dual ) select thename , substr(TheName, level, 1) , ascii(substr(thename, level)) from t connect by level <= length(thename);
The result of the above query is:
THENAM S ASCII(SUBSTR(THENAME,LEVEL)) ------ - ---------------------------- Suresh S 83 Suresh u 117 Suresh r 114 Suresh e 101 Suresh s 115 Suresh h 104 6 rows selected.
Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and replace it with the name of "t" for your table name (also the name of the column with name column has in your table).
Finally, I suggest that you post your question with, an example of table and the output you want for PL/SQL forum. There are people out there who will give you all sorts of ways to solve this problem.
HTH,
John.
Maybe you are looking for
-
Satellite Pro A60: what RAM should I take?
Hello.I have a Satellite Pro A60 P4 532, with the following:3.06 GHz/XP Pro/256 MB/40 GB/15TFT/DVD-CDRW/LAN/WiFi I want to add memory (256 MB).On the web site of Toshiba, they lead me to the PA3127U - 1 M 25 (DDR PC2100), but I see that for almost si
-
Satellite L640 - clock stuck CPU idle time
Hi people, I have a Satellite L640 PSKOLA, with a processor i5 480M and am under Win7 64 bit, I have a "CPU usage" widget on the desktop, because clearly, I'm kinda a nerd. I first noticed this problem for a long time, but my usage has changed more t
-
Typical values for the external resistance of pull-up on a line of output digital NI USB 6009?
Hi all I use a digital line on a USB-6009 to control a SSR by the attached diagram (in the manual USB 6009). I don't have access to a variable resistor or box of 10 years, so I'm hoping to get a good approximate estimate for the value of Re. When I
-
How to write the table 2d 2D table of cluster of 2 elements
I want to write table 2D and a string in a 2D cluster table having two different elements. an element is of numeric type for 2d and another element of the string table. Please help me on this problem
-
Is that after effects cc works computer 2 GB ram?
Ray-tracing on GPUs requires an authorized NVIDIA cuda and graph 5.0 or version later .This can install the current display driver. for now, the ray-tracing will use the processor.After installing cuda 5.0 or later, restart your computer.After that e