Delphi visual component - moving away from TFrame base? [closed] - delphi

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a visual component that I built from a TFrame (but then registered to the palette, etc); it works great and I loved being able to build it VISUALLY using the IDE.
I would now like to create a "family" of related components, and to do so, would like to create a superclass of this component, and then inherit this component and others from there.
There are a lot of ways to do this, I'm sure, but I'm finding myself wondering: Is there a tool that will convert *.DFM files (i.e. Forms or TFrames) to raw Object Pascal constructor code? Thinking of where it w/b nice to begin w/a visual form or TFrame, but then break from that inheritance at some point, and replace the constructor w/what is essentially a replacement for streaming from the DFM file.
As always, all thoughts / input appreciated.

GExperts "Component To Code", generate the code for selected components.
Property like images you have to sign by yourself.

A little curious why you'd want to do this at first glance... You can inherit from forms/frames in the IDE.
Depends on your version of Delphi, in Delphi 2009, File->New and then select Inheritable Items and pick the Form/Frame of yours that you want to inherit from. In previous versions, you'd pick File-New and there would be a tab for the project's name and a list of all the projects forms to select from.
It's quite handy! You end up with different flavors of Forms/Frames and just about everything you create afterwards is a descendant of one of them.

I second the GExperts comment by Cesar, and would add that images can be included (and names) in Resource files and then INCed into the PAS file.

Related

How to create a personalized user interface for iPad app? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm trying to create an application for the iPad but I would like to create a user interface with different styles and controls to those offered in xcode. I would like to create something with an interface like StumblUpon, Flipboard or any other applications that you can see over here http://www.iospirations.com/. I don't know if those kind of interfaces are created with custom controls or some kind of library. If any of you can give some pointers or directions for things to read or try I'll be very grateful. I don't think i can build an interface like those just dragging the standard controls...so that's why I'm completely lost here.
Thanks for your time!
It really depends on what you want to build specifically. You might customise some standard components using UIAppearance Proxy:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html
and some other components you would build from scratch, perhaps by stacking up several views and moving them around programmatically, with custom backing classes and logic. Move them around using UIView animations, or apply transforms to them using C drawing.
Another option might be to look at if there is any open-source components on GitHub that you could use/customize. iCarousel is a good example of this, take a look through the source code.
https://github.com/nicklockwood/iCarousel
Your question is very general, the bottom line is if you want a custom component you need to build it from scratch. I'd advise against doing too much of this, as it makes your code harder to maintain, harder to to keep inline with iOS updates, and usually includes doing loads of work to achieve roughly the same function that Apple gives you for free
Another good resource (not free though) - http://www.appdesignvault.com

What's a good WYSIWYG editor to use with ContentEditable? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm trying to build something similar to Google Docs, where you can edit a page directly and not through a textarea or iframe. This is possible with the contentEditable HTML5 attribute.
So are there any good editors that I could use on top of contentEditable, to provide features like text formatting, inserting links, pasting from word, etc.?
http://www.aloha-editor.org/ is one that I've found, but I was wondering if there are more.
(edit: I should clarify that I'm not trying to build the whole Google Docs, I just used that as an example of editing the actual content)
Version 2.0 of WYMeditor (currently under heavy development by me and others) also uses contentEditable, but relies mostly on selection/ranges/the dom for manipulation as the behavior of the designMode and contenteEditable API:s differ greatly between browser vendors.
Some of the features/design goals are:
WYSIWYM editing – Separating content and presentation we enable rich text formatting, but leave the presentation to the designer.
A modular architecture – Use only the components you want (and hook them up against your own ui) or drop in a "full stack" editor with toolbars, dialogs and everything.
Strict xHTML(5) – The editor outputs strict XHTML by default (making it easy to transform the content as needed). If thats not what you want you can write your own parser and serializer to support any format you want.
Placeholders/custom elements – Placeholders and even custom elements enable you to manage almost any kind of content inside the editor. Together with the StructureValidator you can enforce rules for nesting, formatting, valid attributes, etc.
Source is available on GitHub and a first beta version is to be expected within a month or two.
Take a look at HTML5 editor, it take a textarea element and transform it into a div with contentEditable. It have a pretty customizable toolbar to easily format content.

Is there a CKEditor like component for Delphi? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Am searching for a CKEditor like component, preferably for delphi 7.
Any good free ones out there I could try out?
I am not aware of any WYSIWYG free/open-source libraries for Delphi 7. There are some commercial libraries that I have used with great success. TRichView and WPtools are two which are RichText editors which have export to HTML/CSS options.
You can also look at TEmbeddedWB which exposes many more properties than the standard TWebBrowser. Just navigate (or load html), set TEmbeddedWB.DesignMode := true and edit away.
You will find more information in the answers to this similar StackOverflow question:
WYSIWYG HTML Editor Component for Delphi
CKEditor is not part of TWebBrowser in design mode. It is much more: A complex JavaScript application that enables you to edit HTML in WYSIWYG mode. I am currently building some components (DB and standalone) for Delphi using this amazing editor and delphichromiumembedded.

Desktop Application Framework similar to Rails [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a desktop application framework similar to Rails:
Good ORM
MVC
Default directory structure
View Helpers/DSL
Elegant
Open Source
Fun language
Decently mature
Check out Griffon, a Grails-like framework for Swing application development that fulfills all your needs.
Have you checked out Shoes?
There is also Bowline. It was mentioned in ruby inside blog recently. I haven't tried it. Tried Shoes though. It is very simple.
There is another one called Anvil. Anvil is a MVC framework that wants to be equivalent to rails for GUI development. It is based on wxruby. Which makes me want to try it.
try Rebol, it's got the simplest gui that is out there. an example of a window with one text field, one button "click me" and a label "hello" :-
view layout [ field label "hello" button "click me" ]
or if you want it in multi line
view layout [
field
label "hello"
button "click me"
]
I've personally ended up using Swing/SWT + JRuby. The Java cross-platform GUI libraries are just light-years ahead because they're used for IDEs, which are about the most demanding application you can have for a GUI toolkit. It's nowhere near as elegant as Rails is for the web (and I'm no fan of Rails), but in the long run, it's a much better choice than anything based on wxWidgets or GTK or QT. It also gives you the option to drop into Java if you have a particular piece that's running too slow. I wish there were better options, but that's what we've got.
Monkeybars is the main solution I'm aware of, but it's not ideal from the point of view of your bullet list. Its "MVC" isn't really like any other interpretation of MVC that I've come across; it's more a convenience wrapper around Swing. At least, that's the way I use it.

does a good swf to exe wrapper open source exists? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I think the best part of flash is the possibility to create not squared user interfaces, so I like the idea to create desktop apps using flash. I know AIR is for that but it doesn't allow real access to OperatingSystem apis and dlls and the commercial options are kind of difficult to customize.
You can try ScreenweaverHX:
http://haxe.org/com/libs/swhx
It's the Haxe-based successor of the old Screenweaver. However, it's not as simple as the old version used to be. Most likely you need to take a look to the basics of Haxe and Neko, the 2 technologies it's based on.
There's another project on top of SWHX that it's called HippoHX. It aims to "complete" SWHX providing that extra functionality you might miss (simple ActionScript APIs and a GUI). However, it's in its early stages:
http://hippohx.com
DISCLAIMER: I'm the owner of HippoHX, so my point is obviously biased.
As far as I know SWHX is the only Open Source alternative at this point.
Try flajector. it's powerfull converter from flash to exe. You can to develop your application using AIR. And then you can convert it into desktop application .exe

Resources