Extending from CheckboxField
I have this image selector I use because I'm stuck with 4.6.1 and FilePicker does not make an appearance until 5.0.0. So I extended the CheckboxField class and written methods of painting and the layout with this code
protected void paint (Graphics pGraphics)
{
pGraphics.setColor (0x0000FF00);
pGraphics.drawBitmap (0, 0, 75, 75, vImage, 0, 0);
If (getChecked ())
{
pGraphics.fillRect (0, 0, 75, 10);
pGraphics.fillRect (0, 0, 10, 75);
pGraphics.fillRect (75, 65, 0, 10);
pGraphics.fillRect (0, 65, 75, 10);
}
pGraphics.setColor (0x00000000);
pGraphics.drawText (getLabel (), 80, 30);
Layout (GetWidth (), 75);
setExtent (getWidth (), 75);
}
protected Sub layout (width int, int height)
{
Super.Layout (width, 75);
super.setExtent (width, 75);
}
Seems to work by program very well, but as you can see on the screenshot the focus highlighter (not the isSelected highlighter, just to be clear) is well off his mark, I want to be around the full text of the label or the entire image and the text.
Anyone have any ideas on how to achieve this.
Nevermind
public Sub getFocusRect(XYRect pRect)
{
super.getFocusRect (pRect);
pRect.set (0, 0, (int) vTargetWidth + getFont () .getAdvance (getLabel ()) + 5, (int) vTargetHeight);
}
Tags: BlackBerry Developers
Similar Questions
-
no more WiFi which extends from the airport express and Time capsule
I have no more WiFi which extends from the express airport and Time capsule.
and once it worked...
airportconfiguration-app also works, but the graphic display allows to have a straight white line. now, it's one interrupted...
Your unbroken lines in airport show connections ethernet utility... broken lines show the wireless connections.
So it depends on the extend method you used.
I think at this moment, things are configured wrongly... for some strange reason things happens and elements on a stand-alone basis, return to a default mode.
The best way to manage it is full factory reset on everything... and repeat the installation.
I have no more WiFi which extends from the express airport and Time capsule.
It seems to me that you extend a NON-APPLE router... in this case, your Apple routers must connect by ethernet and create a wireless network. Routers Apple cannot extend the NON-APPLE router wired.
The express could extend the TC or visa versa... by wireless...
Then I suggest say us what is the main router in the network?
You have connected by ethernet to the TC or Express or both?
If so please reset completely the two elements and try again. Make sure they are in bridge mode... It's the network tab. Router Mode is turned off.
And your wireless tab is configured to create a wireless network...
Use the same name (SSID) and even the security setting and the password as the main router to network roaming (extend wireless ethernet).
If the Express and transport CANADA are the same, both will have this configuration... If the express extends to wireless then it should NOT be connected to all the way to ethernet... (sequel to wan side at least) and it will be set to expand wireless on the wireless tab.
-
ScrollBar not appearing in the screen that extends from screen
I'm trying to find a way to put a section not scrolling at the top of a screen that extends from my screen applications.
final ListScreen class extends ListFieldCallback implements screen
{private ListField _itemListField;
private LabelField listHeader.public ListScreen()
{newScreen = new MainScreen(MainScreen.NO_VERTICAL_SCROLL |) Manager.HORIZONTAL_SCROLL);
in the example
HorizontalFieldManager columnHeadingHolder = new HorizontalFieldManager (HorizontalFieldManager.NO_HORIZONTAL_SCROLL
| HorizontalFieldManager.NO_VERTICAL_SCROLL | HorizontalFieldManager.USE_ALL_WIDTH);columnHeadingHolder.add (listHeader);
DataScroller VerticalFieldManager = new VerticalFieldManager (VerticalFieldManager.VERTICAL_SCROLL
| VerticalFieldManager.VERTICAL_SCROLLBAR);dataScroller.add (_itemListField);
}}
The problem I have is the screen is white but if I click on the wheel the menu and when I close the screen menu appears finally.
Tried several methods to extend the screen but can't get right.
You can still use setTitle. Instead of adding a field, add a handler with your inside headers.
This works very well for me, but there is a "border" between the title area and the portion of scroll, which varies according to the level of the BONE, and you might not like the look of it.
If this does not work, then one way I know is to add a fixed height of VerticalFieldManager to the main part of the screen - with the height set so that it fills the part of the screen that you left your title and headers. But when I played round with it, I can't scroll bars to appear. Probably something Style that I've not set correctly. The following are examples which limits the height to a maximum of 3 lines. This code only works for a line of fields as I'm sure that you number from the code.
VerticalFieldManager vfm = new VerticalFieldManager(Manager.VERTICAL_SCROLLBAR | Manager.VERTICAL_SCROLL) { int maxHeight = this.getFont().getHeight() * 3; public int getPreferredHeight() { return this.getFont().getHeight() * this.getFieldCount(); } protected void sublayout(int width, int height){ super.sublayout(width, height); setExtent(width, Math.min(maxHeight, this.getPreferredHeight())); } };
-
Hello!
A few weeks, I just change my signature to email hotmail via the menu options, and since then, a big grey box appears on the emails that extends from left to right and is also important. I went into the signing options, re-created the signature, and for 3 weeks completely removed the signature, but I always get the grey box display. Email being accessible via www.hotmail.com, and I don't have the problem, when I answer emails via my iPad2.
Any help will be greatly appreciated, so that e-mail can be sent to the search normally. Thank you!
Hi Paul,.
The question you posted would be better suited to the Windows Live community. Please visit the link below to find a community that will provide the support you want.
http://windowslivehelp.com/product.aspx?ProductID=2 -
Can photoshop (Extended from Photoshop CS6) works on Windows 8.1 64bits?
How to pass Windows 7 to 8.1 64 bit?
-
My calculated new does not have a CD player and to transfer the software on a key USB is not working even after disabling of the software on the old computer. Download Adobe photoshop CS3 extended from the internet?
Make sure that you have enabled cookies and clear your cache. If he continues to not try to use a different browser.
Here is an alternative download... You can download the demo version of the software through the page linked below and then use your current serial number to activate it.
Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.
CS3 and CS4: http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html
-
Extending from UIComponent - behavior FocusEvent
Target: UIComponent is extended in a custom control and identify it receives and loses focus. The contents of the control change depending on whether it has focus or not.
Problem: with the following code, when the label of the control is clicked, the focus receives control and changes its content being displayed correctly. However, when the second label is enabled, both labels become visible.
Question: is there another way to create a custom control and dynamically vary the content based on its status?
public class CCustomControl extends UIComponent { private var cntMain1:Container; private var cntMain2:Container; public function CCustomControl() { //******************************* cntMain1 = new Container(); cntMain1.flow = ContainerFlow.VERTICAL; cntMain1.debugColor = 0x0000FF; cntMain1.setSize(300, 200); cntMain1.visible = true; var lblBeer:Label = new Label; lblBeer.text = "Beer is Good"; lblBeer.autoSize = TextFieldAutoSize.CENTER; lblBeer.setSize(lblBeer.textField.width, lblBeer.textField.height); //********************************* cntMain2 = new Container(); cntMain2.flow = ContainerFlow.VERTICAL; cntMain2.debugColor = 0x0FF00; cntMain2.setSize(300,200); cntMain2.visible = false; var lblSyrup:Label = new Label; lblSyrup.text = "Maple Syrup is Great"; lblSyrup.autoSize = TextFieldAutoSize.CENTER; lblSyrup.setSize(lblSyrup.textField.width, lblSyrup.textField.height); //********************************* cntMain1.addChild(lblBeer); cntMain2.addChild(lblSyrup); this.addChild(cntMain1); this.addChild(cntMain2); this.addEventListener(FocusEvent.FOCUS_IN, GotFocus); this.addEventListener(FocusEvent.FOCUS_OUT, LostFocus); super(); } private function GotFocus(e:FocusEvent):void{ trace(TextField(e.target).text + " Got Clicked"); cntMain1.visible = false; cntMain2.visible = true; } private function LostFocus(e:FocusEvent):void { trace(TextField(e.target).text + " Lost Focus"); cntMain1.visible = true; cntMain2.visible = false; } }
public class ContainerTest extends Sprite { public function ContainerTest() { var uiControl:CCustomControl = new CCustomControl(); this.addChild(uiControl); } }
Hey,.
first of all, great thread format. Everything is super clear, formatted and buried on - Yes Bravo to that!
as for your problem, from the looks of it you add both of the listeners to the UIComponent. whats happening is that the two events are triggered when you perform an action. in order to counter record, you can change your tune-up for this function:
private function GotFocus(e:FocusEvent):void{ trace(TextField(e.target).text + " Got Clicked"); cntMain1.visible = !cntMain1.visible; cntMain2.visible = !cntMain2.visible;} private function LostFocus(e:FocusEvent):void { trace(TextField(e.target).text + " Lost Focus"); cntMain1.visible = !cntMain1.visible; cntMain2.visible = !cntMain2.visible;}
This will actually change visibility in front of what he was and is more compatible. hope that things cleared up. I'm a bit confused as the goal, but what I see, I think that's what you want to do. test out and hopefully it works for you. Good luck!
-
Extending from VO on the employee self-service page
All,
I want to thank PhoneNumbersVO VO on the employee self-service > my personal information page
Here's what I've done so now
1. copy everything under JAVA_TOP > oracle/apps/by/self-service/personal information / * on my desktop under files Myclasses and MyProject.
2. scope of the VO and added my new columns to the query. This view is not attached to any EO.
3. copy the class under myclasses to JAVA_TOP files > xx > folder/apps/by/self-service/personal information/server oracle
4 imported .jpx file using jpximport
5 .bounced apache
6. in the Applications, customized phone to add 2 columns newly created in the custom t section.
View instance serves as my extended VO
7. now, when I go back to the page I get error
Not found message. Application: DNF, Message name: FND_VIEWOBJECT_NOT_FOUND.
Chips: VONAME is XXPhoneNumbersVOEx;. APPLICATION_MODULE = oracle.apps.per.selfservice.personalinformation.server.OverviewAM;
To me, it seems that I need to join extended VO to seeded AM (OverviewAM)
The question is when I seeded DoubleClick on this AM I get error
WARNING: There are errors java errors for this file object. The wuizard is open in read-only mode
File < Path/OverviewAMImpl.java
What could be wrong here?
If I give the name of view seeded in 6 above, I get no error, but it does not display the values for newly added coulmns.
Did you create the substitution on jDeveloper? Otherwise, the jpx download the news saying Oracle to use the VO scope:
3.5 project components/properties/Business Substitutions. Select a seeded on left, extended one to the right and click Add, it should appear on the substitutions.
Now, you can import the jpx.
To confirm, verify the jpx, it should have a section of substitutes at the end:
for example
To confirm that the substitution, he was transferred to the DB, check customizations for your seeded VO, for example
Set serveroutput on
jdr_utils.listCustomizations exec (' / oracle/apps/ap/goose/Server/ProjectsLovVO ");
(notice the site/customizations/0) result in the path from the seeded VO:
/ Oracle/Apps/AP/GOOSE/Server/customizations/site/0/ProjectsLovVO
-
Extending from ESX 3.5 (HP Server) with SAN + second server
Hello community!
We are currently working on extending our (tiny) virtualization environment. It consists of a single server:
-HP ProLiant 2 x QuadCore
-16 GB OF RAM
-3 x 300 GB SAS internal
-VMWare ESX 3.5
We want to expand storage with a SAN and a second server for better reliability and more. Our plan is to go the medium iSCSI and buy the following components:
(1) a Bay iSCSI SAN:
-HP MSA2312i DualController with 8 x 450 GB 15 k SAS
(2) two switches:
-Switches of GB class business with an internal switching capacity > 20 GB/s
(3) second ESX 3.5 server:
-same features as the existing ProLiant ESX 3.5
A few issues:
(1) hardware compatibility seems given to the MSA. The ProLiant server shipped with ESX, so I guess that its 100% compatible. Should I pay attention to the compatibility of the network components?
(2) what should I be careful when choosing switches for iSCSI SAN? Is a huge power of internal cut enough?
(3) what host iSCSI adapters performance gains would give me and it justifies the extra cost?
(4) can I combine the two machines as having different virtual machines on them, but also implement a sort of built-in security mechanism / HA, so that a machine can run temporarily all virtual machines of these machines in the case of a hardware failure on one of the ESX?
(5) there is what other mechanisms HA (cheap)? As only using a production server and the other as 'rescue' (virtual machines from the SAN on the machine hot standby in the event of a hardware failure on the production ESX)?
(6) do you have the General with our scheduled install concerns or advice for such a small virtualization environment?
(7) a less expensive configuration would also do the job (like using a less expensive Netgear NAS iSCSI as storage for virtual machines)?
Thans in advance! Kind regards
-sd
Hello and welcome to the forums.
(1) hardware compatibility seems given to the MSA. The ProLiant server shipped with ESX, so I guess that its 100% compatible. Should I pay attention to the compatibility of the network components?
MSA2312i is supported with ESX 4.0 U1, ESX 4.0, ESX 3.5 U5, ESX 3.5 U4, ESX 3.5 U3. You do not specify the exact Proliant you use, but you can check it on the VMware Compatibility Guide. You can also consult the various components of IO it - chances are good that you will be fine, but it is always good to check.
(2) what should I be careful when choosing switches for iSCSI SAN? Is a huge power of internal cut enough?
You summed it up above when you said "class business. Buy company switches compatible with for your business.
(3) what host iSCSI adapters performance gains would give me and it justifies the extra cost?
Some, but it may not be enough to justify the cost - depends on your configuration. Check it out "[comparison of the performance of the storage Protocol | ]. "[http://www.VMware.com/files/PDF/storage_protocol_perf.pdf] ' study of performance for more details. It's been a while since the last, I checked, but once there is no supported iSCSI HBA for blades not HPs on 3.5.
(4) can I combine the two machines as having different virtual machines on them, but also implement a sort of built-in security mechanism / HA, so that a machine can run temporarily all virtual machines of these machines in the case of a hardware failure on one of the ESX?
Yes. VMware HA or FT would work, but likely ft won't work on the Proliant you have.
(5) there is what other mechanisms HA (cheap)? As only using a production server and the other as 'rescue' (virtual machines from the SAN on the machine hot standby in the event of a hardware failure on the production ESX)?
This approach could work, if you do not have vCenter or VMware HA.
(6) do you have the General with our scheduled install concerns or advice for such a small virtualization environment?
Reference your current systems. Find out what resources will be needed in. Now, plan your backup strategy if you have not already. This isn't something to do after the build is complete.
(7) a less expensive configuration would also do the job (like using a less expensive Netgear NAS iSCSI as storage for virtual machines)?
Of course, but you almost always get what you pay for. See the above compatibility Guide and only buy storage which are listed there. This is also where repositories of the project your systems and your needs in workload comes into play.
Good luck!
-
Installation of Photoshop CS5 Extended from a disk
I try to install my Windows Photoshop Extended CS5 on my computer from my drive edition student and teacher, however, when I put the disc in the drive, it is not autostart installation process. I looked through the instructions, it says to use startup.exe to get installation will, but there is no such a file anywhere on the disk. How can I install my program?
Thought so you use the Mac DVD on windows, sorry but you have the wrong disc sound for Mac, however you are on windows, its not going to work.
Get the DVD, which was replaced by the new serial number and thenyou will be ALDE to be installed on your windows computer.
-
I use oracle11g.
How can I check the tablespace AUTO EXTEND the value ON or OFF?
Please let me know.
1. Select extent_management, allocation_type, segment_space_management
2 * from dba_tablespaces where nom_tablespace = 'SYSTEM '.
SQL > /.
EXTENT_MAN DISTRIBUTION SEGMENT
---------- --------- ------
LOCAL SYSTEM MANUAL
SQL >SQL> desc dba_data_files Name Null? Type ----------------------------------------- -------- ---------------------------- FILE_NAME VARCHAR2(513) FILE_ID NUMBER TABLESPACE_NAME VARCHAR2(30) BYTES NUMBER BLOCKS NUMBER STATUS VARCHAR2(9) RELATIVE_FNO NUMBER AUTOEXTENSIBLE VARCHAR2(3) ---<<<< MAXBYTES NUMBER MAXBLOCKS NUMBER INCREMENT_BY NUMBER USER_BYTES NUMBER USER_BLOCKS NUMBER ONLINE_STATUS VARCHAR2(7)
-
What is this empty box that extends from the address bar?
I just downloaded the version of Aol of Firefox and this empty dialog box descends from the address bar. Then, I am unable to do anything with the page.
What should I do to get rid of this thing?Disable the add-on AOL until AOL will fix it.
-
Wallpaper (wallpaper) keeps extending from any position I click
When I got to my laptop (Vista Ultimate) the great horizons has worked, but suddenly it has stopped allowing me to change my wallpaper position no matter what I click. The images are still tense even if they are small images and larger pictures are cut off.
I even tried to use the option to right-click on sites Web make pictures my background and that works, but when I turned off the computer and reactivate it later, the image was stretched to fit the entire screen. I checked the other issues that may have something similar to my problem, but nothing works.
Hello
Thank you for using the Microsoft Windows Vista Forums.
Follow the instructions below that may help you resolve the issue.
Method 1:
Perform verification and virus scan online if the problem is resolved.
Windows Live OneCare safety scanner is a free service designed to help ensure the health of your PC.
- Check and remove viruses
- Get rid of junk on your hard disk
- Improve the performance of your PC
Click on the link below for Online Virus scanner.
Check whether the problem is resolved.
You can go to Microsoft Security Essentials protect your computer from malware.
Click on the link below for more information on Microsoft Security Essentials.
http://www.Microsoft.com/security_essentials/
Method 2:
Try to create the new user account to check if it works.
Follow the instructions in the link below to create a new user profile.
Difficulty of a corrupted user profile
http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile
Please post back and let us know if it helped to solve your problem.
Kind regards
KarthiK TP
-
How accidental test facility extended from C6 to unload and reload C6?
I recently changed my C: drive an SSD and accidentally responsible for the CS6 trial. I need to uninstall the extended C6 and reload my C6. I'm concerned about him having to recharge a complicated plug ins.
Thank you
Mike is correct. The trial version is extended. When you buy or you enter your activation code, it will be the standard version. There are a few post on CS6 returning to the mode of trial, but I don't remember what the fix was for this.
-
Extending from VM hard drive using $extendedCapacity
Hello all,.
I am trying to expand the operating system partition once I used the hard drive Set command in this format. If anyone can help on how the syntax would be written to please?Get-disk hard - vm testvm | where {$_.} Name - eq 'Disk 1'} | together-hard drive - CapacityKB 39845888
How / where would input I this command?
($extendedCapacity - HostCredential $hostCred - GuestCredential $guestCred)-
* testvm is my hostname of the virtual machine
Thank you very much!
What is the operating system of the virtual machine which hard drive you are trying to extend? Because the only supported operating systems in PowerCLI 5.1 Release 2 to extend a hard disk with the cmdlet Set - hard drive are:
Windows XP SP3 32, Windows Server 2003 32-bit SP2, Windows Server 2003 SP2 64-bit, Windows 7 64 bit, Windows Server 2008 R2 64-bit and Redhat Enterprise 5 operating systems invited.
To extend the operating system disc, you need a vm for assistance. All the associated virtual machines disk and virtual machine to help must be powered off before the expansion disk.
The command becomes:
Get-VM -Name testvm | Get-HardDisk | Where-Object {$_.Name -eq "Hard disk 1"} | Set-HardDisk -CapacityKB 39845888 -HelperVM (Get-VM -Name HelperVM) -HostCredential $hostCred -GuestCredential $guestCred
Maybe you are looking for
-
our airplay to apple device that is attached to our stereo disappeared on the choice of airtime on my devices, how do I find this new?
-
Online Business Manager numbers
How can I change my online subscription number of 1 month to 3 months in the Skype Business Manager?
-
Dualboot questions? win vista and win 8
I noticed vista shared with 8! So I started playing with the permissions of the user account on both of the partition? any help to acquire the property again will be great? Windows vista is the one that is screwed. I also get attribute errors missing
-
OfficeJet Pro 8500 A910 - security certificate problem
When I try to access certain areas on my 8500 has requiring secure access, I get the following error: "You have received an invalid certificate. Please contact the server administrator or email correspondent and give them the following information:
-
The upgrade of Windows Media Player
Is it possible to either remove the program Windows Media Player comes pre-installed with Vista on my laptop or upgrade to Windows Media Player 11? I tried to do both without success. It seems that I can't selectively uninstall the current WMP prog