| View previous topic :: View next topic |
| Author |
Message |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
|
| Back to top |
|
 |
kokkoras Senior Member

Joined: 12 Mar 2005 Posts: 250 Location: Thessaloniki, Greece
|
Posted: 26/03/06 00:11 Post subject: |
|
|
Thank you!
If you are still in good mood please consider adding a method to equally size selected nodes (like those for alignment you added in 2.5).
size widths of selected to widest/narrowest node
size heights of selected to tallest/shortest node
Thanks again for improving such a great component in such a ...burst pace.
_________________ Fotis |
|
| Back to top |
|
 |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 120 Location: Germany
|
Posted: 26/03/06 07:13 Post subject: |
|
|
Also many thanks.
Will test with the background-transparency.
Time to port!
_________________ Hans-Peter |
|
| Back to top |
|
 |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 120 Location: Germany
|
Posted: 26/03/06 09:25 Post subject: |
|
|
Made some test with background-transparency.
Can use it like in sgdemo and make the underlying label visible.
The question of the plugin-user goes beyond, because he want transparency through the form. Since form transparency is supported
by delphi7, I made the sgdemo work there with setting the form to transparent (not TSimpleGraph). But seems to work only when that window is the top-level window (and higher windows-versions). But a plugin window is a child of the host-app and does not work that way. Also when I use delphi7 I still have problems with the hint-shadows, which does not get reset.
So I could provide somewhat like an background-layer with a seperate object behind TSimpleGraph using its transparent-property. I will stay on delphi5 (hints) for now and will check which use can make sense.
_________________ Hans-Peter |
|
| Back to top |
|
 |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 120 Location: Germany
|
Posted: 26/03/06 11:52 Post subject: |
|
|
Is it intentional behaviour or a bug that LoadFromFile/LoadFromStream does set the commandmode to cmEdit?
It should be possible to use them in 'cmViewOnly' I think.
(MergeFromFile/MergFromStream does not set anything.)
_________________ Hans-Peter |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 26/03/06 16:58 Post subject: |
|
|
| HPW wrote: | Made some test with background-transparency.
Can use it like in sgdemo and make the underlying label visible.
The question of the plugin-user goes beyond, because he want transparency through the form. Since form transparency is supported
by delphi7, I made the sgdemo work there with setting the form to transparent (not TSimpleGraph). But seems to work only when that window is the top-level window (and higher windows-versions). But a plugin window is a child of the host-app and does not work that way. Also when I use delphi7 I still have problems with the hint-shadows, which does not get reset.
So I could provide somewhat like an background-layer with a seperate object behind TSimpleGraph using its transparent-property. I will stay on delphi5 (hints) for now and will check which use can make sense. |
Taransparency in SimpleGrpah is achieved by drawing parent's canvas on the SimpleGraph's canvas. Therefore, form transparency is not supported.
Regarding Delphi 7, according to my experiences, WinXP Theme support in Delphi has lot of bugs.
_________________ Kambiz |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 26/03/06 17:00 Post subject: |
|
|
| HPW wrote: | Is it intentional behaviour or a bug that LoadFromFile/LoadFromStream does set the commandmode to cmEdit?
It should be possible to use them in 'cmViewOnly' I think.
(MergeFromFile/MergFromStream does not set anything.) |
Both behaviors are intentional. The developer can change the command mode after loading the graph (look at SGDemo).
_________________ Kambiz |
|
| Back to top |
|
 |
kokkoras Senior Member

Joined: 12 Mar 2005 Posts: 250 Location: Thessaloniki, Greece
|
Posted: 26/03/06 22:43 Post subject: |
|
|
| Kambiz wrote: | | Transparency in SimpleGrpah is achieved by drawing parent's canvas on the SimpleGraph's canvas. |
This is dirty!!
_________________ Fotis |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 27/03/06 11:15 Post subject: |
|
|
| kokkoras wrote: | | Kambiz wrote: | | Transparency in SimpleGrpah is achieved by drawing parent's canvas on the SimpleGraph's canvas. |
This is dirty!!  |
Any better solution?
_________________ Kambiz |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 27/03/06 11:19 Post subject: |
|
|
| HPW wrote: | Is it intentional behaviour or a bug that LoadFromFile/LoadFromStream does set the commandmode to cmEdit?
It should be possible to use them in 'cmViewOnly' I think.
(MergeFromFile/MergFromStream does not set anything.) |
I thought more about your question. What do you think about the following rules?
- Clear sets CommandMode to cmEdit
- LoadFromStream sets CommandMode to cmViewOnly
- MergeFromStream sets CommandMode to cmEdit
_________________ Kambiz |
|
| Back to top |
|
 |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 120 Location: Germany
|
Posted: 27/03/06 11:25 Post subject: |
|
|
| Quote: |
I thought more about your question. What do you think about the following rules?
Clear sets CommandMode to cmEdit
LoadFromStream sets CommandMode to cmViewOnly
MergeFromStream sets CommandMode to cmEdit
|
By default I would none of the commands change something on CommandMode.
Then it would be the responsibility of the developer how it is used.
Just my 2 cents!
_________________ Hans-Peter |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 27/03/06 11:35 Post subject: |
|
|
| HPW wrote: | By default I would none of the commands change something on CommandMode.
Then it would be the responsibility of the developer how it is used. |
Some developers are not responsible. JK
It causes a compatibility problem.
_________________ Kambiz |
|
| Back to top |
|
 |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 120 Location: Germany
|
Posted: 27/03/06 11:54 Post subject: |
|
|
| Quote: | | Some developers are not responsible. |
Only some?
Do whatever you want and what is needed.
_________________ Hans-Peter |
|
| Back to top |
|
 |
kokkoras Senior Member

Joined: 12 Mar 2005 Posts: 250 Location: Thessaloniki, Greece
|
Posted: 27/03/06 11:57 Post subject: |
|
|
| Kambiz wrote: | | kokkoras wrote: | | Kambiz wrote: | | Transparency in SimpleGrpah is achieved by drawing parent's canvas on the SimpleGraph's canvas. |
This is dirty!!  |
Any better solution?  |
IMHO, it's a minor issue (to be honnest, it's a non-issue). I think your trick serves those with such needs well.
_________________ Fotis |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 27/03/06 12:10 Post subject: |
|
|
What do you think about having OnObjectMouseEnter and OnObjectMouseLeave events?
_________________ Kambiz |
|
| Back to top |
|
 |
|