[VW 7.10.1] Is it possible to have a resizable dialog ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[VW 7.10.1] Is it possible to have a resizable dialog ?

Mark Pirogovsky-3
Hello All,
Does anyone knows any way to open a Dialog in VW and make it resizable
on Windows?

Any clue is greatly appreciated.

--
Mark
____________________________________________________________
Kaiser Permanente® FEHB
A Leader in Quality Care With the Lowest Cost HMO Plan. Learn More!
http://thirdpartyoffers.netzero.net/TGL3241/5446c2ccee23642cc6608st03vuc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [VW 7.10.1] Is it possible to have a resizable dialog ?

Kooyman, Les
I may regret weighing in on a GUI question, but once in another life as we say I was charged with creating a dialog as a component of an end-user-programmable business object system. The challenge was that at design time we wanted you to be able to resize the dialog window, but at runtime, one of the window class specifications for dialogs (on MS WIndows) was that they not have a resizable window border.

Times change and Windows standards may move on, but it's for this reason that I'd think what you ask may be other than commonplace, since it contradicts how dialogs are supposed to function in Windows. That said, any modification to get VisualWorks dialogs to behave this way would make them definitely not standard for the environment.

________________________________________
From: [hidden email] [[hidden email]] on behalf of Mark Pirogovsky [[hidden email]]
Sent: Tuesday, October 21, 2014 1:32 PM
To: VWNC
Subject: [vwnc] [VW 7.10.1] Is it possible to have a resizable dialog ?

Hello All,
Does anyone knows any way to open a Dialog in VW and make it resizable
on Windows?

Any clue is greatly appreciated.

--
Mark
____________________________________________________________
Kaiser Permanente® FEHB
A Leader in Quality Care With the Lowest Cost HMO Plan. Learn More!
http://thirdpartyoffers.netzero.net/TGL3241/5446c2ccee23642cc6608st03vuc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [VW 7.10.1] Is it possible to have a resizable dialog ?

Henrik Høyer
Mark Pirogovsky wrote: "since it contradicts how dialogs are supposed to function in Window"

That is not true anymore (since Windows Vista). Today most dialogs are resizable. Technically you should consider them "normal (but modal) windows".

I don't know about the implementation in VW, but all modern development environment (on Windows) have implemented support for this.

--
Henrik Høyer
Chief Software Architect
[hidden email] • (+45) 4029 2092
Tigervej 27 • 4600 Køge
www.sPeople.dk • (+45) 7023 7775

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Kooyman, Les
Sent: tirsdag 21. oktober 2014 22:51
To: Mark Pirogovsky; VWNC
Subject: Re: [vwnc] [VW 7.10.1] Is it possible to have a resizable dialog ?

I may regret weighing in on a GUI question, but once in another life as we say I was charged with creating a dialog as a component of an end-user-programmable business object system. The challenge was that at design time we wanted you to be able to resize the dialog window, but at runtime, one of the window class specifications for dialogs (on MS WIndows) was that they not have a resizable window border.

Times change and Windows standards may move on, but it's for this reason that I'd think what you ask may be other than commonplace, since it contradicts how dialogs are supposed to function in Windows. That said, any modification to get VisualWorks dialogs to behave this way would make them definitely not standard for the environment.

________________________________________
From: [hidden email] [[hidden email]] on behalf of Mark Pirogovsky [[hidden email]]
Sent: Tuesday, October 21, 2014 1:32 PM
To: VWNC
Subject: [vwnc] [VW 7.10.1] Is it possible to have a resizable dialog ?

Hello All,
Does anyone knows any way to open a Dialog in VW and make it resizable on Windows?

Any clue is greatly appreciated.

--
Mark
____________________________________________________________
Kaiser Permanente® FEHB
A Leader in Quality Care With the Lowest Cost HMO Plan. Learn More!
http://thirdpartyoffers.netzero.net/TGL3241/5446c2ccee23642cc6608st03vuc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [VW 7.10.1] Is it possible to have a resizable dialog ?

Steven Kelly
In reply to this post by Mark Pirogovsky-3
I wrote a WindowResizeCorner, starting from Aragon.Widget's
Resizer(View|Spec|Controller). I lost the source many years ago to a parcel
source bug, but the main part is to replace the ResizerController's method
with this:

