#1 2012-08-07 10:22:08

lele9
Member
Registered: 2011-10-28
Posts: 170

Option and SQLite3UIOption

Hi,
how is the right way to use Option in mormot?

i read documentation and i see SQLite3UIOption.
I understand that i can create an object (TSQLRecord descendant??) and pass it to TOptionsForm to show ed edit all properties. it's right?

thanks,
Emanuele.

Offline

#2 2012-08-07 11:24:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,669
Website

Re: Option and SQLite3UIOption

Yes, it is the case.
You can create a tree of options, with on-the-fly creation of screen.

But there is no sample code yet available.

The SQLite3UIOption unit has a lot of comments for all its properties and method.
That's all what is available by now.

You can also use a good old TSQLRecord, then call SQLitE3UIEdit.
This is for instance how SynDBExplorer does for its connection options, and it is pretty easy to work with.
And source code is provided here.

Offline

#3 2012-08-07 14:10:12

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: Option and SQLite3UIOption

thanks ab,
when i will integrate option with SQLite3UIOption in my application i'll post the code for example.
Emanuele.

Offline

#4 2012-08-07 16:05:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,669
Website

Re: Option and SQLite3UIOption

Nice.

smile

Offline

Board footer

Powered by FluxBB