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-nmm6 (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-nmm6 (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-nmm6 (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
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #1
dialog
hey friends..

i am here becouse i need a basic dialog function which checks if dialog box is checked if yes then goes forward if no then close dialog..

example:
Code:
--------------------------------------
|  do you wanna buy this item?          
|                                                  
|                                                  
|     [x] Yes                   [ ] No          
|                                                  
|                    Okey                        
--------------------------------------

if Yes then forward, if no then close dialog..
i read about checkbox, but didn't find any solution how to use them..
(This post was last modified: 04-10-2013 06:29 PM by Pidrila.)
04-10-2013 06:28 PM
Find all posts by this user Like Post Quote this message in a reply
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
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #3
RE: dialog
thanks but i already did it by other way
04-14-2013 03:36 AM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #4
RE: dialog
other way?
04-18-2013 05:23 PM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #5
RE: dialog
he probably made his own dlg.
04-19-2013 06:23 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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