doResize
        | win windowDecorationRectangle bounds box decorationExtent newBounds
|
        win := self view topComponent.
        windowDecorationRectangle := OSSystemSupport concreteClass new
windowDecorationRectangle.
        bounds := win globalOrigin extent: win extent.
        box := bounds expandedBy: windowDecorationRectangle.
        decorationExtent := box extent - bounds extent.
        box := Screen default
                        resizeRectangle: box
                        minimumExtent: win minimumSize + decorationExtent
                        resizeIncrement: 1@1
                        boundedBy:
                                (box origin extent: win maximumSize +
decorationExtent)
                        whileButton: 0
                        isDown: true.
        newBounds := box insetBy: windowDecorationRectangle.
        win displayBox: newBounds.

We call this in most of our dialogs:
ApplicationModel>>addResizeCorner
        "Should be sent in postBuild* or preOpen (for dialogs)"
        builder add: WindowResizeCornerSpec new

The spec has #hasInherentSize and its class has a #defaultLayout to put it
bottom right. It thus shows up as a little icon in the bottom right corner of
the dialog, and dragging it resizes the dialog window.

Steve

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Mark Pirogovsky
> Sent: Tuesday, October 21, 2014 11:32 PM
> To: VWNC
> Subject: [vwnc] [VW 7.10.1] Is it possible to have a resizable dialog ?
>
> Hello All,
> Does anyone knows any way to open a Dialog in VW and make it resizable
> on Windows?
>
> Any clue is greatly appreciated.
>
> --
> Mark
> ____________________________________________________________
> Kaiser Permanente® FEHB
> A Leader in Quality Care With the Lowest Cost HMO Plan. Learn More!
> http://thirdpartyoffers.netzero.net/TGL3241/5446c2ccee23642cc6608st03vu
> c
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [VW 7.10.1] Is it possible to have a resizable dialog ?

Antony Blakey-5
71192: "Modal dialogs should have an option to be resizable"

> On 22 Oct 2014, at 20:23, Steven Kelly <[hidden email]> wrote:
>
> I wrote a WindowResizeCorner, starting from Aragon.Widget's
> Resizer(View|Spec|Controller). I lost the source many years ago to a parcel
> source bug, but the main part is to replace the ResizerController's method
> with this:
>
> doResize
> | win windowDecorationRectangle bounds box decorationExtent newBounds
> |
> win := self view topComponent.
> windowDecorationRectangle := OSSystemSupport concreteClass new
> windowDecorationRectangle.
> bounds := win globalOrigin extent: win extent.
> box := bounds expandedBy: windowDecorationRectangle.
> decorationExtent := box extent - bounds extent.
> box := Screen default
> resizeRectangle: box
> minimumExtent: win minimumSize + decorationExtent
> resizeIncrement: 1@1
> boundedBy:
> (box origin extent: win maximumSize +
> decorationExtent)
> whileButton: 0
> isDown: true.
> newBounds := box insetBy: windowDecorationRectangle.
> win displayBox: newBounds.
>
> We call this in most of our dialogs:
> ApplicationModel>>addResizeCorner
> "Should be sent in postBuild* or preOpen (for dialogs)"
> builder add: WindowResizeCornerSpec new
>
> The spec has #hasInherentSize and its class has a #defaultLayout to put it
> bottom right. It thus shows up as a little icon in the bottom right corner of
> the dialog, and dragging it resizes the dialog window.
>
> Steve
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On
>> Behalf Of Mark Pirogovsky
>> Sent: Tuesday, October 21, 2014 11:32 PM
>> To: VWNC
>> Subject: [vwnc] [VW 7.10.1] Is it possible to have a resizable dialog ?
>>
>> Hello All,
>> Does anyone knows any way to open a Dialog in VW and make it resizable
>> on Windows?
>>
>> Any clue is greatly appreciated.
>>
>> --
>> Mark
>> ____________________________________________________________
>> Kaiser Permanente&#174; FEHB
>> A Leader in Quality Care With the Lowest Cost HMO Plan. Learn More!
>> http://thirdpartyoffers.netzero.net/TGL3241/5446c2ccee23642cc6608st03vu
>> c
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

Antony Blakey
--------------------------
Ph: +61 438 840 787

Every hundred years, all new people.


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc