Sign in Join

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

Mailing lists / lazarus / 2008-09

[patch] File Browser add-on

12 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders
to Graeme Geldenhuys: I hope others find this useful. :) http://bugs.freepascal.org/view.php?id=12178 - Graeme…
Graeme Geldenhuys wrote
I hope others find this useful. :) http://bugs.freepascal.org/view.php?id=12178

Applied in r16792.

Some remarks (tested on windows 2000):
* I would use {$IFDEF WINDOWS} instead of {$IFDEF MSWINDOWS}. The latter is not defined for wince. But maybe you don't want this code to be used on wince.

* On windows it doesn't seem to remember the last selected dir or the the project dir.

* If I have the file browser window open and restart the IDE, the file browser window is not restored. I have to choose View -> File browser window again to see it.

Thanks,
Vincent

Reply by email

Michael Van Canneyt
to Vincent Snijders
Vincent Snijders wrote 12 lines
Graeme Geldenhuys schreef: > I hope others find this useful. :) > > http://bugs.freepascal.org/view.php?id=12178 Applied in r16792. Some remarks (tested on windows 2000): * I would use {$IFDEF WINDOWS} instead of {$IFDEF MSWINDOWS}. The latter is not defined for wince. But maybe you don't want this code to be used on wince. * On windows it doesn't seem to remember the last selected dir or the the project dir.

If you look at the code, you'll see that it uses the standard lazarus interface for settings, so that is very strange ?

* If I have the file browser window open and restart the IDE, the file browser window is not restored. I have to choose View -> File browser window again to see it.

That was never the intention, I wouldn't even know how to do this. Is there an IDE interface for this kind of behaviour ?

Michael.

Reply by email

Graeme Geldenhuys
to Vincent Snijders: Applied in r16792. Some remarks (tested on windows 2000): * I would use {$IFDEF WINDOWS}…
Vincent Snijders wrote

Thanks.

Some remarks (tested on windows 2000): * I would use {$IFDEF WINDOWS} instead of {$IFDEF MSWINDOWS}. The latter is not defined for wince. But maybe you don't want this code to be used on wince.

Can the Lazarus IDE itself actually run on WinCE? I would have imagined, no. The IFDEF doesn't really matter, I simply use MSWINDOWS since forever... :-) I'll change it if required.

* On windows it doesn't seem to remember the last selected dir or the the project dir.

I'll look into it.

* If I have the file browser window open and restart the IDE, the file browser window is not restored. I have to choose View -> File browser window again to see it.

A known issue. It also doesn't remember it's position, only size. I asked previously how to add File Browser to the list of IDE Windows (Environment Options | Windows tab), but I didn't get any response. I've done it before, but that was with code that was built into the IDE, not with an optional IDE add-on package. Anybody got a clue what API I can use?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Vincent Snijders
to Michael Van Canneyt: If you look at the code, you'll see that it uses the standard lazarus interface for…
Michael Van Canneyt wrote 6 lines
On Mon, 29 Sep 2008, Vincent Snijders wrote: > * On windows it doesn't seem to remember the last selected dir or the the project dir. If you look at the code, you'll see that it uses the standard lazarus interface for settings, so that is very strange ?

I haven't debugged it. But I think the directory is stored, but not correctly applied. It doesn't work for the other option: using the current project dir.

Vincent

Reply by email

Vincent Snijders
to Graeme Geldenhuys: Thanks. Can the Lazarus IDE itself actually run on WinCE? I would have imagined, no. The…
Graeme Geldenhuys wrote 15 lines
On Mon, Sep 29, 2008 at 1:38 PM, Vincent Snijders wrote: >> http://bugs.freepascal.org/view.php?id=12178 > Applied in r16792. Thanks. > Some remarks (tested on windows 2000): > * I would use {$IFDEF WINDOWS} instead of {$IFDEF MSWINDOWS}. The latter is not > defined for wince. But maybe you don't want this code to be used on wince. Can the Lazarus IDE itself actually run on WinCE? I would have imagined, no. The IFDEF doesn't really matter, I simply use MSWINDOWS since forever... :-) I'll change it if required.

I don't think it runs on wince. But nevertheless, if you choose MSWINDOWS, you ignore wince, and you may do that, but not unknowingly. That is why I made the remark.

Show quoted text 5 lines
> * On windows it doesn't seem to remember the last selected dir or the the project dir. I'll look into it.

Thanks.

Vincent

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: If you look at the code, you'll see that it uses the standard lazarus interface for…
Michael Van Canneyt wrote
> * On windows it doesn't seem to remember the last selected dir or the the project dir. If you look at the code, you'll see that it uses the standard lazarus interface for settings, so that is very strange ?

I noticed the same...

Show quoted text 5 lines
> * If I have the file browser window open and restart the IDE, the file browser > window is not restored. I have to choose View -> File browser window again to see it. That was never the intention, I wouldn't even know how to do this. Is there an IDE interface for this kind of behaviour ?

Like I mentioned... I did this before with the FPDoc Editor window. If you register it with the Environment options | Windows tab, then it works. But I don't know of any API I can use if the code is optional (like in the case of a lazarus add-on package). Mattias?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Vincent Snijders: I haven't debugged it. But I think the directory is stored, but not correctly applied. It…
Vincent Snijders wrote 5 lines
> If you look at the code, you'll see that it uses the standard lazarus > interface for settings, so that is very strange ? I haven't debugged it. But I think the directory is stored, but not correctly applied. It doesn't work for the other option: using the current project dir.

Settings are stored in the idebrowserwin.xml file. Under linux, that's in the $HOME/.lazarus/ directory. Not sure where exactly Lazarus config files are stored in Windows.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Felipe Monteiro de Carvalho
to Graeme Geldenhuys: Thanks. Can the Lazarus IDE itself actually run on WinCE? I would have imagined, no. The…
Graeme Geldenhuys wrote
Can the Lazarus IDE itself actually run on WinCE? I would have imagined, no.

Why not?

Windows CE is a very flexible operating system, and is also used in tablets, not only in PDAs. If the system has a big enought screen it should be able to run Lazarus.

I only have a PDA emulator to test, so I personally don't use this combination, but it is possible.

Felipe Monteiro de Carvalho

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 5 lines
Why not? Windows CE is a very flexible operating system, and is also used in tablets, not only in PDAs. If the system has a big enought screen it should be able to run Lazarus.

Ha, I was thinking only in terms of PDA's. :-) I thought Tablets run a copy of Windows XP, but I guess not. ;-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email