components

Delphi components to use with SQlite

三世轮回 提交于 2019-12-02 23:58:12
What components can I use to use SQlite database with Delphi 6? Try Zeos Library at http://zeos.firmos.at/portal.php . It works well with SQLite and others. It is free and you get the source code too. My Answer is AnyDAC in this case. We here currently use it and it works. Especially when you think that you get more than just what the database can do. http://www.da-soft.com/anydac/ I'm using DISQLite3 in FeedDemon and recommend it highly. I have successfully used ASqlite from http://www.aducom.com . It's free, open source software. The new DevArt UniDac components has Sqlite provider Unidac

How to invoke on the UI thread of a WinForm Component?

爷,独闯天下 提交于 2019-12-02 21:15:24
问题 I'm coding a WinForm component where I start a Task to do the actual processing and trap the exception on a continuation. From there I want to show the exception message on a UI element. Task myTask = Task.Factory.StartNew (() => SomeMethod(someArgs)); myTask.ContinueWith (antecedant => uiTextBox.Text = antecedant.Exception.Message, TaskContinuationOptions.OnlyOnFaulted); Now I get a cross-thread exception because the task is trying to update a UI element from a, obviously, non UI thread.

ExtJS 4: Replace two components in Viewport items array after button click

不打扰是莪最后的温柔 提交于 2019-12-02 19:15:05
问题 Below is some code that works after one button click. When I set that "view" variable again in another button click (for a different button) and run this exact code with a different grid and a different form, the two items disspapear completely. Why does it run on the first iteration, but not the second? More importantly, how can I switch the components for these two items the correct way? I've tried using the "itemId" config in these two components (via getComponent), I've tried using the

React - Can A Child Component Send Value Back To Parent Form

孤街醉人 提交于 2019-12-02 18:22:05
The InputField & Button are custom components that go into a form to create a form. My issue is how do I send the data back up to form so that on button click, I can fire ajax on the form with data (username & password): export default auth.authApi( class SignUpViaEmail extends Component{ constructor(props){ super(props); this.state = { email : "", password : "" }; this.storeEmail = this.storeEmail.bind( this ); this.storePassword = this.storePassword.bind( this ); } storeEmail(e){ this.setState({ email : e.target.value }); } storePassword(e){ this.setState({ password : e.target.value }); }

Angular (1.5.8) Dynamic Components

孤街醉人 提交于 2019-12-02 18:19:43
I'm trying to build a sort of dynamic dashboard using Angular 1.5.8. I've made decent progress up until the final hurdle. Which is actually rendering the dynamic component. I've tried 2 options, either adding a ui-view and programatically passing in the name of the widget, or , and this is the route I'm guessing is more correct, I need to figure out how to render a dynamic widget. For Example: As I append and item to the dashItems collection, it should render a new widget (based on the name I've provided) I have seen that I can swap out templates using ngInclude , but I'm still unclear as to

Unable to select the components on a page

独自空忆成欢 提交于 2019-12-02 17:50:52
问题 I want to perform a rollout only for the selected components in the page. I noticed that I am not able to select any of the components presented in the pages using the small checkbox in the component's edit bar. I am not sure why this is happening. All of them are custom components and not OOTB ones. Any solutions to this, please share them. 回答1: I just discovered that in EditBar.js, the listener associated with the checkbox was not functioning. The following loc can be found at /libs/cq/ui

Android dialog number picker

。_饼干妹妹 提交于 2019-12-02 17:35:42
Is there any tested and usable component we can use to show "Count selector" like this? Our target is to get it working from API v7 . (Taken from DatePickerDialog) After some deep testing and using, this is a list of usable Picker widget libraries Android Wheel http://code.google.com/p/android-wheel/ Number Picker from Michael Novak https://github.com/mrn/numberpicker Date Slider (which can be easily adjusted) http://code.google.com/p/android-dateslider/ Horizontal slider widget http://blog.sephiroth.it/2012/01/28/android-wheel-widget/ Backport of Android 4.2 NumberPicker https://github.com

How to wait for binding in Angular 1.5 component (without $scope.$watch)

…衆ロ難τιáo~ 提交于 2019-12-02 17:27:52
I'm writing an Angular 1.5 directive and I'm running into an obnoxious issue with trying to manipulate bound data before it exists. Here's my code: app.component('formSelector', { bindings: { forms: '=' }, controller: function(FormSvc) { var ctrl = this this.favorites = [] FormSvc.GetFavorites() .then(function(results) { ctrl.favorites = results for (var i = 0; i < ctrl.favorites.length; i++) { for (var j = 0; j < ctrl.forms.length; j++) { if (ctrl.favorites[i].id == ctrl.newForms[j].id) ctrl.forms[j].favorite = true } } }) } ... As you can see, I'm making an AJAX call to get favorites and

Knockout components or templates performance gains

試著忘記壹切 提交于 2019-12-02 17:04:21
问题 I have an observable array. For every array element I generate some html form, very extended, as the observable array items are large objects with observables in turn: var records = ko.observableArray([ { p1: ko.observable("initProp1"), p2: ko.observable("initProp2"), // and so on pN: ko.observable("initPropN") }, //... ]); The html can be large, complex and dynamic, changing on the basis of some of the properties themselves: to achieve this I make use of ko:if bindings, which are known to be

Tag editor component for Delphi/C++Builder

这一生的挚爱 提交于 2019-12-02 16:51:05
I need a VCL tag editor component for Delphi or C++Builder, similar to what's available for JavaScript: e.g. this one , or this one or StackOverflow's own tags editor. Is there something like this available or do I need to make it from scratch? Some specific things that I need are: Editor should allow either scrolling or become multi-line if more tags are present than the editor's width allows. If multi-line, there should be an option to define some maximum height however, preventing it from becoming too tall Option to select whether tags are created when pressing space or comma key Prompt