PenUltima Online

It is currently Fri Sep 05, 2008 12:50 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Gumps And Radiobutton groups
PostPosted: Mon Feb 13, 2006 2:22 am 
Offline

Joined: Mon Feb 06, 2006 6:12 am
Posts: 93
Code:
"group 0",
"radio 80 210 210 211 1 11",
"radio 155 210 210 211 0 12",
"group 1",
"radio 75 250 210 211 0 13",
"radio 150 250 210 211 0 14",
"radio 210 250 210 211 0 15",
"group 2",
"radio 75 290 210 211 0 16",
"radio 120 290 210 211 0 17",
"radio 170 290 210 211 0 18",
"radio 70 310 210 211 0 19",
"radio 110 310 210 211 0 20"


This doesnt work why? the first group will show but any groups after that wont :S


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 17, 2006 9:17 pm 
Offline

Joined: Mon Feb 06, 2006 6:12 am
Posts: 93
*bump* no one knows?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 18, 2006 8:56 pm 
Offline

Joined: Sat Feb 04, 2006 5:15 pm
Posts: 25
I can only guess that it is something else in your script. If I copy and paste the above and use it in a gump like below, it works perfectly for me. It creates 3 separate radio groups that all function properly.

Code:
use uo;

program TestGump(mWho)
   var layout := array {
"group 0",
"radio 80 210 210 211 1 11",
"radio 155 210 210 211 0 12",
"group 1",
"radio 75 250 210 211 0 13",
"radio 150 250 210 211 0 14",
"radio 210 250 210 211 0 15",
"group 2",
"radio 75 290 210 211 0 16",
"radio 120 290 210 211 0 17",
"radio 170 290 210 211 0 18",
"radio 70 310 210 211 0 19",
"radio 110 310 210 211 0 20"};

   SendDialogGump(mWho, layout, array);
endprogram


Are you maybe covering up the other ones with gumps later in your array?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 5:03 am 
Offline

Joined: Mon Feb 06, 2006 6:12 am
Posts: 93
wow strange... dont think so i mean i have other buttons and they dont get covered up everything is well spaced just for some reason they dont show :S


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 22, 2006 12:50 am 
Offline
User avatar

Joined: Fri Feb 03, 2006 2:25 am
Posts: 56
Location: Germany, Franconia
If I remember it correctly - haven't looked too deeply into 96 distro yet - there was a problem with radio buttons not being displayed on other then the first page. Also no sure if it was a general problem or just one with the gumps package.

edit:
Found it, but I've got a quite outdated version of the 96 distro here, it might have been fixed meanwhile. And if you're using 95, this won't help you at all :)
from pkg/utils/gumps/include/gumps.inc wrote:
/*
* GFSetRadioGroup(byref gump, group_id)
*
* Purpose
* Adds a group-radio to the gump
*
* Parameters
* gump: Reference to the gump
* group_id: The number representing the group (0-9)
*
* Notes:
* Only seems to work on page 1.

*
* Return value
* No return value.
*
*/

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 22, 2006 6:42 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 747
Location: Chicago, IL USA
Well I have somewhat the same problem on my shard and nothing was changed between what I had on 095 and what I have on 096 except the client... well, I logged in with an older client and viola, it worked...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 22, 2006 8:31 pm 
Offline

Joined: Sat Feb 04, 2006 5:15 pm
Posts: 25
Interesting CWO. What were the client versions?

The version I tried it on and it worked was 4.0.5b


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 22, 2006 9:33 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 747
Location: Chicago, IL USA
worked on 4.0.1b

didnt work on 5.0.1j

Actually looking it over now, its probably not the same problem as described here. The problem I'm having is that everything on the first page shows fine but if you go to the next page, its blank...


Top
 Profile  
 
 Post subject: fact
PostPosted: Mon Feb 27, 2006 2:34 pm 
Offline

Joined: Fri Feb 03, 2006 6:32 am
Posts: 104
Location: Austria
CWO wrote:
Actually looking it over now, its probably not the same problem as described here. The problem I'm having is that everything on the first page shows fine but if you go to the next page, its blank...


There's been a long topic on this issue on the old forums, pitty it's been lost. What you describe here is fact though.... Radio button groups simply only work properly on one-page-only-gumps. No matter your client version as of yet, tests have prooven that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl