Search found 20 matches

by Worm
Thu Mar 29, 2007 1:44 pm
Forum: Coding Questions
Topic: Determine if Popup Menu was cancelled
Replies: 8
Views: 1838

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.
by Worm
Thu Mar 29, 2007 1:42 pm
Forum: Coding Questions
Topic: Determine if Popup Menu was cancelled
Replies: 8
Views: 1838

srod, that's exaclty what I was trying to do. Thank you.
by Worm
Thu Mar 29, 2007 1:12 pm
Forum: Coding Questions
Topic: Determine if Popup Menu was cancelled
Replies: 8
Views: 1838

Thanks Derek.

I do get the event when a menu item is chosen, but how do I check a *non* event for when the menus hidden. That's the part that is slipping through my fingers.
by Worm
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 ...
by Worm
Thu Mar 15, 2007 1:45 pm
Forum: Off Topic
Topic: Powerbasic
Replies: 152
Views: 33094

For me, its PureBasic, I purchased PowerBasic7, and waited for the release of 8. I honestly was so dissapointed with the update, that I never even purchased the upgrade.

As for EZ GUI. I own PwrDev and FireFly and have used them with PB with great results. I've never tried EZ GUI. Mostly because ...
by Worm
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 ...
by Worm
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 ...
by Worm
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 ...
by Worm
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

Passing the handle is an option, but if I can obtain the handle through code I'd rather do that.
by Worm
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

Good point, but in this case I know there will always be a window.
by Worm
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

Thanks. I should know by now to be as specific as possible.

The solution you provided would work as long as the window is the active window. The problem comes if the app doesn't have focus and the function is called, it would give me the wrong handle. The DLL function will more than likely be ...
by Worm
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?
by Worm
Mon Feb 12, 2007 2:06 am
Forum: General Discussion
Topic: C++ Conversion Question
Replies: 4
Views: 1730

Got it... thanks to all.

I have browsed the help file many-a-time and missed the blurb on pointer needing the * in front of them all the time.

Feels good :D
by Worm
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 ...
by Worm
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.