Sign in Join

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

Mailing lists / lazarus / 2011-09

Another IDE strange behavior

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Rafael Tuim Elias

Hi all

i found another strange behavior in Lazarus IDE.
To reproduce follow this steps.

1 - Create a new application
2 - Insert a DataModule in project (File -> New .....) 3 - In source editor, select the unit2 sheet (DataModule Unit) 4 - Minimize the source editor
5 - Click in Form1 area
6 - In component pallete select Standard/Button and try to put in Form1.

When i click in TButton component, it disapear, getting only DataModule components (MainMenu, PopUpMenu, ActionList) in Standard Pallete.

I'm using Lazarus 0.9.31 + FPC 2.5.1 + Win32 from snapshots

best regards

Rafael Tuim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110928/b2eb4bcc/attachment.html>

Reply by email

Juha Manninen
to Rafael Tuim Elias

2011/9/28 Rafael Tuim Elias

Show quoted text 5 lines
When i click in TButton component, it disapear, getting only DataModule components (MainMenu, PopUpMenu, ActionList) in Standard Pallete. I'm using Lazarus 0.9.31 + FPC 2.5.1 + Win32 from snapshots

Can't reproduce here. The contents of component palette change correctly when changing between Form1 and DataModule. I can also add TButton to Form1.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110928/80dc2e36/attachment.html>

Reply by email

Flávio Etrusco
to Rafael Tuim Elias: Hi all i found another strange behavior in Lazarus IDE. To reproduce follow this steps. 1…

2011/9/28 Rafael Tuim Elias :

Show quoted text 15 lines
Hi all i found another strange behavior in Lazarus IDE. To reproduce follow this steps. 1 - Create a new application 2 - Insert a DataModule in project (File -> New .....) 3 - In source editor, select the unit2 sheet (DataModule Unit) 4 - Minimize the source editor 5 - Click in Form1 area 6 - In component pallete select Standard/Button and try to put in Form1. When i click in TButton component, it disapear, getting only DataModule components (MainMenu, PopUpMenu, ActionList) in Standard Pallete. I'm using Lazarus 0.9.31 + FPC 2.5.1 + Win32 from snapshots best regards Rafael Tuim --

I didn't try to reproduce, but I think this could have been introduced by this: http://bugs.freepascal.org/view.php?id=19727 There is already a work-around for a "very similar" case: http://bugs.freepascal.org/view.php?id=20210

I "guess" I shouldn't be using DoShowDesignerFormOfCurrentSrc, but I couldn't any method to get the last selected designer. This:

procedure TMainIDE.ComponentPaletteClassSelected(Sender: TObject);
begin
  if TheControlSelection.SelectionFormnil then
    ShowDesignerForm(TheControlSelection.SelectionForm);
end;

isn't much better, since just focusing the form doesn't select a component.

-Fl?vio

Reply by email

Rafael Tuim Elias
to Flávio Etrusco

When i alternate DataModule/Form1 the contents of component palette change correctly, but whether i click on TButton and datamodule unit are selected in source editor, components to form this disapear.

but it's not a problem to me, only guess a strange behavior.

sorry my googlenglish :p
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110929/4622670c/attachment.html>

Reply by email

Juha Manninen
to Rafael Tuim Elias

2011/9/29 Rafael Tuim Elias

When i alternate DataModule/Form1 the contents of component palette change correctly, but whether i click on TButton and datamodule unit are selected in source editor, components to form this disapear.

I still can't reproduce on Windows 7 with Lazarus trunk + FPC 2.4.4.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110929/0f1e53de/attachment.html>

Reply by email