Jump to content

Documentation for ServerModule and MainModule


Guest

Recommended Posts

Message from: "Junior/RO"

 

It would be nice if unigui.com have a kind of wiki to we write about some properties of components and gotchas.

 

I want to know more about ServerModule and MainModule:

- Where change the "New applicaton" title of the page?

- How to change the port to serve?

- Where to read to know more about this two?

 

--

Que é essa vida se, com tanto a fazer, não temos tempo para parar e ver?

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

"Junior/RO"

> It would be nice if unigui.com have a kind of wiki to we write about some

> properties of components and gotchas.

>

 

Right. Comprehensive docs will be availabe once library core is settled.

 

 

> I want to know more about ServerModule and MainModule:

 

 

ServerModule is created once per server and i global to all sessions.

MainModule is created for each session and private.

 

Data aware components should be placed on MainModule. You can create

additional DataModules from uniGUI Project Wizard.

 

> - Where change the "New applicaton" title of the page?

 

UniServerModule->Title

 

> - How to change the port to serve?

 

UniServerModule->Port

 

 

 

 

.

 

Link to comment
Share on other sites

Message from: "Junior/RO"

 

Farshad Mohajeri escreveu:

 

> > - Where change the "New applicaton" title of the page?

>

> UniServerModule->Title

>

> > - How to change the port to serve?

>

> UniServerModule->Port

 

Where should I change this properties?

 

I have tried with no results:

 

 

procedure TUniServerModule.FirstInit;

begin

InitServerModule(Self);

Self.Title := 'My cool title;

Self.Port := 80;

end;

 

 

--

Que é essa vida se, com tanto a fazer, não temos tempo para parar e ver?

.

 

Link to comment
Share on other sites

Message from: "Junior/RO"

 

Junior/RO escreveu:

 

> I have tried with no results:

 

I have tried here to (ServerModule.pas):

 

function UniServerModule: TUniServerModule;

begin

Result := TUniServerModule(UniGUIServerInstance);

end;

 

And the debugger tells me that this code will never be reached.

 

--

Que é essa vida se, com tanto a fazer, não temos tempo para parar e ver?

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

"Junior/RO" wrote in message

news:wwNlULNmLHA.232@anaxagvs227...

> Farshad Mohajeri escreveu:

>

>> > - Where change the "New applicaton" title of the page?

>>

>> UniServerModule->Title

>>

>> > - How to change the port to serve?

>>

>> UniServerModule->Port

>

> Where should I change this properties?

>

> I have tried with no results:

>

>

> procedure TUniServerModule.FirstInit;

> begin

> InitServerModule(Self);

> Self.Title := 'My cool title;

> Self.Port := 80;

> end;

>

>

 

You can change them in Object Inspector. Do you need to change them at

runtime?

 

 

.

 

Link to comment
Share on other sites

Message from: "Junior/RO"

 

Farshad Mohajeri escreveu:

 

> You can change them in Object Inspector. Do you need to change them at runtime?

 

I have created my projects using your application wizard. I think that it is only source code, don't have components to change. Please tell me if I am wrong.

 

--

Que é essa vida se, com tanto a fazer, não temos tempo para parar e ver?

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

"Junior/RO" wrote in message

news:8ramiqXmLHA.2080@anaxagvs227...

> Farshad Mohajeri escreveu:

>

>> You can change them in Object Inspector. Do you need to change them at

>> runtime?

>

> I have created my projects using your application wizard. I think that it

> is only source code, don't have components to change. Please tell me if I

> am wrong.

>

> --

 

You have ServerModule in your project which has a visible DataModule Form.

After opening it in IDE you can see all properties in the object inspector.

 

 

.

 

Link to comment
Share on other sites

Message from: "Junior/RO"

 

Farshad Mohajeri escreveu:

 

> You have ServerModule in your project which has a visible DataModule Form.

> After opening it in IDE you can see all properties in the object inspector.

 

I can see now. I am a Delphi 7 programmer, Delphi 2010 is new to me :o)

 

It's working now. Thanks again.

 

--

Que é essa vida se, com tanto a fazer, não temos tempo para parar e ver?

.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...