Gumps And Radiobutton groups

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Gumps And Radiobutton groups

Post by DevGIB »

Code: Select all

"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
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Post by DevGIB »

*bump* no one knows?
Mithril
New User
Posts: 25
Joined: Sat Feb 04, 2006 5:15 pm

Post by Mithril »

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: Select all

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?
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Post by DevGIB »

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
Bytehawk
Apprentice Poster
Posts: 56
Joined: Fri Feb 03, 2006 2:25 am

Post by Bytehawk »

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.
*
*/
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

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...
Mithril
New User
Posts: 25
Joined: Sat Feb 04, 2006 5:15 pm

Post by Mithril »

Interesting CWO. What were the client versions?

The version I tried it on and it worked was 4.0.5b
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

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...
Firedancer
Grandmaster Poster
Posts: 104
Joined: Fri Feb 03, 2006 6:32 am

fact

Post by Firedancer »

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.
Post Reply