John Lokanis Posted September 13, 2008 Report Share Posted September 13, 2008 Before I totally reinvent the wheel, has anyone created replacements for the one and two button dialogs that do not block the root loop in LabVIEW? The main features I would need them to have are: Ability to resize to fit message and button texts, like the originals do. Reentrant (so one does not block another, in case many threads want to call this at the same time, and yes I know this might not always make sense.) Centers itself on the active calling window (and not the screen, like the 3 button dialog does) Does NOT block the root loop! I can almost do this with the 3 button dialog, but it centers itself on the screen and is not reentrant. thanks! -John Quote Link to comment
jgcode Posted September 13, 2008 Report Share Posted September 13, 2008 QUOTE (jlokanis @ Sep 12 2008, 08:57 AM) Before I totally reinvent the wheel, has anyone created replacements for the one and two button dialogs that do not block the root loop in LabVIEW?The main features I would need them to have are: Ability to resize to fit message and button texts, like the originals do. Reentrant (so one does not block another, in case many threads want to call this at the same time, and yes I know this might not always make sense.) Centers itself on the active calling window (and not the screen, like the 3 button dialog does) Does NOT block the root loop! I can almost do this with the 3 button dialog, but it centers itself on the screen and is not reentrant. thanks! -John PJM had a post with a blog reference that did the text/button changes. Whether it fits the other requirements? I think it came up in the - Sequence structure is bad / Invent the new dialog challenge - series of posts. Worth asking him/checking out. Cheers JG Quote Link to comment
John Lokanis Posted September 14, 2008 Author Report Share Posted September 14, 2008 Well, I managed to get the 3 button dialog to do most of this by modifing the source code. I ended up changing the server call to center the window to instad call a subvi that takes the call chain and searches it for the nearest parent with an open window and then centers itself inside that window. This is as close as I can get to what the system dialogs do. Looking forward to the refactoring of the 3 button dialog by the coding challenge, if anyone has time to do it. If you want to add my little trick, let me know and I will post the VI. -John Quote Link to comment
Val Brown Posted September 14, 2008 Report Share Posted September 14, 2008 QUOTE (jlokanis @ Sep 12 2008, 06:21 PM) Well, I managed to get the 3 button dialog to do most of this by modifing the source code. I ended up changing the server call to center the window to instad call a subvi that takes the call chain and searches it for the nearest parent with an open window and then centers itself inside that window. This is as close as I can get to what the system dialogs do.Looking forward to the refactoring of the 3 button dialog by the coding challenge, if anyone has time to do it. If you want to add my little trick, let me know and I will post the VI. -John Sounds like a nice trick -- why not just post it? Quote Link to comment
John Lokanis Posted September 17, 2008 Author Report Share Posted September 17, 2008 QUOTE (Val Brown @ Sep 12 2008, 09:19 PM) Sounds like a nice trick -- why not just post it? By your command.... Center Dialog Box Quote Link to comment
JiMM Posted September 17, 2008 Report Share Posted September 17, 2008 QUOTE (jlokanis @ Sep 11 2008, 08:57 PM) do not block the root loop in LabVIEW? Pardon my ignorance, but what exactly do you mean by blocking the root loop? Thanks. Quote Link to comment
John Lokanis Posted September 17, 2008 Author Report Share Posted September 17, 2008 QUOTE (JiMM @ Sep 15 2008, 06:07 PM) Pardon my ignorance, but what exactly do you mean by blocking the root loop? Check out this link: http://wiki.lavag.org/Lessons_learned_from_plugins' rel='nofollow' title='LabVIEW Wiki article on Lessons_learned_from_plugins' alt='Wiki article on Lessons_learned_from_plugins' style="border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">Lessons_learned_from_plugins -John Quote Link to comment
JiMM Posted September 17, 2008 Report Share Posted September 17, 2008 Thank you John. Excellent information on the nuts and bolts of how LV works. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.