Jump to content

Region Slider Panel


Recommended Posts

  • 4 months later...

Looks great, but when I use the component, I can't see nothing (in Web mode). I have D2010, I change xxxx15.dcp for xxxx14.dcp, add the route for UniRegionPanel.bpl, any idea?

best regards. (Sorry for my bad English)

post-722-0-06216000-1340719452_thumb.jpg

Link to comment
Share on other sites

  • 4 weeks later...
  • Administrators

There is nothing special for XE2 or other delphi versions:

 

package UniRegionPanelDXE2;

{$R *.res}
{$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
{$ALIGN 8}
{$ASSERTIONS ON}
{$BOOLEVAL OFF}
{$DEBUGINFO ON}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS ON}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION OFF}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO ON}
{$SAFEDIVIDE OFF}
{$STACKFRAMES ON}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST OFF}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$DEFINE DEBUG}
{$ENDIF IMPLICITBUILDING}
{$IMPLICITBUILD ON}

requires
 uniGUI16;

contains
 UniRegionPanel in 'UniRegionPanel.pas';

end.

 

I successfully complied and ran the example under XE2 using above DPR file.

Link to comment
Share on other sites

In Demo app set ExtRoot->"[ext]\"

 

Done, in demo run well, but when I add the component to my project shows error "Access Violation" (attached image), I'm using Delphi 2010, Unigui v.89, any idea?

Thanks

Best Regards

post-722-0-81787300-1343254242_thumb.jpg

Link to comment
Share on other sites

You need to set the parent region property

Thank you for this component.

There is a bug in this component: each time the collapse/expand button is pressed (on any layout: north, south, east or west), the center region becomes smaller (on its length and width) so all other regions becomes bigger.

This is more evident if you collapse/expand several times.

Could you please revise it.

Link to comment
Share on other sites

  • Administrators

Thank you for this component.

There is a bug in this component: each time the collapse/expand button is pressed (on any layout: north, south, east or west), the center region becomes smaller (on its length and width) so all other regions becomes bigger.

This is more evident if you collapse/expand several times.

Could you please revise it.

 

I can't reproduce this issue after say, 10-20 times. Of course, I'm using it with Ext JS 4 maybe it is an Ext 3 issue.

  • Upvote 1
Link to comment
Share on other sites

You need to set the parent region property

I added a uniregionpanel and have aligned AlClient, over uniregionpanel1 added other uniregionpanel and set region at north,regionable, regionsplit and regiontitlecolapse in true, set uniregionpanel1 like regionparent, when run the application show this message "Access violation at address 0076E661 in module 'StandAloneISAPI.exe'. Read of address 000003D0." any idea?

Thank you

Best Regards

Link to comment
Share on other sites

  • Administrators

I added a uniregionpanel and have aligned AlClient, over uniregionpanel1 added other uniregionpanel and set region at north,regionable, regionsplit and regiontitlecolapse in true, set uniregionpanel1 like regionparent, when run the application show this message "Access violation at address 0076E661 in module 'StandAloneISAPI.exe'. Read of address 000003D0." any idea?

Thank you

Best Regards

 

Debug source code of component to see where the issue is.

Link to comment
Share on other sites

Debug source code of component to see where the issue is.

When the error aper I press the button Break and send me to this line "Self.ExtPanel.AddTo(RegionParent.ExtPanel.Items);" in uniregionpanel.pas

Note: the error appears when called the form.

Any solution? thanks for all, best regards.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

¿where do we have to add those lines?

Open UniRegionPanel project, in UniRegionPanel.pas locate this procedure

procedure TUniRegionPanel.Loaded;

 

and looking for

 Self.ExtPanel.AddTo(RegionParent.ExtPanel.Items);

, and add this line

if Assigned(RegionParent) then

(this line is before)

 

Best Regards

Link to comment
Share on other sites

  • 1 month later...

Open UniRegionPanel project, in UniRegionPanel.pas locate this procedure

procedure TUniRegionPanel.Loaded;

 

and looking for

 Self.ExtPanel.AddTo(RegionParent.ExtPanel.Items);

, and add this line

if Assigned(RegionParent) then

(this line is before)

 

Best Regards

 

Gracias, Carlos.

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

Hi,

 

I put OnResize property for this problem.

You can you this property for solve this.

 

This Example When panel resized My UniXDBGrid1 on then panel resized and fit to parent xPanel.

 

Procedure TFPSample.xpRightResize(This: TExtBoxComponent; AdjWidth, AdjHeight, RawWidth, RawHeight: Integer);
Begin
 UniXDBGrid1.SetBounds( 0, 0, AdjWidth, AdjHeight ) ;
End ;

 

Best Regards

 

TExtBoxComponent need to use which unit?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...