Welcome, Guest
Username: Password: Remember me
Components and Libraries for Graphics Development, discussions, problems and suggestions.
  • Page:
  • 1

TOPIC:

How to add new visual component in pl_ORCA 9 years 8 months ago #5768

  • GoldenFox1
  • GoldenFox1's Avatar Topic Author
  • Visitor
  • Visitor
Hi.
I want to add a new visual component in the package pl_ORCA

e.g. TD2MyTreeView = class (TD2TreeView)

Please tell me how to make it visible on the shortcut list in DesignTime?

PS: Sorry for my bad english. I use a translator.

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

How to add new visual component in pl_ORCA 9 years 8 months ago #5769

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Add the new Comp to
1) orca_scene2d.pas at initialization session
2) AllOrcaRegister.pas at procedure Register (RegisterNoIcon)
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

How to add new visual component in pl_ORCA 9 years 8 months ago #5774

  • GoldenFox1
  • GoldenFox1's Avatar Topic Author
  • Visitor
  • Visitor

sternas wrote: Add the new Comp to
1) orca_scene2d.pas at initialization session
2) AllOrcaRegister.pas at procedure Register (RegisterNoIcon)


It does not work. I did so:

In file orca_scene2d.pas at interface section
TD2MyTreeView = class(TD2TreeView)
  {My code}
  end;

In file orca_scene2d.pas at initialization section
Registerd2Objects('Trees', [TD2TreeView, TD2MyTreeView]);

In file AllOrcaRegister.pas at procedure Register:
RegisterNoIcon([
    TD2RectAnimation,
    TD2BitmapListAnimation, TD2GradientAnimation, TD2FloatKeyAnimation, TD2PathSwitcher, TD2ColorKeyAnimation, TD2PathAnimation, 
    TD2ColorAnimation, TD2FloatAnimation, TD2BitmapAnimation, TD2CalendarBox, TD2GroupBox, TD2PathCheckBox, 
    TD2CheckBox, TD2RadioButton, TD2PopupBox, TD2PopupButton, TD2CornerButton, TD2CircleButton, 
    TD2AngleButton, TD2Button, TD2PathButton, TD2ColorButton, TD2BitmapStateButton, TD2SpeedButton, 
    TD2RoundButton, TD2BitmapButton, TD2ColorPanel, TD2ComboColorBox, TD2ColorQuad, TD2GradientEdit, 
    TD2AlphaTrackBar, TD2BWTrackBar, TD2HueTrackBar, TD2ColorBox, TD2ColorPicker, TD2CompoundTrackBar, 
    TD2Calendar, TD2CompoundNumberBox, TD2CompoundTextBox, TD2CompoundPopupBox, TD2CompoundImage, TD2CompoundMemo, 
    TD2CompoundColorButton, TD2CompoundAngleBar, TD2ProgressBar, TD2CalloutPanel, TD2VertScrollBox, TD2TrackBar, 
    TD2FramedScrollBox, TD2ScrollBar, TD2ScrollBox, TD2ValueLabel, TD2AniIndicator, TD2Track,
    TD2Splitter, TD2Expander, TD2ImageControl, TD2Label, TD2FramedVertScrollBox, TD2SmallScrollBar, 
    TD2Panel, TD2TabControl, TD2DBLabel, TD2DBTextBox, TD2DBNavigator, TD2DBMemo, 
    TD2DBImage, TD2DBGrid, TD2DesignFrame, TD2Selection, TD2SelectionPoint, TD2Inspector, 
    TD2ReflectionEffect, TD2InnerGlowEffect, TD2BlurEffect, TD2ShadowEffect, TD2GlowEffect, TD2BevelEffect, 
    TD2ImageViewer, TD2DropTarget, TD2IPhoneButton, TD2Header, TD2StringGrid, TD2Grid, 
    TD2ProgressColumn, TD2ImageColumn, TD2Column, TD2PopupColumn, TD2CheckColumn, TD2HudNumberBox, 
    TD2HudScrollBar, TD2HudStringComboBox, TD2HudAlphaTrackBar, TD2HudCloseButton, TD2HudCornerButton, TD2HudSizeGrip, 
    TD2HudRadioButton, TD2HudComboColorBox, TD2HudMemo, TD2HudStringListBox, TD2HudTrack, TD2HudHorzImageListBox, 
    TD2HudSpeedButton, TD2HudWindow, TD2HudListBox, TD2HudHorzListBox, TD2HudRoundTextBox, TD2HudLabel, 
    TD2HudCircleButton, TD2HudGroupBox, TD2HudStatusBar, TD2HudPanel, TD2HudBWTrackBar, TD2HudHueTrackBar, 
    TD2HudComboTrackBar, TD2HudImageListBox, TD2HudSpinBox, TD2HudComboBox, TD2HudAngleButton, TD2HudButton, 
    TD2HudRoundButton, TD2HudCheckBox, TD2HudPopupBox, TD2HudTextBox, TD2HudComboTextBox, TD2HudTrackBar, 
    TD2HudTabControl, TD2HeaderItem, TD2ImageListBoxItem, TD2HudTabItem, TD2TabItem, TD2TreeViewItem,
    TD2ListBoxItem, TD2GridLayout, TD2Frame, TD2Layout, TD2SplitLayout, TD2ScaledLayout, 
    TD2Nond2Layout, TD2StringComboBox, TD2HorzImageListBox, TD2StringListBox, TD2ComboBox, TD2HorzListBox,
    TD2ImageListBox, TD2ListBox, TD2PlotGrid, TD2Popup, TD2MessagePopup, TD2BitmapObject, 
    TD2PathObject, TD2BrushObject, TD2Pie, TD2ScrollArrowRight, TD2Arc, TD2Path, 
    TD2PaintBox, TD2Circle, TD2BlurRoundRect, TD2BlurRectangle, TD2Rectangle, TD2ScrollArrowLeft, 
    TD2Line, TD2CalloutRectangle, TD2Text, TD2Image, TD2SidesRectangle, TD2Ellipse, 
    TD2RoundRect, TD2TextBoxClearBtn, TD2TextBox, TD2ComboTextBox, TD2NumberBox, TD2RoundTextBox, 
    TD2Memo, TD2CalendarTextBox, TD2SpinBox, TD2ComboTrackBar, TD2StatusBar, TD2ToolButton, 
    TD2ToolPathButton, TD2ToolBar, TD2TreeView, TD2SizeGrip, TD2Background, TD2CloseButton,
   TD2MyTreeView
  ]);

