Hi Jim,
Jim Dorrance wrote : " I put on page 0 and set visible/invisible." Yes, I noticed that when putting the widget on page 0 it works. Unfortunately I want to use widgets a lot In this example I have a form with 9 pages, with on some pages more than 5 widgets This will create a lot of mess when putting all on page 0 and set it visible / invisible I am hoping for some other solution It looks like a subform on a page is only recognized when this page has been fully loaded and drawn? Gr, Piotr > -----Oorspronkelijk bericht----- > Van: Piotr Chabot Stadhouders > Verzonden: maandag 4 september 2017 13:39 > Aan: '4D iNug Technical' <4d_tech@lists.4d.com> > CC: Piotr Chabot Stadhouders <p.stadhoud...@timeff.com> > Onderwerp: RE: Widget questions > > > Do you know of problems when using widgets on pages > 1? Or should > > there be no problems? > > OK, I narrowed down the problem, and maybe someone can tell me what is > the best way to handle this: > I want to enable/disable or set some value to objects / widgets in On load of > the main form Because my widget (=subform) is on page 2 for example, for > some reason, 4D doesn't find the pointer to the variable of the object in the > on load event > > So $object_ptr:=OBJECT Get pointer(Object > named;$objectName;$widgetName) returns Nil > > (Furthermore it seems that the on load of the subform is executed AFTER > the on load of the form) > > Maybe this is normal standard behavior, but I didn't expect this. > Now, to initialize the widget (disable + set value) I run the command SET > TIMER(1) at the end of the on load event (Even CALL FORM did't help me) > > So, what is the best way to initialize widgets that are on page 2, 3 ....? > > Thanks, > > Piotr > > > -----Oorspronkelijk bericht----- > > Van: Piotr Chabot Stadhouders > > Verzonden: vrijdag 1 september 2017 20:46 > > Aan: Keisuke Miyako <keisuke.miy...@4d.com>; 4D iNug Technical > > <4d_tech@lists.4d.com> > > CC: Piotr Chabot Stadhouders <p.stadhoud...@timeff.com> > > Onderwerp: Widget questions > > > > Hi Miyako, > > > > Since I discovered you are a widget expert (in fact I believe you are > > an expert on everything concerning 4D) I hope you can answer some > > other questions 😊 > > > > I am developing another widget based on a subform with a vertical > > scrollbar (i.e. a calendar with 12 vertical months). On this subform I > > have 3D checkboxes > > - When the mouse is over the 3D buttons the scrollbar doesn't respond > > when using the scrollbar. Do you have an answer / solution? > > - When selecting a date by programming, 5 october for example, I want > > to scroll down to that date, but I can't find how I can scroll on a > > input subform by programing. Do you know how this can be done? > > > > Do you know of problems when using widgets on pages > 1? Or should > > there be no problems? > > > > Gr, > > > > Piotr > > > > > -----Oorspronkelijk bericht----- > > > Van: Piotr Chabot Stadhouders [mailto:p.stadhoud...@timeff.com] > > > Verzonden: donderdag 31 augustus 2017 9:03 > > > Aan: Keisuke Miyako <keisuke.miy...@4d.com>; 4D iNug Technical > > > <4d_tech@lists.4d.com> > > > Onderwerp: RE: Widget performance > > > > > > Hi Miyako, > > > > > > Searching for some tips about widgets (subforms) and handling focus, > > > setting disabled, etc. I found this link on the iNUG: > > > https://github.com/miyako/4d-widget-custom-picture-button/wiki > > > > > > I must say I really like what you have done, and the source code is > > > really helpful understanding how to implement widgets. > > > I would advise everybody to have a look at this widget, and others, > > > you have created. > > > > > > These widgets most of the time are created with 4D v14. > > > Would you do (some) things differently when using v16? > > > > > > Thanks, > > > > > > Piotr > > > > > > > -----Oorspronkelijk bericht----- > > > > Van: Keisuke Miyako [mailto:keisuke.miy...@4d.com] > > > > Verzonden: zaterdag 26 augustus 2017 0:32 > > > > Aan: 4D iNug Technical <4d_tech@lists.4d.com> > > > > Onderwerp: Re: Widget performance > > > > > > > > there is a "duplicate by matrix" menu in the form editor, which > > > > allows you to quickly experiment with tens of thousands of objects. > > > > maybe it is the execution code setup code that is taking 2 seconds. > > > > > > > > in my experience, a form with thousands of form objects is nothing > > > > uncommon. > > > > > > > > > 2017/08/25 16:39、Piotr Chabot Stadhouders via 4D_Tech > > > > > <4d_tech@lists.4d.com> のメール: > > > > > Opening the form compiled on a quite fast Windows laptop took > > > > > about > > > > > 2 > > > > seconds. > > > > > > > > > > > > ********************************************************************** 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 **********************************************************************