[vwnc] Re-2: DragAndDrop with datasets

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

[vwnc] Re-2: DragAndDrop with datasets

Frank Urbach
Hi Reinout,

many thanks for the tip. Did you ever tried this with vwnc 7.6.
There are some glitches within changing the column width by users. I get a DNU in
#poll>>
  ...
 self sensor pollForActivity.

This a little bit deep in the heard of vw and today I'm not able to solve this problem by myself.
Hope somebody could give me an advice.

Cheers,

Frank



-------- Original Message --------
Subject: Re: [vwnc] DragAndDrop with datasets (08-Sep-2008 17:59)
From:    Reinout Heeck <[hidden email]>
To:      [hidden email]

>
> On Sep 7, 2008, at 7:42 PM, Frank Urbach wrote:
>
> > Hi all,
> >
> > I want drag one row from a dataset-widget and drop it into another  >
> > dataset-widget. I didn't see any hint where to implement this. Any  >
> > pointer is very appreciate.
>
> The standard DataSet widget can only be configured as a drop target,  not
> as a drag source.
>
> If you load the parcel 'Aragon Widgets' (from the contributed/Aragon/
> Parcels directory of your VW installation) you will get another  DataSet
> widget added to the UIPainter's tool pallette.
>
> This one ('New DataSet') will have an additional pane for drag source  
> configuration.
>
>
> HTH,
>
> Reinout
> -------
>
> >
> >
> > Thanks in advance
> >
> > Frank
> > ---
> > Edelstahlwerke Schmees GmbH
> > Geschäftsleitung Clemens Schmees
> > Sitz D-01796 Pirna
> > Handelsregister Dresden HRB 54
> > www.schmees.com
> >
> > _______________________________________________
> > 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


To: [hidden email]
Cc: [hidden email]

Edelstahlwerke Schmees GmbH
Geschäftsleitung Clemens Schmees
Sitz D-01796 Pirna
Handelsregister Dresden HRB 54
E-Mail: [hidden email]
WEB:     www.schmees.com
 
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
 
This e-mail may contain confidental and/or privileged information. If you are not intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



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

Re: [vwnc] Re-2: DragAndDrop with datasets

Reinout Heeck-2
Frank Urbach wrote:
> Hi Reinout,
>
> many thanks for the tip. Did you ever tried this with vwnc 7.6.
>  
Using the new dataset: yes.
Using at as a drag source: no.

> There are some glitches within changing the column width by users. I get a DNU in
> #poll>>
>   ...
>  self sensor pollForActivity.
>  
Ah. We have a gazillion patches on the new dataset, but most of these
are for extending functionality -- I expected the parcel would work out
of the box for you.


However I did find we override #poll with the following:

poll
    "Announce that we are iterating through the polling loop. If
    there has been no input for a significant time, wait on a semaphore"

    self view isOpen
        ifFalse: ["if the view was closed or the top component is closed"
                WindowManager closedWindowSignal
                    raiseRequestFrom: self view topComponent controller].
    self view topComponent windowManager processNextEvent


it seems the method comment above is not entirely correct anymore ;-)


Let us know if you encounter other problems,

R
-

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

Re: [vwnc] Re-2: DragAndDrop with datasets

Henrik Sperre Johansen
In reply to this post by Frank Urbach
Polling is basically deprecated in favor of the event-system for
"modern" widgets, AFAIK.
I'm not too proud of it, but in the spirit of the simplest thing that
could work, I reintroduced it in our application.

in handleEvent: of PollingSelectionTracker:
["controller poll.
    Polling removed from API, quick hack to make newdatasets rows resizable"
    "Added a delay which reduces CPU utilization, but still leaves
animation quite smooth. No optimal, but works."
    (Delay forMicroseconds: 7000) wait.
    controller sensor anyButtonPressed]

as the condition for the whileTrue loop.

Cheers,
Henry

Frank Urbach wrote:

> Hi Reinout,
>
> many thanks for the tip. Did you ever tried this with vwnc 7.6.
> There are some glitches within changing the column width by users. I get a DNU in
> #poll>>
>   ...
>  self sensor pollForActivity.
>
> This a little bit deep in the heard of vw and today I'm not able to solve this problem by myself.
> Hope somebody could give me an advice.
>
> Cheers,
>
> Frank
>
>
>
> -------- Original Message --------
> Subject: Re: [vwnc] DragAndDrop with datasets (08-Sep-2008 17:59)
> From:    Reinout Heeck <[hidden email]>
> To:      [hidden email]
>
>  
>> On Sep 7, 2008, at 7:42 PM, Frank Urbach wrote:
>>
>>    
>>> Hi all,
>>>
>>> I want drag one row from a dataset-widget and drop it into another  >
>>> dataset-widget. I didn't see any hint where to implement this. Any  >
>>> pointer is very appreciate.
>>>      
>> The standard DataSet widget can only be configured as a drop target,  not
>> as a drag source.
>>
>> If you load the parcel 'Aragon Widgets' (from the contributed/Aragon/
>> Parcels directory of your VW installation) you will get another  DataSet
>> widget added to the UIPainter's tool pallette.
>>
>> This one ('New DataSet') will have an additional pane for drag source  
>> configuration.
>>
>>
>> HTH,
>>
>> Reinout
>> -------
>>
>>    
>>> Thanks in advance
>>>
>>> Frank
>>> ---
>>> Edelstahlwerke Schmees GmbH
>>> Geschäftsleitung Clemens Schmees
>>> Sitz D-01796 Pirna
>>> Handelsregister Dresden HRB 54
>>> www.schmees.com
>>>
>>> _______________________________________________
>>> 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
>>    
>
>
> To: [hidden email]
> Cc: [hidden email]
>
> Edelstahlwerke Schmees GmbH
> Geschäftsleitung Clemens Schmees
> Sitz D-01796 Pirna
> Handelsregister Dresden HRB 54
> E-Mail: [hidden email]
> WEB:     www.schmees.com
>  
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>  
> This e-mail may contain confidental and/or privileged information. If you are not intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
>
>
>
> _______________________________________________
> 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
|

[vwnc] Aragon widgets need updating - was RE: Re-2: DragAndDrop with datasets

Terry Raymond
In reply to this post by Reinout Heeck-2
It seems that the Aragon widgets have not been updated
for several years. Considering that there are several of
us that continue to use them, particularly the datatset,
maybe we should put together a plan to update them.

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Reinout Heeck
> Sent: Tuesday, September 09, 2008 7:21 AM
> To: [hidden email]
> Subject: Re: [vwnc] Re-2: DragAndDrop with datasets
>
> Frank Urbach wrote:
> > Hi Reinout,
> >
> > many thanks for the tip. Did you ever tried this with vwnc 7.6.
> >
> Using the new dataset: yes.
> Using at as a drag source: no.
>
> > There are some glitches within changing the column width by users. I get a DNU in
> > #poll>>
> >   ...
> >  self sensor pollForActivity.
> >
> Ah. We have a gazillion patches on the new dataset, but most of these
> are for extending functionality -- I expected the parcel would work out
> of the box for you.
>
>
> However I did find we override #poll with the following:
>
> poll
>     "Announce that we are iterating through the polling loop. If
>     there has been no input for a significant time, wait on a semaphore"
>
>     self view isOpen
>         ifFalse: ["if the view was closed or the top component is closed"
>                 WindowManager closedWindowSignal
>                     raiseRequestFrom: self view topComponent controller].
>     self view topComponent windowManager processNextEvent
>
>
> it seems the method comment above is not entirely correct anymore ;-)
>
>
> Let us know if you encounter other problems,
>
> R
> -
>
> _______________________________________________
> 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: [vwnc] Aragon widgets need updating - was RE: Re-2: DragAndDropwith datasets

Christian Haider
In reply to this post by Reinout Heeck-2
+1 (and a small contribution)

I use the NewDataSet in my app.
Because 7.6 introduced a displaying bug, I tried to replace it with the new Grid (preview) and failed miserably.
Then I had to hunt down the display bug:

Some text fields of my NewDataSet didnt display their content anymore.
The problem boils down to the new version of Rectangle>>#center which returns a "true" center point (with Floats etc) instead of an Integer Point.
This causes the primitive <976> to fail. Unfortunately, the backup code in ScreenGraphicsContext>>#primDisplayCharacterOfIndex:at: is not correct and the charcter is clipped away -> the text is not drawn.

