Stefan Bender Posted August 30, 2023 Share Posted August 30, 2023 Dear developers, There are requests to quit a VWDialog during an ADD_LB_DIRECT_EDIT() event (i.e., when direct editing a list browser cell). The main idea is that if the user selects a custom SResource control (i.e. button button "New" or "Edit..." instead of selecting a resource) in a direct editable resource browser cell of a listbrowser, the dialog should close down and the user enters symbol edit mode. We could do this in "normal" dialog events by setting the item to 0, but how is this possible in a direct edit event? Or is there another way to force a dialog to quit? I tried CloseDialog(true), but no effect. Thanks for any help, Stefan Bender Quote Link to comment
Maarten DE Posted August 30, 2023 Share Posted August 30, 2023 I haven't tried it in a LB, but we force-close our dialog calling currentDialog->OnDefaultButtonEvent(); Quote Link to comment
Stefan Bender Posted August 31, 2023 Author Share Posted August 31, 2023 Hi Maarten, thanks a lot for your reply, but OnDefaultButtonEvent doesn't do anything when I call it there. Quote Link to comment
Maarten DE Posted August 31, 2023 Share Posted August 31, 2023 I see, I tried it now too and indeed, it doesn't close the dialog in the LB events... Sorry, I'm out of ideas. 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.