Customize DateField...

Hello

I need to put a DateField and a field of button on the same line.  But what I notieced is the DateField uses the entire width of the screen.  Is it possible to set the width of the DateField.

Can someone give me an example to do this please?

Appreciate your help.

Thank you

Vincent

Hello

Use the landscape Manager and override the sublayout method.

HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_LEFT)
{
protected void sublayout (int width, int height)
{
layoutChild (datefield, getPreferredWidth(), getPreferredHeight());
layoutChild (button, getPreferredWidth(), getPreferredHeight());
                
setPositionChild (datefield, 0, 0);
setPositionChild (button, 180, 0);
super.setExtent (FieldSize.screenWidth, height);
}
};

Tags: BlackBerry Developers

Similar Questions

  • How to customize a component visible datefield just 40 days from today?

    In my project, I entered in such a situation, I had a component datefield who on a daily basis, he must show that 40 days of the date of the day and remaining days should be unselectable. It can be in any SDK 3/4.

    Someone help me please in logic.

    Thanks in advance

    read this.

    command http://blog.flexexamples.com/2007/12/17/Setting-Selectable-Ranges-in-the-Flex-DateField-Co.

  • Limitation of date for the DateField control

    I am using Flash Builder 4 and using DateField control, he begins to have problems scrolling if the value before the date 01/01/1900. At this point, I can only able to scroll up, but not down. If I start with the initial value control 01/01/1900 so I may step down below but no scrolling problem happening. It seems that the control can not navigate under the date of 01/01/1900. Is it by use or standardization perhaps (?) That's why.

    You must set the minYear and maxYear property if you want to customize the Datefield.

    Link: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/DateField.h tml #minYear

    Example:

  • External with DateField based ItemRenderer problem.

    Hello Experts

    I came across the 'problem' which I am not able to solve myself (I tried for the past 24 hours without success).

    I'm building a medium-sized application that will use the DataGrid components in many modules. These components will extend with ItemRenderes to enhance the user experience (and allow the manipulation of data).


    One of the DataGrids has a column with the date. This date field will be open user input.
    The easiest thing would be to build inline ItemRenderer of type DateField, something to this effect:

    < mx:DataGridColumn
    ID = "someDateFld".
    dataField = "someDateFld."
    headerText = "sort of date."
    itemRenderer = "mx.controls.DateField"
    rendererIsEditor = "true".
    editorDataField = "selectedDate" / >

    And this works perfectly well.

    However, I would like to be able to reuse ItemRenderers in my application and also send events (using the method of spread) that will trigger an additional feature is updated to another column with week number (read-only) based on the selected date. That's why I opted for external ItemRenderer.

    I created ItemRenderer with 2 components: HBox to align the date field (otherwise it would be aligned to the left of the data grid column which looks weird to say) and DateField. I have my DateField selectedDate property-related data. First of all, I had to convert my string RFC service return value to the type expected for selectedDate which is the Date object. Now when I run my application and start click/changing DataGrid rows, I get a nasty error message:

    ReferenceError: Error #1069: property selectedDate not found on ItemRenderers.DateFieldIR and there is no default value.
    at mx.controls::DataGrid/itemEditorItemEditEndHandler() [E:\dev\4.x\frameworks\projects\frame work\src\mx\controls\DataGrid.as:5297]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent() [E:\dev\4.x\frameworks\projects\framework\src\mx\core \UIComponent.as:12528]
    at mx.controls::DataGrid/endEdit() [E:\dev\4.x\frameworks\projects\framework\src\mx\controls\ DataGrid.as:4514]
    at mx.controls::DataGrid/mouseDownHandler() [E:\dev\4.x\frameworks\projects\framework\src\mx\ controls\DataGrid.as:4790]

    This message has no sense to me at all. As mentioned above, I linked my value (converted to date object) date the selectedDate property on my ItemRenderer (called: ItemRenderers.DateFieldIR).

    Can someone please help me with this problem?

    Concerning
    Michael Orzechowski

    I'm not sure what you mean by "disconnect", but it is generally interesting

    practice to have "abstraction" and "encapsulation".  The model data for the

    rendering engine has two important values: the data property that corresponds to the entry of

    the collection element ArrayCollection and what you specified as

    the editorDataField, in this case, "selectedDate", which came out of the

    Editor and update the item in the collection ArrayCollection.

    The converter is an encapsulation or abstraction so your work when you customize

    is over these two values for the implementation correctly.

    When the rendering engine was just a DateField, he did all of this wiring to

    you, but now you buried inside a MXDGIR, so you need to proxy the

    information to and from this thing.

    There are several ways to code.  You can use two-way to data binding

    bind the selectedDate of the MXDGIR to the DateField selectedDate.  You could

    Implement the property selectedDate on MXDGIR like get that just works

    readers of the DateField.  Then you wouldn't need to mess with events, but

    in complex cases, you as events are sometimes necessary to warn others

    things in the renderer property values to be updated.

  • Customize the response of siri about my company

    Can I customize to the siri application on my business?

    Here's what Siri and > http://www.apple.com/ios/siri/

  • Customization of the devices in iTunes

    I use iTunes to back up my devices (on pc). Is there a way to customize each device so that only certain apps, music, etc. are on a particular device?  For example, I want everything on my main iPhone. However, I want to only a couple of movies and zero on an old iPhone Apps. Each device can be customized, although they are upward and synchronized on the same iTunes on the same computer account?

    Thank you.

    Each unit will only sync what you select.  They are different and are treated as such.

    Simply connect and sync what you want.

  • I used 'Customize Firefox' to change toolbars show, and now the Firefox Customize, tab keeps appearing no matter how many times I close.

    The window customize Firefox and tab guard popping open at seemingly random times. This continues to be no matter how many times I close.

    One possible reason is that if it was added as a second 'Home tab' in which case it will be displayed in each new window (Ctrl + n) and every time that you click the Home button.

    To verify that you can use the page Options, as described in this article: start-up, homepage, tabs and download settings.

    Look for a vertical bar character at the heart of the area that separates the two addresses. A simple example with short URLS:

    https://www.mozilla.org/|about:customizing
    

    The bar certainly can be hard to spot with long URLs, but when you find it, delete everything to the right of the bar, then the bar itself (I suggest to remove the last bar so things don't accidentally get it together).

    Was she?

  • Is there a bar more research? It is not in the customization or options, so how do I turn it on. Or do I need an add-on?

    Is there a bar more research? It is not in the customization or options, so how do I turn it on. Or do I need an add-on?

    Yes, the search bar is normally to the far right of the main navigation bar. Sometimes if you find yourself with too many buttons, some controls on the toolbar 'overflow' on a drop-down list. The button for the menu drop-down has an > > icon. If you feel that you can use customize to move the search bar in a more useful location because it does not work well on the list of overflow.

    If it isn't here either, consider using the "Restore default settings" button down in the center of tab customize to return toolbars "defect". This article is for details on customize: Customize Firefox commands, buttons, and toolbars.

  • How to stop "Customize Toolbar Firefox after hitting the Home icon.

    When I am browsing and press the Home icon to return to the home page "Customize Firefox appears in the toolbar. How can I stop this?

    Make sure that you do not understand this page as one of your landing pages.
    See - How to set the home page

  • the e-mail page icon is not in the pane customize where can I find

    Trying to send an email page no link, I tried the Customize page but the icon is not there

    This extension can send text that is evidence in addition to the link, maybe that's enough.

  • Force Firefox do not return tree bar tabs in default Australis (Customize page)

    I had a thing for graphics problems when using two extensions (GlassFox and TreeTab ones).
    Application that the buttons on the toolbars and windows has continued to collapse.
    However, restore the profile, I lost it too.
    With another extension, Restorer of classic theme, I would fix partially the problem (force on the menu with fix 10 integrated bar, but I still have bad display of windows buttons).
    I'm on firefox 40.0.3, 10 x 64 windows.

    Upload didn't work, however the link to the direct number
    http://i1334.Photobucket.com/albums/w641/Hadden89/aero6_zps0gfcyaac.PNG (without menu bar)
    http://i1334.Photobucket.com/albums/w641/Hadden89/aero5_zpsmjwo8efx.PNG (with the bar menu)

    The above code is useless, but now I use scripts that have improved things: one for the tab the favicon cache, as often are ' white' and take the space; one to make tab square; and to have white text on black and on the tabs and menus toolbars (work both on the approach of partial/full glass). Strange behaviour seems to be fixed in the latest beta of the addon wait the unpleasantness when click on customize.

  • Problem with button 'customize your new tab page.

    I like to keep my empty new tab page, but there is one thing that bothers me. It's the button 'Customize your new tab page' in the upper right corner. Is there a way to get rid of him?

    Yes, it is possible up to 40 Firefox
    Follow the instructions in this article to support.

    Note
    The pref browser.newtab.url does more than 41 of Firefox.

    This is for security reasons: too many modules and malware use this feature to set their own new tab URL.

    Then, you can use this add-on: new tab override.
    When the add-in is installed, open about: config, find pref [email protected] and change the value to the desired URL.

    More details about this choice here: https://bugzilla.mozilla.org/show_bug.cgi?id=1118285

  • The Extension installed, went to customize, the post is not there to put it on the menu bar.

    Extension installed for Evernote Web Clipper (EWC). Go to customize the menu bar. The extension is not displayed to put on the menu bar. Other extensions are displayed. Remove the extension from the DRC and reinstall it. Still can not display it. 8.1 Windows running in a 64-bit environment.

    Now, it's a problem with two buttons extension disappeared? Probably an extension 3rd screwing things cause an incompatibility. I call it "don't play well in a group" - taken from some of my report cards in elementary school in the 1950s.

    See problems using Firefox Safe Mode.

    Or you can start disabling extensions until you find which one is causing these two "buttons" to disappear. Or maybe one of us could recognize the culprit to provide a list of your installed extensions.
    Help > troubleshooting information and use "Copy to clipboard" and then paste this info to Pastebin.
    http://pastebin.Mozilla.org/
    Give us the URL of the ID after having done 'stick '.

  • 38.0 I lost before, reply/ReplyAll is a mess and customize the tool bar does not help. Help

    If automatic installation of 38.0 left the above problems. Customize either is not what I want or drag on the toolbar. At least I can return to v37? I do not understand the merits of v38 which means, in my opinion, I don't not need them!
    Quite separately from what the above I have a problem with my overflow of memory for temporary periods, even when I'm not demanding any activity. I installed more memory, which aleviated the problem briefly, but all of a sudden, a few weeks ago he's back. I did tests antivirus nothing helps. When this happens it is always Mozilla and Thunderbird as top of the list of activities and I am tempted to re - install. I'm going to do a back-up first but prefer not to rely on what I haven't tried recovering from a back-up. Specifically I need to take measures to protect and preserve the history of my email? And addrbk?
    Thank you in anticipation of any help.

    I was using version 38.0.1 and did not experience the problems you describe, but there can be other personalized preferences etc. accumulated over time that the difference between your profile and mine.
    Yes, the answer may have looked like manual, but it's usually the fastest method to get the corrected results.

    I am now using the latest version 38.1.0 and currently is not undergoing problems.

  • Customization of the preview of the Finder or the Display Options tab

    Hi guys,.

    I'm looking for a way to customize the information displayed in the tab preview Finders or in the Display Options for the Finder.

    I deal with a lot of video files (about 6 TB) and I'd LOVE a way to get the Finder displays which Codec to use the files. Cmd + i to see this info in the section of the Finder's ' Get Info', you can, if the information is already there and Finder is reading. I would like a way to add a custom column for the options that says "Codec" or to have that information appear in preview just beside where the resolution of the video are already displayed. Y at - it a third-party application that would make this integration in Finder? Or y at - it a script that can be written in the code of the OS to add these fields? I have 3rd party apps that can display this record in the batch lists, but I use just Finder (a step less) especially since the Finder already stores this info, I want just a way to put these data out in front where I have to cmd + i to dig for it.

    Thank you!!

    You can do it in the 'Movies' folder, on the main road from the computer.

    using the 'Movies' folder with the list view:

    Control-click on the title bar of the column, indicated by the red arrow (as above).

    you will get the options to add four categories at the helm of the column:

Maybe you are looking for

  • Can not access the recovery on M30 partition

    Hi all I use a Toshiba M30. Last week, I uninstalled the old version of Norton Antivus to install the new version of Norton Internet Security. After you have uninstalled the NA, I found that my phone does not work normally. I, therefore, formated C p

  • Cannot install KB951847 & KB983583

    When my computer tries to install automatic update KB951847 x 86 and KB983583 I get a failure message, then try to reinstall again and again... What do I do?

  • The sounds unpleasant when I get on the internet

    For about a year, I had this irritating loud hum coming from my computer.  When I first log in, it is quiet, but when I'm on the internet or working for awhile this monotonous grinding dim noise, loud start.  I have Windows XP and Microsoft Office 20

  • Get the byte [] for a COD that is already installed

    Anyone happens to know and be willing to share, how to get the byte [] for a COD package that is already installed on the device? Thank you

  • Cannot send the link to the web page by e-mail

    Windows 8 doesn't let me send a link to the page by e-mail. In Vista, it's easy, click just to the right, click on send link by e-mail and it used my e-mail program, no problem. Not the case with Windows 8 and Windows Live Mail. If I right click on t