To patch the issue, I overrode (yuk) Aragon.NDSRenderer4TextFields>>#display:in:on: with the attached fileOut. This rounds one problematic coordinate of a center.
I think that there will be more problems like this (I didnt check), since #center is used also in several other places.

Cheers,
        Christian

> -----Ursprüngliche Nachricht-----
> Von: [hidden email]
> [mailto:[hidden email]] Im Auftrag von Terry Raymond
> Gesendet: Dienstag, 9. September 2008 15:15
> An: 'Reinout Heeck'; [hidden email]
> Betreff: [vwnc] Aragon widgets need updating - was RE: Re-2:
> DragAndDropwith datasets
>
> It seems that the Aragon widgets have not been updated
> for several years. Considering that there are several of
> us that continue to use them, particularly the datatset,
> maybe we should put together a plan to update them.
>
> Terry
>  
> ===========================================================
> Terry Raymond
> Crafted Smalltalk
> 80 Lazywood Ln.
> Tiverton, RI  02878
> (401) 624-4517      [hidden email]
> <http://www.craftedsmalltalk.com>
> ===========================================================
> > -----Original Message-----
> > From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Reinout Heeck
> > Sent: Tuesday, September 09, 2008 7:21 AM
> > To: [hidden email]
> > Subject: Re: [vwnc] Re-2: DragAndDrop with datasets
> >
> > Frank Urbach wrote:
> > > Hi Reinout,
> > >
> > > many thanks for the tip. Did you ever tried this with vwnc 7.6.
> > >
> > Using the new dataset: yes.
> > Using at as a drag source: no.
> >
> > > There are some glitches within changing the column width
> by users. I get a DNU in
> > > #poll>>
> > >   ...
> > >  self sensor pollForActivity.
> > >
> > Ah. We have a gazillion patches on the new dataset, but
> most of these
> > are for extending functionality -- I expected the parcel
> would work out
> > of the box for you.
> >
> >
> > However I did find we override #poll with the following:
> >
> > poll
> >     "Announce that we are iterating through the polling loop. If
> >     there has been no input for a significant time, wait on
> a semaphore"
> >
> >     self view isOpen
> >         ifFalse: ["if the view was closed or the top
> component is closed"
> >                 WindowManager closedWindowSignal
> >                     raiseRequestFrom: self view
> topComponent controller].
> >     self view topComponent windowManager processNextEvent
> >
> >
> > it seems the method comment above is not entirely correct
> anymore ;-)
> >
> >
> > Let us know if you encounter other problems,
> >
> > R
> > -
> >
> > _______________________________________________
> > 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
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.169 / Virus Database: 270.6.19/1661 - Release
> Date: 09.09.2008 04:58
>
No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.169 / Virus Database: 270.6.19/1661 - Release Date: 09.09.2008 04:58

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

