Sign in Join

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

Mailing lists / lazarus / 2002-12

some IDE problems and more

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Jesus Reyes

Hi, I have some problems with current lazarus version (13-dec-2002 cvs updated):

1) Some editor hotkeys doesn't work since i first
tried lazarus (ctrl+F9, markers ctrl+0..9, sctrl+0..9 for example) but others does ( ctrl+s, ctrl+o). I
tried to change key mappings in the past but IDE
crashed and was very difficult to recover so I'm
afraid to do it again ;).

2) While double clicking components on form editor or pressing "..." on events in object inspector does
locate/create corresponding event code, it doesn't show the text cursor (maybe a setfocus is missing?)

3) If I insert one group of buttons, create its events handlers and then wanted to change components name's all seems to work but the corresponding events handler names doesn't change (I can't express it correctly in english, sorry) I mean:
a) before rename: button1CLICK(..)
b) rename button1->btnChoose
c) after rename: button1CLICK(..) But IMHO it should be btnChooseCLICK(). This is a problem because if you add another button the name assigned to it is:
button1!, and all kinds of funny things happen.

4) TScrollingwincontrol doesn't support child
controls, i mean, while you can set for ex
Edit1.parent:=Grid1.Parent, edit1.setfocus fails!
(sorry I don't remember error message but it was
somthing related to fixed widget)

5) I tried to install grids components in the IDE so I followed instructions on customidecomps.pas and build lazarus but doesn't work!, trying to find why i
noticed that no single file on lazarus tree references customidecomps except by the file it self. I'm missing something?

6) For the next it would be easier to download
mysql_querier form http://mx.geocities.com/jesusrmx/ to see what I mean [the english problem again :(]. I was trying to find out why grid.anchors does reduce its bounds to the original created ones (look at
Form1CREATE in main form) so I started to find anchors property (ctrl+click: what i nice feature!) that took me to published anchors property in grids.pas,
ctrl+click again on anchors property should take me to ancestor anchors declaration but it won't. A error about it can't find stdctrls on the console appears TCodeToolManager.HandleException: "unit not found
StdCtrls" at line ...., Ctrl+clicking or Ctrl+Enter on grids.pas stdctrls uses declaration wont work, Now the funny thing, if I go to the mainunit.pas editor window and tried ctrl+clicking or ctrl+enter on its stdctrls uses declaration it works!.
I've added the path to grids.pas on run->compiler
options->Other unit files and other sources.
Compiling it's fine but browsing files "external to proyect directory" doesn't work or again is something bad in my setup?.

7) Menu items (appart from mainmenu) don't show
undelined character, "&Edit"

8) You can show Scrollbars in TScrollinwincontrol with
visible:=true but visible:=false dont hide them.

is someone working on TAction & TAction list
components?

More later.

Regards.
Jesus Reyes A.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

Mattias Gaertner
to Jesus Reyes
Hi, I have some problems with current lazarus version (13-dec-2002 cvs updated):

All these bugs are known.
Most of them are simply because of not implemented features.

Show quoted text 11 lines
1) Some editor hotkeys doesn't work since i first tried lazarus (ctrl+F9, markers ctrl+0..9, sctrl+0..9 for example) but others does ( ctrl+s, ctrl+o). I tried to change key mappings in the past but IDE crashed and was very difficult to recover so I'm afraid to do it again ;). 2) While double clicking components on form editor or pressing "..." on events in object inspector does locate/create corresponding event code, it doesn't show the text cursor (maybe a setfocus is missing?)

I have not yet discovered a solution, how to switch via the gtk the focus from one window to another.

Show quoted text 17 lines
3) If I insert one group of buttons, create its events handlers and then wanted to change components name's all seems to work but the corresponding events handler names doesn't change (I can't express it correctly in english, sorry) I mean: a) before rename: button1CLICK(..) b) rename button1->btnChoose c) after rename: button1CLICK(..) But IMHO it should be btnChooseCLICK(). This is a problem because if you add another button the name assigned to it is: button1!, and all kinds of funny things happen. 4) TScrollingwincontrol doesn't support child controls, i mean, while you can set for ex Edit1.parent:=Grid1.Parent, edit1.setfocus fails! (sorry I don't remember error message but it was somthing related to fixed widget)

There is a 'solution' (using fixed widgets in gtkwinapiwindow.pp), but it is so slow, that I'm searching for another one.

Show quoted text 6 lines
5) I tried to install grids components in the IDE so I followed instructions on customidecomps.pas and build lazarus but doesn't work!, trying to find why i noticed that no single file on lazarus tree references customidecomps except by the file it self. I'm missing something?

It is referenced by idecomp.pp and will be used, when you add '-dCustomIDEComps' to the build lazarus dialog.

Show quoted text 31 lines
6) For the next it would be easier to download mysql_querier form http://mx.geocities.com/jesusrmx/ to see what I mean [the english problem again :(]. I was trying to find out why grid.anchors does reduce its bounds to the original created ones (look at Form1CREATE in main form) so I started to find anchors property (ctrl+click: what i nice feature!) that took me to published anchors property in grids.pas, ctrl+click again on anchors property should take me to ancestor anchors declaration but it won't. A error about it can't find stdctrls on the console appears TCodeToolManager.HandleException: "unit not found StdCtrls" at line ...., Ctrl+clicking or Ctrl+Enter on grids.pas stdctrls uses declaration wont work, Now the funny thing, if I go to the mainunit.pas editor window and tried ctrl+clicking or ctrl+enter on its stdctrls uses declaration it works!. I've added the path to grids.pas on run->compiler options->Other unit files and other sources. Compiling it's fine but browsing files "external to proyect directory" doesn't work or again is something bad in my setup?. 7) Menu items (appart from mainmenu) don't show undelined character, "&Edit" 8) You can show Scrollbars in TScrollinwincontrol with visible:=true but visible:=false dont hide them. is someone working on TAction & TAction list components?

