customcomponents

Flex DataGrid, Row Group Headers.

I am trying to extend the DataGrid to allow headers for different groups of rows. However, I cannot figure out which method to extend from DataGrid that would allow me to accomplish this. I do not want the headers to be included in the dataProvider, only the rows. I want to specify indexes to insert the headers at using a property of th...

To restrict size of components at design time: CodeGear C++ Builder

Hi, I am trying to inherit from TButton in order to provide some size aware capabilities, where the buttons are able to resize themselves and/or their font size (within certain constraints) to allow for changes in text e.g. | small | or |   this is a really long   | | sentence on a button | could happily be th...

Flex 3: Embedding MovieClip Symbol to Image Control programmatically

I've reviewed all the documentation and Google results surrounding this and I think I have everything setup correctly. My problem is that the symbol is not appearing in my app. I have a MovieClip symbol that I've embedded to my Flex Component. I need to create a new Image control for each item from my dataProvider and assign this embedd...

Getting handles to dynamically-generated Flex components

I have a Flex application which references a separate MXML file as a template for a custom component. I create instances of the component dynamically several times in my program, but I need to get a handle that will allow me to modify that instance of the component as desired. I pass specific information to this component on instantiat...

How to put my component in a new group in Visual Studio toolbox?

I have created a component and it is automatically shown in toolbox when I open the solution. It can be placed on form, I can change properties etc. When I close the solution and install it in toolbox (choose toolbox item menu), I want this component to be shown in a different group (other than "All Windows Forms" group). How can I do i...

how to prevent itemeditor destruction?

My custom item editor opens a titlewindow (too much stuff to show in an inline editor) which obviously steal the focus, so I get a itemeditend event and the datagrid destroy the editor at the wrong (for me) time. I think to have to keep the itemeditor alive until the titlewindow job is done, but how? DataGridEvent reason is "other" and l...

Why are my XMLListCollection properties in my custom components always null?

I've written the following custom component, SubNavBar.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" height="100" width="300" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.collections.XMLListCollection; [Bindable] public var menuItems:XMLListCollection; pri...

Flex: Should I use web service calls in custom components or regulate them to main.mxml?

I'm attempting to code an RIA with loosely couple components. I have several custom components that use data from a web service I've decalred in main.mxml. As a best practice, should I make all of my web service calls in main and pass along the data to the components, or give the web service credentials to each component and let them ma...

AS3 create component using Flash CS4

I would like to create a basic component consisting of a textbox and a label next to it (in other words an InputText and a StaticText). I only need to set and get the text in the Input textbox, the static text will stay as is. Any help would be highly appreciated! Jasco ...

How to build custom grid

I have a problem and i will be grateful if anyoune helps me. Ok. I've started android programming 2 month ago. Now i am developing a simple game, nava battle. For this programm i need to build a grid, where i can place ships and coordinates. I can't seem to find out how I should be doing this? I think i should build a custom view, which...

How to get internal content of jsf component?

I have a component's library and this library has Chart component. Chart is actually a jpg image. I need to access this image. I need some basic tips where to search that image, maybe with examples based on some wellknown libraries like Tomahawk. ...

selection Menu like Tap Tap Revenge 3

Hi I am wondering how to achieve selection menu like tap tap revenge 3 have.Do I need to make a whole custom class or any help which class should I drive my subclass.I tried to modify UIPickerView but I cant change background image and frame(both is private). Thanks Mrigank Gupta Here is the link of image(not having reputation to post...

Drawing an overlay in custom flex component

How would one create a custom MXML component in flex which is based on an existing component but draws an overlay over this existing component in certain situations. Ideally, the new component should be based on (derive from) the exiting component so that occurrences of the existing component could just be swapped out with the new one. ...

In my custom component, how can I augment the mouse-enter and -leave events?

Hi, I am making a custom Panel component which derives TPanel. I want for my new component to have some code executed on the OnMouseEnter and OnMouseLeave events, however, i do not know how to implement it. I see that TPanel has published properties OnMouseEnter, OnMouseLeave. How do i override those and add some of my own code? The...

Why are my component's unscaled width/height zero?

Why are unscaledWidth and unscaledHeight tracing to 0 when the calling component doesn't explicitly set a width and height? (If calling component does set width and height, they are tracing to the set value.) Shouldn't measure() force the minimum width and height? package { import flash.display.Graphics; import mx.core.UIComponent; ...

Custom Joomla component integration with Joomla com_user.

Hi Everybody I am creating a component where registered users will be able to use the features of my component. My component has a some forms and views. I want to allow only logged in users to access links to my component. How can i add extra custom fields to the User Registration form of Joomla? I have some extra fields to capture li...

Extend Richfaces components - for example customize Datatable component for specific implementation

Hi, How to extend the functionality of Richfaces components for example Data table with custom header and sorting techniques. i have seen extended data table but did not get much information from it. Please point me to an example if at it is available. Thanks Soma ...

How to store and display date in dd-mm-yy format in Joomla?

I am developing a component in Joomla. Through my component I want to store timestamp to "lastaccessed" field. My problem is that, if I am simply storing the date, then MySQL is displaying it as "0000-00-00 00:00:00" I am using the PHP date function like this: $row->date_lastaccessed=date(); How can I store and retrieve the date in ...

how to restrict direct access to a view for registered users, in a custom component, in joomla?

Hi there I am developing a component, and i am having my own login form and tables. After authentication of user through my component, userinfo is being stored in Session. Everything is fine. but user is able to access the views that are supposed to be viewed by logged in users. I wanted to restrict the access through link. How to do ...

JSF - custom component, problem with expression for attribute

I want to create custom component with attribute "title" that can have expression but I get this error: Unable to convert string "#{myBean.text}" to class "javax.el.ValueExpression" for attribute "title": Property Editor not registered with the PropertyEditorManager Caused by: org.apache.jasper.JasperException - Unable to convert strin...