I know it's not the *normal* thing to try to capture this non event, but for my application its something I need to know. If the popup is displayed to a user, I need feed back as to whether they selected an item, or if the menu itself was ignore/canceled.
I appreciate your help, again thanks.
Search found 20 matches
- Thu Mar 29, 2007 1:44 pm
- Forum: Coding Questions
- Topic: Determine if Popup Menu was cancelled
- Replies: 8
- Views: 1838
- Thu Mar 29, 2007 1:42 pm
- Forum: Coding Questions
- Topic: Determine if Popup Menu was cancelled
- Replies: 8
- Views: 1838
- Thu Mar 29, 2007 1:12 pm
- Forum: Coding Questions
- Topic: Determine if Popup Menu was cancelled
- Replies: 8
- Views: 1838
- Thu Mar 29, 2007 12:05 pm
- Forum: Coding Questions
- Topic: Determine if Popup Menu was cancelled
- Replies: 8
- Views: 1838
Determine if Popup Menu was cancelled
I'm trying to determine if an item was selected in one of my popup menus or if the menu was hidden by clicking somewhere else. I've tried setting a variable to false before calling DisplayPopupMenu, setting it to true in my EventMenu routine, then checking its value after DisplayPopupMenu, but am ...
- Thu Mar 15, 2007 1:45 pm
- Forum: Off Topic
- Topic: Powerbasic
- Replies: 152
- Views: 33094
- Thu Mar 08, 2007 4:00 pm
- Forum: Coding Questions
- Topic: Using CreateThread in a DLL
- Replies: 0
- Views: 854
Using CreateThread in a DLL
I'd like to show a non modal dialog from within a DLL. Is using CreateThread safe this way? Should I use a Mutex? Should I use the /THREAD commandline when compiling the DLL? As you can see I'm a little fuzzy on what my best options are.
Global nThread
Procedure NonModalDlg(Value)
If ...
Global nThread
Procedure NonModalDlg(Value)
If ...
- Wed Feb 28, 2007 5:50 pm
- Forum: General Discussion
- Topic: Distinguish Between Events
- Replies: 4
- Views: 2730
Distinguish Between Events
I've got an image gadget and would like to have things happen both on Left Mouse Click, and Left Mouse Double Click.
Using an Select or If in my events loop, the Left Click fires on the first click. This makes sense, but how do I allow the Left Double Click to fire if its an actual Double Click and ...
Using an Select or If in my events loop, the Left Click fires on the first click. This makes sense, but how do I allow the Left Double Click to fire if its an actual Double Click and ...
- Tue Feb 20, 2007 2:24 pm
- Forum: General Discussion
- Topic: Get Window Handle of calling app in a DLL function
- Replies: 11
- Views: 3534
I agree, but the concept was to not need to worry about that and simply let the DLL get the handle. Netmaestro's code seems to work perfectly when I use it in PB, but if I try it in a DLL, I do not get the handle I need.
So, the answer for me in this instance is to make the handle a parameter that ...
So, the answer for me in this instance is to make the handle a parameter that ...
- Wed Feb 14, 2007 4:19 pm
- Forum: General Discussion
- Topic: Get Window Handle of calling app in a DLL function
- Replies: 11
- Views: 3534
- Wed Feb 14, 2007 4:07 pm
- Forum: General Discussion
- Topic: Get Window Handle of calling app in a DLL function
- Replies: 11
- Views: 3534
- Wed Feb 14, 2007 3:32 pm
- Forum: General Discussion
- Topic: Get Window Handle of calling app in a DLL function
- Replies: 11
- Views: 3534
- Wed Feb 14, 2007 2:56 pm
- Forum: General Discussion
- Topic: Get Window Handle of calling app in a DLL function
- Replies: 11
- Views: 3534
Get Window Handle of calling app in a DLL function
I'm writing a DLL and would like to be able to obtain the handle of the calling applications window programmatically rather than passing it as a parameter. All the things I've tried seem to fail.
Any ideas?
Any ideas?
- Mon Feb 12, 2007 2:06 am
- Forum: General Discussion
- Topic: C++ Conversion Question
- Replies: 4
- Views: 1730
- Mon Feb 12, 2007 12:46 am
- Forum: General Discussion
- Topic: C++ Conversion Question
- Replies: 4
- Views: 1730
Thanks... I've tried the methods described, and many different variations of my own, and having very little luck. I think its my bad understanding of how a pointer is used in PB thats knocking me down.
Here's the function I'm trying to convert. szBuffer is a pointer to a character buffer that will ...
Here's the function I'm trying to convert. szBuffer is a pointer to a character buffer that will ...
- Sun Feb 11, 2007 1:28 pm
- Forum: General Discussion
- Topic: C++ Conversion Question
- Replies: 4
- Views: 1730
C++ Conversion Question
I have the source to a C++ SDK that I'd like to try convert to PB. Would someone be kind enough to point me in the right direction on how to convert the parameters to the correct variable types.
example C++:
int foo(char* szBuff, int* pnBuffSize, char* lpszInfo)
Thanks.
example C++:
int foo(char* szBuff, int* pnBuffSize, char* lpszInfo)
Thanks.