No. Feel free to help us.

Mattias

Reply by email

Tony Maro
to Jesus Reyes: oh, about the customidecomps problem, I was doing a case sensitive full text search…
Jesus Reyes wrote
idecomp.pp has "CustomIDEComps" :) anyway after a touch and su root make clean on lazarus dir it worked properly, thanks again

I would NOT recommend making or running Lazarus as root. Chown it all to yourself and then continue from here at as yourself instead of root. There is nothing in Lazarus that requires root access.

I know there have been many times I've locked software I was developing in an endless loop. I can only imagine the damage something like that might cause as root if I was doing a filesystem operation...

-Tony

Reply by email

Jesus Reyes
to Mattias Gaertner: On Sun, 15 Dec 2002 14:19:22 +0100 I guess, you didn't put grid.pas in the same directory…

--- Mattias Gaertner
escribi�: > On Sun, 15 Dec 2002 14:19:22 +0100

Show quoted text 30 lines
Mattias Gaertner wrote: > > 6) For the next it would be easier to download > > mysql_querier form http://mx.geocities.com/jesusrmx/ > > to see what I mean [the english problem again :(]. > > I was trying to find out why grid.anchors .... The goal: You want a directory with grid.pas, which needs the LCL paths (say /home/jesus/pascal/grid/). The solution: Extend the SrcPath for this directory. - Go to Environment Options -> CodeTools Defines Editor - Add a new directory: Edit->Insert Node Below->Directory - Set Value to the directory of grid.pas (/home/jesus/pascal/grid/) - Add a new define for this directory: Edit->Insert Node as child->Define - Set 'Variable' to #SrcPath - Set 'Value As File Paths' to $(#LazarusDir)/lcl $(#SrcPath) - Exit-> Save and exit Mattias

Thanks, it works now.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

Jesus Reyes
to Jesus Reyes
Thanks, it works now.

oh, about the customidecomps problem, I was doing a case sensitive full text search looking for
"customidecomp" and i didn't find any references,
idecomp.pp has "CustomIDEComps" :) anyway after a
touch and su root make clean on lazarus dir it worked properly, thanks again

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

Mattias Gaertner
to Jesus Reyes: Hi, I have some problems with current lazarus version (13-dec-2002 cvs updated): 1) Some…
Show quoted text 22 lines
> 6) For the next it would be easier to download > mysql_querier form http://mx.geocities.com/jesusrmx/ > to see what I mean [the english problem again :(]. > I was trying to find out why grid.anchors does reduce > its bounds to the original created ones (look at > Form1CREATE in main form) so I started to find anchors > property (ctrl+click: what i nice feature!) that took > me to published anchors property in grids.pas, > ctrl+click again on anchors property should take me > to ancestor anchors declaration but it won't. A error > about it can't find stdctrls on the console appears > TCodeToolManager.HandleException: "unit not found > StdCtrls" at line ...., Ctrl+clicking or Ctrl+Enter on > grids.pas stdctrls uses declaration wont work, Now the > funny thing, if I go to the mainunit.pas editor window > and tried ctrl+clicking or ctrl+enter on its stdctrls > uses declaration it works!. > I've added the path to grids.pas on run->compiler > options->Other unit files and other sources. > Compiling it's fine but browsing files "external to > proyect directory" doesn't work or again is something > bad in my setup?.

I guess, you didn't put grid.pas in the same directory as mainunit.pas. The find declaration in the IDE (CodeTools) and the freepascal compiler are two completely different systems. The compiler must compile the RTL, FCL, LCL and your units in 4 different steps. When one unit of the RTL is modified, everything must be recompiled. The IDE is not limited in this way. It defines compiler options for each directory. That means all paths and compiler options of your project are applied to your project directory. And to _no_ other directory.
The goal: You want a directory with grid.pas, which needs the LCL paths (say /home/jesus/pascal/grid/).
The solution: Extend the SrcPath for this directory.

- Go to Environment Options -> CodeTools Defines Editor
- Add a new directory: Edit->Insert Node Below->Directory
- Set Value to the directory of grid.pas (/home/jesus/pascal/grid/)
- Add a new define for this directory: Edit->Insert Node as child->Define
- Set 'Variable' to #SrcPath
- Set 'Value As File Paths' to
$(#LazarusDir)/lcl
$(#SrcPath)
- Exit-> Save and exit

Mattias

Reply by email

Jesus Reyes
to Tony Maro: I would NOT recommend making or running Lazarus as root. Chown it all to yourself and…
Show quoted text 15 lines
I would NOT recommend making or running Lazarus as root. Chown it all to yourself and then continue from here at as yourself instead of root. There is nothing in Lazarus that requires root access. I know there have been many times I've locked software I was developing in an endless loop. I can only imagine the damage something like that might cause as root if I was doing a filesystem operation... -Tony

yes, but it was only su root to be sure that there was nothing i forgot. I always compile and run lazarus as myself :)

Jesus Reyes

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email