michaelk Posted December 8, 2011 Share Posted December 8, 2011 Is there a list of DialogIDs? mk Quote Link to comment
maarten. Posted December 8, 2011 Share Posted December 8, 2011 As far as i know, the DialogID isn't a CONST, it's a VAR that you'll get with the function CreateLayout(). Quote Link to comment
michaelk Posted December 17, 2011 Author Share Posted December 17, 2011 Got it. So there's no significance to the value of the ID? It just indexes every time a dialog box is run? mk Quote Link to comment
JBenghiat Posted December 19, 2011 Share Posted December 19, 2011 It's kind of like a handle. The longint ID seems to be a frequent occurrence in more recent API calls -- resource lists, for example. Because the dialog ID generates with CreateLayout, you could in theory run two identical dialogs at the same time, each created with its own ID. -Josh Quote Link to comment
MullinRJ Posted December 21, 2011 Share Posted December 21, 2011 you could in theory run two identical dialogs at the same time, each created with its own IDIt's more than theory. I do this for a special case in Reshaper; open a second dialog from inside a first dialog. It may not be the best interface design, but it may work for some instances. The dialogID allows you to have the same item numbers in multiple dialogs. If this were not the case, confusion would ensue if you tried to modify an item number that existed in multiple dialogs. The idea of the dialogID acting as a HANDLE to the dialog window is exactly the right way to think of it. It's assigned at runtime when the dialog opens, and disappears when the dialog closes. Raymond 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.
Note: Your post will require moderator approval before it will be visible.