Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-02

Project file not updated

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi all,

I think I found a bug...

1. Create a new project.
2. Add a unit where your access rights is read only. (the source will be marked read only by the editor). Save and close project.
3. Change your access right of the file to full control (rw).
4. Open the lazarus project you just created. The file retains its read only mode.

The only way you can change this is to manully edit the lpi??? file and set the mode readonly to false.

Regards,

Yoyong

Reply by email

Unknown author

I was not aware that there is ReadOnly item in the popup menu. Thanks, I think it is working for me now.

BTW, the following statement

-->  frmMain.WindowState := wsMaximized;
does not work.      Is WindowState not yet implemented? If not, can somebody point me out(just a hint) on how I may help?

Yoyong

Internet Mail Message
Received from host:
svcr-216-37-230-2.dsl.svcr.epix.net
[216.37.230.2]

From: Mattias Gaertner on 02/26/2003 10:41 AM GMT

Mattias Gaertner To:
Cc: (bcc: Yoyong Hernan-ET/PGI)
Subject: Re: [lazarus] Project file not
updated
02/26/2003 06:41 PM
Please respond to

Show quoted text 13 lines
Hi all, I think I found a bug... 1. Create a new project. 2. Add a unit where your access rights is read only. (the source will be marked read only by the editor). Save and close project. 3. Change your access right of the file to full control (rw). 4. Open the lazarus project you just created. The file retains its read only mode. The only way you can change this is to manully edit the lpi??? file and set the mode readonly to false.

Does the popupmenu not work?

The ReadOnly flag is currently not very clever. It is set, when the file is read only or the user marks it readonly. And is unset only by the user. It is helpful, when you open the original file and the working file and you don't want to change the original file by accident. The you just set the readonly flag in the popupmenu.
But if the flag was set automatically (not by the user) as in your case, then it should be automatically unset. I will change it ...

Mattias

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Unknown author: I think I found a bug... 1. Create a new project. 2. Add a unit where your access rights…
Show quoted text 13 lines
Hi all, I think I found a bug... 1. Create a new project. 2. Add a unit where your access rights is read only. (the source will be marked read only by the editor). Save and close project. 3. Change your access right of the file to full control (rw). 4. Open the lazarus project you just created. The file retains its read only mode. The only way you can change this is to manully edit the lpi??? file and set the mode readonly to false.

Does the popupmenu not work?

The ReadOnly flag is currently not very clever. It is set, when the file is read only or the user marks it readonly. And is unset only by the user. It is helpful, when you open the original file and the working file and you don't want to change the original file by accident. The you just set the readonly flag in the popupmenu.
But if the flag was set automatically (not by the user) as in your case, then it should be automatically unset. I will change it ...

Mattias

Reply by email

Mattias Gaertner
to Unknown author: I was not aware that there is ReadOnly item in the popup menu. Thanks, I think it is…
--> frmMain.WindowState := wsMaximized does not work. Is WindowState not yet implemented? If not, can somebody point me out(just a hint) on how I may help?

Changing the WindowState results under Delphi in a call to ShowWindow. I have added the procedure headers for ShowWindow. The only thing to do is the gtk code.
Open gtkwinapi.inc, search for '.ShowWindow'.

hWnd is a PGtkWindow, nCmdShow is one of the constants sent by TCustomForm.SetWindowState.

Search on www.gtk.org and google how to maximize, minimize, restore a gtkwindow.

I hope, this helps,
Mattias

Reply by email