![]() I can’t say I am a huge OOP fan so I don’t spend much time trying to “force fit” OOP features but this seems like a good reason to use it if it would work this way. ![]() Xojo uses a proprietary object-oriented language. of Austin, Texas for software development targeting macOS, Microsoft Windows, Linux, iOS, the Web and Raspberry Pi. If it can be done would this really be any better than just duplicating a YES/NO Dialog to be specific to one Webpage? The Xojo programming environment and programming language is developed and commercially marketed by Xojo, Inc. In the “object world” can I do something like sub-class the original YES/NO Dialog and create a new instance that is used only on one Webpage and add code in the Dismissed Event that is private to that instantiated version of the YES/NO Dialog? The simple solution would be to duplicate the YES/NO Dialog for each Webpage that uses it but that does not seem like a great idea either but it would be much cleaner. To get the “my standard” YES/NO Dialog on a Webpage I just drag it from the object list on the left. I would end up with either a CASE statement or a series of IF / ELSEIF statements. My technique has been to set a session property and use it in the called dialog to know where it was called FROM. The code for YES on Webpage1 is different than Webpage2. What I was hoping to avoid was having several different Webpages use the same YES/NO Dialog and that dialog have code in it to do work where it was called from multiple Webpages. OK … The Dismissed Event helps a little by consolidating where to check for all of the user button clicks all in one place ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |