[Cuis-dev] prevent resizing

Gerald Klix cuis.01 at klix.ch
Wed Aug 21 09:12:33 PDT 2024


Hi Mark, Hi Juan,

It can be done by removing the adjuster morphs.
Please see the attached file-out of FixedSizeSystemWindow.

You can use this code snippet to test it:
FixedSizeSystemWindow editText: (TextModel withText: 'Test')  label: 
'Test' wrap: false

@Juan; IHMO it makes sense to refactor the adjuster creation,
after all the window's buttons are already created in a separate method.
Please see the attached change set, for Cuis/Haver 7.0, which
should be easily portable to Cuis7.1.


HTH,
Gerald



On 8/21/24 4:10 PM, Juan Vuletich via Cuis-dev wrote:
> On 8/21/2024 10:55 AM, Mark Volkmann via Cuis-dev wrote:
>> Is there an easy way to configure a subclass of SystemWindow from 
>> being resized by the user by dragging a corner or edge?
>
> Not that I remember. Some hacking is in order.
>
>>
>> While looking for a solution to this, I ran across a spelling error 
>> in a method name. BoxedMorph defines the method ensureMinimimExtent, 
>> but it should be ensureMinimumExtent.
>
> Thanks! Just pushed an update (with your initials) to GitHub.
>
>>
>> -- 
>> R. Mark Volkmann
>> Object Computing, Inc.
>>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: FixedSizeSystemWindow.st
Type: application/vnd.sailingtracker.track
Size: 695 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240821/0aab466f/attachment.st>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: [r7.0]-6457-CleanerWindowEdgeAdjusterCreation-GeraldKlix-2024Aug21-18h03m-KLG.001.cs.st
Type: application/vnd.sailingtracker.track
Size: 1646 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240821/0aab466f/attachment-0001.st>


More information about the Cuis-dev mailing list