The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dialog
Author Message
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #2
RE: dialog
Just a very simple dialog, out of my mind (i hope the Gump-ID for the Resizegump is correct since we only use custom-gumps with different IDs)

[DIALOG d_whatever]
0, 0
PAGE 0
//nomove
//noclose
//nodispose
resizepic 0 0 3000 300 220
dhtmlgump 0 50 0 Do you want to buy that item?
radio 20 90 2510 2511 0 1
radio 20 120 2510 2511 1 2
dtext 50 90 0 Yes
dtext 50 120 0 No
button 100 183 2117 2118 1 0 100
dtext 120 180 0 Confirm

[DIALOG d_whatever BUTTON]
On=0
sdialog d_whatever
return 1
on=100
<yourfunction>

something like :

if <argchk[1]>
put your function here (the user wants to by it)
elif
return 1 // close dialog
endif
return 1
(This post was last modified: 04-10-2013 08:14 PM by Shidhun.)
04-10-2013 08:12 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
dialog - Pidrila - 04-10-2013, 06:28 PM
RE: dialog - Shidhun - 04-10-2013 08:12 PM
RE: dialog - Pidrila - 04-14-2013, 03:36 AM
RE: dialog - Rattlehead - 04-18-2013, 05:23 PM
RE: dialog - amonvangrell - 04-19-2013, 06:23 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)