After recompiling pl_orca and IDE my component TD2MyTreeView visible on the shortcut list only in RunTime (e.g. in demo d2designer)
In DisignTime component on the shortcut list is not listed.

Please Log in or Create an account to join the conversation.

Last edit: by GoldenFox1.

How to add new visual component in pl_ORCA 9 years 8 months ago #5775

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
I have No other suggestion, Sir
:(
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

How to add new visual component in pl_ORCA 9 years 8 months ago #5776

  • GoldenFox1
  • GoldenFox1's Avatar Topic Author
  • Visitor
  • Visitor
I installed the pl_Orca in Lazarus 1.2.4 and everything worked as it should.

In CT after compiling IDE appears an error window:
Unable to find a program run Typhon: 
С:\codetyphon\typhon\startlazarus.exe

Maybe this is the reason?

CodeTyphon Studio 14-Jul-2014 ver 4.92
Windows 8.1 x64

Please Log in or Create an account to join the conversation.

Last edit: by GoldenFox1.

How to add new visual component in pl_ORCA 9 years 8 months ago #5777

  • Tony_O_Gallos
  • Tony_O_Gallos's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Ελεύθερο λογισμικό ή θάνατος
  • Posts: 84
  • Thank you received: 23
Hi GoldenFox1,
for your last error, you can find the reason here:
www.pilotlogic.com/sitejoom/index.php/fo...ges-in-ct-4-9-2#5723

By the way, you wrote:

In file orca_scene2d.pas at interface section

TD2MyTreeView = class(TD2TreeView)
{My code}
end;


Does it mean you inserted your code in interface instead of implementation section?

Please Log in or Create an account to join the conversation.

How to add new visual component in pl_ORCA 9 years 8 months ago #5778

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Sir, remove Lazarus and try again
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

How to add new visual component in pl_ORCA 9 years 8 months ago #5779

  • GoldenFox1
  • GoldenFox1's Avatar Topic Author
  • Visitor
  • Visitor

Tony_O_Gallos wrote: Does it mean you inserted your code in interface instead of implementation section?

Of course not!
Code is located in implementation section.
The problem was in error, wrote in my previous post.

Please Log in or Create an account to join the conversation.

How to add new visual component in pl_ORCA 9 years 8 months ago #5780

  • GoldenFox1
  • GoldenFox1's Avatar Topic Author
  • Visitor
  • Visitor

Tony_O_Gallos wrote: for your last error, you can find the reason here:
www.pilotlogic.com/sitejoom/index.php/fo...ges-in-ct-4-9-2#5723

It did not work.

sternas wrote: Sir, remove Lazarus and try again

Also not working

My solution is:
(CodeTyphon ver 4.92 32bit Windows 8.1 x64)
1. Start CT.
2. Select menu Tools->Build Typhone with Profile: Optimized IDE.
3. In the window that opens, click "Yes" button .
4. Wait until the compilation is ended.
5. In the error window click "Cancel" button.
6. Run file: C:\codetyphon\typhon\bin32\typhonstart.exe
If not change the language IDE, the error no longer occurs.
When you change the language to repeat all the steps.

After that everything is working properly.
Components in pl_Orca added and visible in DesignTime.

Thanks for all the help and ideas!

PS: Sorry for my bad english :blush:

Please Log in or Create an account to join the conversation.

Last edit: by GoldenFox1.

How to add new visual component in pl_ORCA 9 years 8 months ago #5782

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Please Sir
try to update to LAB CT ver 5.00
from CTCenter->update select "Development version"
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

How to add new visual component in pl_ORCA 9 years 8 months ago #5783

  • GoldenFox1
  • GoldenFox1's Avatar Topic Author
  • Visitor
  • Visitor

sternas wrote: Please Sir
try to update to LAB CT ver 5.00
from CTCenter->update select "Development version"


How to do it?
From CTCenter available development version 4941 only.
Version 5.0 not available :(

Please Log in or Create an account to join the conversation.

Last edit: by GoldenFox1.

How to add new visual component in pl_ORCA 9 years 8 months ago #5784

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Yes, LAB CT revision 004941 this is the next Ver 5.00 info
We release every 1-2 weeks CT LAB version for testing..
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

How to add new visual component in pl_ORCA 9 years 8 months ago #5785

  • GoldenFox1
  • GoldenFox1's Avatar Topic Author
  • Visitor
  • Visitor
After update situation worsened!

As before, after compiling IDE appears an error window:
Unable to find a program run Typhon: 
С:\codetyphon\typhon\typhonstart.exe
But after run file: C:\codetyphon\typhon\bin32\typhonstart.exe new error occurs:
Unable to create file: "С:\codetyphon\typhon\bin32\typhon.exe

I want back CT 4.9.2

Please Log in or Create an account to join the conversation.

Last edit: by GoldenFox1.

How to add new visual component in pl_ORCA 9 years 8 months ago #5786

  • Tony_O_Gallos
  • Tony_O_Gallos's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Ελεύθερο λογισμικό ή θάνατος
  • Posts: 84
  • Thank you received: 23
Hi GoldenFox1,

for the first point, it is the same as my last reply: harcoded value of "startlazarus.exe" instead of "typhonstart.exe".

for the second point, did you start "typhonstart.exe" as adminstrator ?
It seems it is a problem of access rights.

For more details on the job done by "TyphonStart.exe", please have a look at the abstract on the top of the file
"c:\codetyphon\typhon\ide\typhonstartmanager.pas"

Please Log in or Create an account to join the conversation.

Last edit: by Tony_O_Gallos.

How to add new visual component in pl_ORCA 9 years 8 months ago #5787

  • GoldenFox1
  • GoldenFox1's Avatar Topic Author
  • Visitor
  • Visitor

Tony_O_Gallos wrote: Hi GoldenFox1,
for the second point, did you start "typhonstart.exe" as adminstrator ?
It seems it is a problem of access rights.


Yes, i start "typhonstart.exe" as adminstrator.
But the problem is that the file "С:\codetyphon\typhon\bin32\typhon.exe" is executed when there is an attempt to rewrite. Therefore it can not be rewritten.
Apparently before start "typhonstart.exe" need stop execute process "typhon.exe".
But it does not matter: the initial error persists! :(

The problem maybe to be on the incorrect path to find file "typhonstart.exe".

Please Log in or Create an account to join the conversation.

Last edit: by GoldenFox1.
  • Page:
  • 1