Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / --Using custom windows popup menus in DBP (i.e. right-click menus)

Author
Message
ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 20th Oct 2003 00:54 Edited at: 20th Oct 2003 00:55
created a simple demo showing the use of pop-up menus in DBP. Simply right-click to bring up the menu. I'm working on getting it to return values now (kind of useless without that )



"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 20th Oct 2003 04:19
Now it can return the item you click on based on it's id tag. I was trying to get it to position correctly by using GetCursorPos, but for some reason it just writes zeros to the memblock I'm using



"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 20th Oct 2003 05:45
proper positioning now:



"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 20th Oct 2003 05:46
and without the menu breaks:



"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
sparrow
21
Years of Service
User Offline
Joined: 21st Feb 2003
Location: United States
Posted: 20th Oct 2003 21:51
nice stuff
ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 20th Oct 2003 22:55
Thanks

"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 20th Oct 2003 23:42
clever stuff

Fishie says:
"Those who fail to prepare prepare to fail"
"Rules are for the guidance of the wise and the blind obdeniency of the fools"
ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 21st Oct 2003 00:15


"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
Preston C
20
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 21st Oct 2003 03:19 Edited at: 21st Oct 2003 03:20
where can I find this user32.dll?

Edit: Nevermind, its the one in C:\Windows\system32, right?


ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 21st Oct 2003 03:26
Yup. You don't need to specify a path when loading it, though

"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
Preston C
20
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 22nd Oct 2003 01:07
wow, this is neat, should implement it into Decoy


ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 22nd Oct 2003 01:56
Go for it
There's also a way to create load/save dialogs using another windows .dll. It may be useful for your app. I'll post it here later if I can find it

"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
Xanatus
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 22nd Oct 2003 03:25 Edited at: 22nd Oct 2003 03:27
Heres a way to create a Open Dialog coded by Kulle:
ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 22nd Oct 2003 03:43
Yup, that's the one

"That's not a bug, it's a feature!"
"Variables won't, constants aren't."
JPcreator
20
Years of Service
User Offline
Joined: 11th Jul 2003
Location: The Netherlands
Posted: 8th Nov 2003 12:44
like the pop-up (first two) the other codes won't work.
Am I the only one?

Only the best survive!
ESC_
20
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 8th Nov 2003 21:05
Which one doesn't work for you?

''For nonconformity, the world whips you with its displeasure''---Ralph Waldo Emerson
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 8th Nov 2003 21:36
very nice!


Go on, click on my signature image, you know you want to
Favourite smiley>>>
JPcreator
20
Years of Service
User Offline
Joined: 11th Jul 2003
Location: The Netherlands
Posted: 9th Nov 2003 10:36 Edited at: 9th Nov 2003 10:37
Quote: "Which one doesn't work for you?"

Only the first to work for me. So the third,fourth and last don't.
Can it has something to do with Me? (Win Me - not myself )
(When memblock is used my computer crashes! )

Only the best survive!

Login to post a reply

Server time is: 2024-05-03 00:23:53
Your offset time is: 2024-05-03 00:23:53