Forum > Other

fpGui Native Windows Controls

(1/3) > >>

can i make native windows controls with fpgui ?

Sorry I don't fully understand what you mean, so I'll answer a few different aspects.

fpGUI is a 100% custom drawn toolkit. That means fpGUI does all its own painting of all its widgets (controls). The same applies to any events in widgets - fpGUI handles user interaction and generates events without any OS or other toolkit assistance.

If you were referring to creating an fpGUI applications that looks "native" (there doesn't seem to be any OS that only has one look these days).... fpGUI includes 6 or more themes as standard, an many user contributed themes are available too. So with fpGUI you can have any look you want. There are very few limitations, if any at all.

One of the user contributed themes I have see, queries the underlying OS toolkit (Windows, KDE, Gnome) for system colours, then applies that to fpGUI. That theme isn't standard with fpGUI yet (but is under consideration).

Equally, you can create a theme that asks the underlying OS to paint widgets of equal functionality to a memory bitmap, then paint that bitmap in fpGUI. This is not something I am personally interested in, but it has been done in many other toolkits - Qt is probably the most popular example of this.

You could also create a bitmap based theme, where widgets get painted based on supplied bitmap images. I have experimented with this idea, and my work on this can be found in the <fpgui>/prototypes/ directory. This is actually something I'm interested in added to fpGUI. I have loads of ready made theme sets, consisting of many bitmaps for the most common widgets. There was a old program named "Pixel Image Editor" (also developed with FPC) that had loads of such bitmap themes. Win95, XP (silver), XP (blue/green), Ubuntu Human, Linux Mint are just some of the looks it could reproduce. Those bitmap themes could be reused for a fpGUI theme too.

If I didn't manage to answer your question, please elaborate as much as possible, and I'll try answering again. ;)

yes i understand,
fpgui fully custom draw controls,
in windows, i not found way, for make my own native controls
you can make abstract class for it, for way make native controls   :)

You don't want to use fpGUI in that case. It is meant to be cross-platform and is very good at that.
If you want small and native controls (shameless plug, sorry) use KOL.

What do you mean by "my own native controls"?

Here, the phrase "native control" is used with the meaning - a widget provided by OS, that is provided by a library which we get as a standard (natively) with OS.
The phrase "my own control" I understand as "my custom drawn control", so exactly opposite from "native".

So, you have to choose - either use a "native" set of controls (use LCL with native widgetset) or "your own", which you make yourself from scratch.

FPGui gives you its own set of controls, which can be (automatically with themes) customized to resemble "native" controls. What you get with FPGui is consistent look and feel, independent from OS.


[0] Message Index

[#] Next page

Go to full version