mIRC Homepage
Posted By: sparta dialog tab question - 18/07/07 05:46 PM
Can you get info about what tab that is active? i doing a dialog with a "list", but depending on active the info will be diffrent, and the user can add the info to the list, how ever i want to write the info to the right topic in a ini file, so can you return the active tab ?

if ($did == ID) && (tab == tab1) { do stuff }
Posted By: bog__ Re: dialog tab question - 18/07/07 06:07 PM

from the help file

The $dialog() identifier
$dialog(name/N)
$dialog() also supports these properties:
tab returns id of tab that is currently displayed


Posted By: SladeKraven Re: dialog tab question - 18/07/07 06:10 PM
I don't know why that tab property isn't a $did property. As tabs are dialog controls.
Posted By: bog__ Re: dialog tab question - 18/07/07 06:27 PM
i didnt try to see if its working in $did maby it is maby it isnt
if he use $did command "if it work" he can get "the last tab activated" so his code will b something like "on *:DIALOG:test:sclick:291:"
he asked "so can you return the active tab ?" not "so can you return on activate tab ?"
to return the active tab from help file is $dialog() so his code can b
"
set %bla $dialog()
if (%bla == ID) { do stuff }
"
but i think that if $did is working on tabs it will b beter solution then $dialog()
or m i wrong ^^
Posted By: sparta Re: dialog tab question - 18/07/07 08:32 PM
Originally Posted By: bog__

from the help file

The $dialog() identifier
$dialog(name/N)
$dialog() also supports these properties:
tab returns id of tab that is currently displayed

What i know that only triggers when you click the tab, not when you have it active and click a button inside that tab. And i didn't want to use a %var to set what tab is activated, thats why i can't use if ($did == ID), that will i use for the "click" on a id inside the dialog/tab
Posted By: Wims Re: dialog tab question - 19/07/07 02:47 AM
$did(name).tab return active tab in any time or $null if there no tab
© mIRC Discussion Forums