NDSRenderer4TextFields-displayinon.st (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Aragon widgets need updating - was RE: Re-2:DragAndDropwith datasets

Terry Raymond
Is there a VM fix for this?

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Christian Haider
> Sent: Tuesday, September 09, 2008 10:14 AM
> To: [hidden email]
> Subject: Re: [vwnc] Aragon widgets need updating - was RE: Re-2:DragAndDropwith datasets
>
> +1 (and a small contribution)
>
> I use the NewDataSet in my app.
> Because 7.6 introduced a displaying bug, I tried to replace it with the new Grid (preview) and failed
> miserably.
> Then I had to hunt down the display bug:
>
> Some text fields of my NewDataSet didnt display their content anymore.
> The problem boils down to the new version of Rectangle>>#center which returns a "true" center point
> (with Floats etc) instead of an Integer Point.
> This causes the primitive <976> to fail. Unfortunately, the backup code in
> ScreenGraphicsContext>>#primDisplayCharacterOfIndex:at: is not correct and the charcter is clipped
> away -> the text is not drawn.
>
> To patch the issue, I overrode (yuk) Aragon.NDSRenderer4TextFields>>#display:in:on: with the attached
> fileOut. This rounds one problematic coordinate of a center.
> I think that there will be more problems like this (I didnt check), since #center is used also in
> several other places.
>
> Cheers,
> Christian
>
> > -----Ursprüngliche Nachricht-----
> > Von: [hidden email]
> > [mailto:[hidden email]] Im Auftrag von Terry Raymond
> > Gesendet: Dienstag, 9. September 2008 15:15
> > An: 'Reinout Heeck'; [hidden email]
> > Betreff: [vwnc] Aragon widgets need updating - was RE: Re-2:
> > DragAndDropwith datasets
> >
> > It seems that the Aragon widgets have not been updated
> > for several years. Considering that there are several of
> > us that continue to use them, particularly the datatset,
> > maybe we should put together a plan to update them.
> >
> > Terry
> >
> > ===========================================================
> > Terry Raymond
> > Crafted Smalltalk
> > 80 Lazywood Ln.
> > Tiverton, RI  02878
> > (401) 624-4517      [hidden email]
> > <http://www.craftedsmalltalk.com>
> > ===========================================================
> > > -----Original Message-----
> > > From: [hidden email]
> > [mailto:[hidden email]] On Behalf Of Reinout Heeck
> > > Sent: Tuesday, September 09, 2008 7:21 AM
> > > To: [hidden email]
> > > Subject: Re: [vwnc] Re-2: DragAndDrop with datasets
> > >
> > > Frank Urbach wrote:
> > > > Hi Reinout,
> > > >
> > > > many thanks for the tip. Did you ever tried this with vwnc 7.6.
> > > >
> > > Using the new dataset: yes.
> > > Using at as a drag source: no.
> > >
> > > > There are some glitches within changing the column width
> > by users. I get a DNU in
> > > > #poll>>
> > > >   ...
> > > >  self sensor pollForActivity.
> > > >
> > > Ah. We have a gazillion patches on the new dataset, but
> > most of these
> > > are for extending functionality -- I expected the parcel
> > would work out
> > > of the box for you.
> > >
> > >
> > > However I did find we override #poll with the following:
> > >
> > > poll
> > >     "Announce that we are iterating through the polling loop. If
> > >     there has been no input for a significant time, wait on
> > a semaphore"
> > >
> > >     self view isOpen
> > >         ifFalse: ["if the view was closed or the top
> > component is closed"
> > >                 WindowManager closedWindowSignal
> > >                     raiseRequestFrom: self view
> > topComponent controller].
> > >     self view topComponent windowManager processNextEvent
> > >
> > >
> > > it seems the method comment above is not entirely correct
> > anymore ;-)
> > >
> > >
> > > Let us know if you encounter other problems,
> > >
> > > R
> > > -
> > >
> > > _______________________________________________
> > > 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
> >
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG - http://www.avg.com
> > Version: 8.0.169 / Virus Database: 270.6.19/1661 - Release
> > Date: 09.09.2008 04:58
> >
> No virus found in this outgoing message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.6.19/1661 - Release Date: 09.09.2008 04:58


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

Re: [vwnc] Aragon widgets need updating - was RE: Re-2:DragAndDropwith datasets

Reinout Heeck

On Sep 9, 2008, at 4:41 PM, Terry Raymond wrote:

> Is there a VM fix for this?


I guess that is not needed, judging by the problem description it  
seems updating the primitive failure code in the image should do:

>>
>> The problem boils down to the new version of Rectangle>>#center  
>> which returns a "true" center point
>> (with Floats etc) instead of an Integer Point.
>> This causes the primitive <976> to fail. Unfortunately, the backup  
>> code in
>> ScreenGraphicsContext>>#primDisplayCharacterOfIndex:at: is not  
>> correct [...]



R
-


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

Re: [vwnc] Aragon widgets need updating - was RE: Re-2: DragAndDrop with datasets

Reinout Heeck
In reply to this post by Terry Raymond

On Sep 9, 2008, at 2:50 PM, Terry Raymond wrote:

> It seems that the Aragon widgets have not been updated
> for several years. Considering that there are several of
> us that continue to use them, particularly the datatset,
> maybe we should put together a plan to update them.
>

Step 1:

I published a bundle 'Aragon - Community Edition' to the public Store  
with the Aragon parcels that are needed for the new dataset.
These include the suggested #poll fix.

I invite all to add to that bundle.


R
-

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