Re: Live "On Column Resize" event
+1 As OP mentioned this feature is much nicer with multiple list boxes you'd like to keep in sync > On Feb 9, 2017, at 10:29 AM, Cannon Smith > wrote: > > I love this feature. [snip] > > >> On Feb 9, 2017, at 11:09 AM, Chip Scheide <4d_o...@pghrepository.org> wrote: >> >> this behavior caused me no end of problems with window resizing. >> personally I do not see the benefit. [snip] ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Live "On Column Resize" event
I love this feature. I posted some code about a month ago (see the “v13+ code to increase font size” topic) that takes advantage of this feature to split listbox header labels as well as dynamically change the header height to accommodate multi-line headers on the fly. It really enhances the UI, in my opinion. Would it be nice to also have an “after column resize” event? For sure. That would make a great feature request. But I’m happy for this new feature. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Feb 9, 2017, at 11:09 AM, Chip Scheide <4d_o...@pghrepository.org> wrote: > > this behavior caused me no end of problems with window resizing. > personally I do not see the benefit. > > Generate an event ON Column/Row/Window/Object Resize ONCE when the > mouse is released. > The 'live' behaviordoes/will cause more problems then it could possibly > solve. > ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Live "On Column Resize" event
this behavior caused me no end of problems with window resizing. personally I do not see the benefit. Generate an event ON Column/Row/Window/Object Resize ONCE when the mouse is released. The 'live' behaviordoes/will cause more problems then it could possibly solve. On Thu, 9 Feb 2017 17:32:29 +, Timothy Penner wrote: > Hi Nigel, > > It's not a bug, it's documented here: > http://livedoc.4d.com/4Dv16/help/Command/en/page388.html > > " On Column Resize: This event is generated when the width of a > column in the list box is modified by a user. Starting with 4D v16, > the event is triggered "live," i.e., sent continuously during the > event, for as long as the list box or column concerned is being > resized. This resizing is performed manually by a user, or may occur > as a result of the list box and its column(s) being resized along > with the form window itself (whether the form is resized manually or > using the RESIZE FORM WINDOW command)." > > -Tim > > > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Live "On Column Resize" event
Hi Nigel, It's not a bug, it's documented here: http://livedoc.4d.com/4Dv16/help/Command/en/page388.html " On Column Resize: This event is generated when the width of a column in the list box is modified by a user. Starting with 4D v16, the event is triggered "live," i.e., sent continuously during the event, for as long as the list box or column concerned is being resized. This resizing is performed manually by a user, or may occur as a result of the list box and its column(s) being resized along with the form window itself (whether the form is resized manually or using the RESIZE FORM WINDOW command)." -Tim ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Live "On Column Resize" event
Nigel, They actually proudly indicate it as a new feature in the documentation :-) I think the on mouse down, on mouse up tracking is another option to handle it. We did find a use case where the live event actually is really handy, if you want to simultaneously resize several list boxes. So I think it boils down to coping with the different behaviour. Tilman > Am 09.02.2017 um 12:21 schrieb Nigel Greenlee : > > Tim > > That sounds like a bug that 4D have introduced-have you reported it to them? > There used to be a nasty killer if you put a trace in a form resize event > -probably from a similar way of handling the call to how they are now > handling the on column resize-it should only really actually be an on column > resize when you mouse up. > > have you tried using the mouse state? > > Get mouse($mousex;$mousey;$mousebutton) > if($Mousebutton=0), //mouse up-if mouse is down we are still resizing > do stuff > end if > > > > I use an on column resize event on my forms and hope this is resolved before > i start working with V16! > > Nigel Greenlee > > >> On 8 Feb 2017, at 20:04, Tilman Haerdle wrote: >> >> With 4D v16.0 the event "On Column Resize" fires live during resize of >> listbox columns. >> >> This has severe effects on methods who do stuff after resizing a column. If >> the method takes to long irt is invoked again while it is still running >> which results sooner or later in a stack overflow and subsequently a crash. >> >> I'd wish there was a "On After Column Resize" event for methods who take >> place after the fact and not during the resize action. >> >> Any strategies to cope with the current implementation in v16? >> >> Cheers, >> Tilman Haerdle >> >> extragroup GmbH >> Pottkamp 19 >> 48149 Münster >> Germany >> >> Mobil: +49 178 721 5210 (Skype: TilmanHaerdle) >> Fax: +49 251 39089-10 >> WWW: http://www.extragroup.de >> Email: tilman.haer...@extragroup.de >> >> Geschäftsführer: Lars Busch >> Registergericht: Amtsgericht Münster / HRB: 5624 Steuer Nr.: 337/5903/0421 - >> UstID: DE 204607841 >> >> Vectorworks interiorcad - profacto >> >> >> ** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: http://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ** > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Live "On Column Resize" event
Tim That sounds like a bug that 4D have introduced-have you reported it to them? There used to be a nasty killer if you put a trace in a form resize event -probably from a similar way of handling the call to how they are now handling the on column resize-it should only really actually be an on column resize when you mouse up. have you tried using the mouse state? Get mouse($mousex;$mousey;$mousebutton) if($Mousebutton=0), //mouse up-if mouse is down we are still resizing do stuff end if I use an on column resize event on my forms and hope this is resolved before i start working with V16! Nigel Greenlee > On 8 Feb 2017, at 20:04, Tilman Haerdle wrote: > > With 4D v16.0 the event "On Column Resize" fires live during resize of > listbox columns. > > This has severe effects on methods who do stuff after resizing a column. If > the method takes to long irt is invoked again while it is still running which > results sooner or later in a stack overflow and subsequently a crash. > > I'd wish there was a "On After Column Resize" event for methods who take > place after the fact and not during the resize action. > > Any strategies to cope with the current implementation in v16? > > Cheers, > Tilman Haerdle > > extragroup GmbH > Pottkamp 19 > 48149 Münster > Germany > > Mobil: +49 178 721 5210 (Skype: TilmanHaerdle) > Fax: +49 251 39089-10 > WWW: http://www.extragroup.de > Email: tilman.haer...@extragroup.de > > Geschäftsführer: Lars Busch > Registergericht: Amtsgericht Münster / HRB: 5624 Steuer Nr.: 337/5903/0421 - > UstID: DE 204607841 > > Vectorworks interiorcad - profacto > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Live "On Column Resize" event
Thank you all for your suggestions, the flag came to mind, too. That's a feasible way to go. Our current solution was to not act until form unload which is in our use case OK as we just store the status of the listbox. Still I'm not really happy about this change because one way or another you have to touch many places in the code if you didn't handle the event completely generically. Regards, Tilman > Am 08.02.2017 um 21:42 schrieb Chuck Miller : > > Yeh what we used to do was to set a boolean to false and then when code runs > set to true. Only run code if boolean is false. We had the same type of > problems in really old versions of ALP > > Regards > > Chuck > > Chuck Miller Voice: (617) 739-0306 > Informed Solutions, Inc. Fax: (617) 232-1064 > mailto:cjmillerinformed-solutions.com > Brookline, MA 02446 USA Registered 4D Developer > Providers of 4D and Sybase connectivity > http://www.informed-solutions.com > > This message and any attached documents contain information which may be > confidential, subject to privilege or exempt from disclosure under applicable > law. These materials are intended only for the use of the intended > recipient. If you are not the intended recipient of this transmission, you > are hereby notified that any distribution, disclosure, printing, copying, > storage, modification or the taking of any action in reliance upon this > transmission is strictly prohibited. Delivery of this message to any person > other than the intended recipient shall not compromise or waive such > confidentiality, privilege or exemption from disclosure as to this > communication. > >> On Feb 8, 2017, at 3:04 PM, Tilman Haerdle >> wrote: >> >> With 4D v16.0 the event "On Column Resize" fires live during resize of >> listbox columns. >> >> This has severe effects on methods who do stuff after resizing a column. If >> the method takes to long irt is invoked again while it is still running >> which results sooner or later in a stack overflow and subsequently a crash. >> >> I'd wish there was a "On After Column Resize" event for methods who take >> place after the fact and not during the resize action. >> >> Any strategies to cope with the current implementation in v16? > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Live "On Column Resize" event
Yeh what we used to do was to set a boolean to false and then when code runs set to true. Only run code if boolean is false. We had the same type of problems in really old versions of ALP Regards Chuck Chuck Miller Voice: (617) 739-0306 Informed Solutions, Inc. Fax: (617) 232-1064 mailto:cjmillerinformed-solutions.com Brookline, MA 02446 USA Registered 4D Developer Providers of 4D and Sybase connectivity http://www.informed-solutions.com This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. > On Feb 8, 2017, at 3:04 PM, Tilman Haerdle > wrote: > > With 4D v16.0 the event "On Column Resize" fires live during resize of > listbox columns. > > This has severe effects on methods who do stuff after resizing a column. If > the method takes to long irt is invoked again while it is still running which > results sooner or later in a stack overflow and subsequently a crash. > > I'd wish there was a "On After Column Resize" event for methods who take > place after the fact and not during the resize action. > > Any strategies to cope with the current implementation in v16? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Live "On Column Resize" event
Couldn't you write the code so that it runs only if a flag is not set, then set the flag upon starting the operation and clear it when done, then the subsequent calls would see that the flag is already set so they don’t do anything...? -Tim ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Live "On Column Resize" event
on timer? set a timer event (10 ticks?) when the On Column resize occurs WHen the timer 'times out' apply the actions you want as you can conceder the resize event to be complete. Alternatively - an event handler turned on when resize fires first time to track mouse down, and then on mouse up do actions and clear event handler. On Wed, 8 Feb 2017 20:04:22 +, Tilman Haerdle wrote: > With 4D v16.0 the event "On Column Resize" fires live during resize > of listbox columns. > > This has severe effects on methods who do stuff after resizing a > column. If the method takes to long irt is invoked again while it is > still running which results sooner or later in a stack overflow and > subsequently a crash. > > I'd wish there was a "On After Column Resize" event for methods who > take place after the fact and not during the resize action. > > Any strategies to cope with the current implementation in v16? > > Cheers, > Tilman Haerdle > > extragroup GmbH > Pottkamp 19 > 48149 Münster > Germany > > Mobil: +49 178 721 5210 (Skype: TilmanHaerdle) > Fax: +49 251 39089-10 > WWW: http://www.extragroup.de > Email: tilman.haer...@extragroup.de > > Geschäftsführer: Lars Busch > Registergericht: Amtsgericht Münster / HRB: 5624 Steuer Nr.: > 337/5903/0421 - UstID: DE 204607841 > > Vectorworks interiorcad - profacto > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Live "On Column Resize" event
can you filter for mouse down? > On Feb 8, 2017, at 12:04 PM, Tilman Haerdle > wrote: > > With 4D v16.0 the event "On Column Resize" fires live during resize of > listbox columns. > > This has severe effects on methods who do stuff after resizing a column. If > the method takes to long irt is invoked again while it is still running which > results sooner or later in a stack overflow and subsequently a crash. > > I'd wish there was a "On After Column Resize" event for methods who take > place after the fact and not during the resize action. > > Any strategies to cope with the current implementation in v16? > ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Live "On Column Resize" event
With 4D v16.0 the event "On Column Resize" fires live during resize of listbox columns. This has severe effects on methods who do stuff after resizing a column. If the method takes to long irt is invoked again while it is still running which results sooner or later in a stack overflow and subsequently a crash. I'd wish there was a "On After Column Resize" event for methods who take place after the fact and not during the resize action. Any strategies to cope with the current implementation in v16? Cheers, Tilman Haerdle extragroup GmbH Pottkamp 19 48149 Münster Germany Mobil: +49 178 721 5210 (Skype: TilmanHaerdle) Fax: +49 251 39089-10 WWW: http://www.extragroup.de Email: tilman.haer...@extragroup.de Geschäftsführer: Lars Busch Registergericht: Amtsgericht Münster / HRB: 5624 Steuer Nr.: 337/5903/0421 - UstID: DE 204607841 Vectorworks interiorcad - profacto ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **