SRL Archive - S.M.A.R.T. Questions and Answers.

Changing SMART Size


vanlacke

2013-07-21 16:37:25

Hello :)

Huge lurker here..

I've been looking through the includes trying to find a way to change SMART size however I was unable to find a way to set those parameters. Can someone please tell me how?

Thanks in advance if someone is able to help. :)

Sin

2013-07-21 16:52:14

Change the SMART window size? Go through the SMART java file (I believe?) and change setResizeable(true).

Brandon

2013-07-21 17:00:26

From: Sin
Change the SMART window size? Go through the SMART java file (I believe?) and change setResizeable(true).



Oh you bad mama jamma! No modifying ;) Doing that will actually throw an exception. See line 80: https://github.com/BenLand100/SMART/blob/master/src/ClientStub.java


To resize Smart:


Open SmartParams.Simba. Where you see:


{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, InitSeq, '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, InitSeq, '', '', '');
{$ENDIF}

Change the 765, 553 to whatever size you want.


Then Open SRL.Simba and change:
SetTargetArray(SmartImageArray, 765, 553);

to whatever size you want.

vanlacke

2013-07-21 17:03:21

From: Brandon
Oh you bad bad Sin! No modifying ;) Doing that will actually throw an exception. See line 80: https://github.com/BenLand100/SMART/blob/master/src/ClientStub.java


Open SmartParams.Simba.

Where you see:


{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, InitSeq, '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, InitSeq, '', '', '');
{$ENDIF}

Change the 765, 553 to whatever size you want.


Then Open SRL.Simba and change:
SetTargetArray(SmartImageArray, 765, 553);

to whatever size you want.


OMG! I have been coding with Simba not being very wide - if it had been a bit wider I would have noticed that. Thanks so much!

Lesson learned, scroll to right :duh:

Sin

2013-07-21 17:14:35

From: Brandon
Oh you bad mama jamma! No modifying ;) Doing that will actually throw an exception. See line 80: https://github.com/BenLand100/SMART/blob/master/src/ClientStub.java


To resize Smart:


Open SmartParams.Simba. Where you see:


{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, InitSeq, '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, InitSeq, '', '', '');
{$ENDIF}

Change the 765, 553 to whatever size you want.


Then Open SRL.Simba and change:
SetTargetArray(SmartImageArray, 765, 553);

to whatever size you want.


Ahahaha didn't see that xD