Runtime Library & Gadget ID

Just starting out? Need help? Post your questions and find answers here.
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Runtime Library & Gadget ID

Post by QuimV »

I have this code inside a XML file creating a dynamic dialog:

Code: Select all

<vbox>
<listicon name='lstAppp' 
              id='#PB_Any' 
              flags='#PB_ListIcon_GridLines|#PB_ListIcon_AlwaysShowSelection|#PB_ListIcon_FullRowSelect' 
              height='200'
              text='Application' 
              width='350' 
              OnEvent='events_lstAppp()'/>
</vbox>"
How can I access to "listIcon Gadget Id" in order to add a column to it? I mean, execute:

Code: Select all

AddGadgetColumn(lstApppId, 1, "Mode", 50)
Thanks in advanced
QuimV
said
Enthusiast
Enthusiast
Posts: 342
Joined: Thu Apr 14, 2011 6:07 pm

Re: Runtime Library & Gadget ID

Post by said »

QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: Runtime Library & Gadget ID

Post by QuimV »

My problem is that I don't have the DialogId.
My XML is:

Code: Select all

	"<dialogs>" +
	"	<window name='wMain' id='#PB_Any' flags='#PB_Window_Tool|#PB_Window_SystemMenu|#PB_Window_ScreenCentered' height='300' text='triAppManager' width='400' minwidth='auto' maxwidth='auto' minheight='auto' maxheight='auto'>" +
	"		<vbox name='vbox1' id='#PB_Any' height='0' width='0' align='top/left' expand='yes' spacing='15'>" +
	"			<hbox name='hboxApp' id='#PB_Any' height='0' width='0' align='top/left' expand='yes' spacing='5'>" +
	"				<vbox name='vbox2' id='#PB_Any' height='0' width='0' align='top/left' expand='yes' spacing='5'>" +
	"					<listicon name='lstAppp' id='#PB_Any' flags='#PB_ListIcon_GridLines|#PB_ListIcon_AlwaysShowSelection|#PB_ListIcon_FullRowSelect' height='200' text='Application' width='350' OnEvent='events_lstAppp()'/>" +
	"				</vbox>" +
	"			</hbox>" +
	"			<hbox name='hboxDetails' id='#PB_Any' height='0' width='0' align='top/left' expand='yes' spacing='5'>" +
	"				<vbox name='vboxFields' id='#PB_Any' height='0' width='0' align='top/left' expand='no' spacing='5'>" +
	"					<hbox name='hbox1' id='#PB_Any' height='25' width='0' align='top/left' expand='no' spacing='15'>" +
	"						<text name='txtDelay' id='#PB_Any' flags='#PB_Text_Right' height='25' text='Delay (s):' width='0'/>" +
	"						<string name='strDelay' id='#PB_Any' flags='#PB_String_Numeric' height='25' text='0' width='50'/>" +
	"					</hbox>" +
	"					<text name='txtPath' id='#PB_Any' text='Path:'/>" +
	"					<string name='strPath' id='#PB_Any' text='...'/>" +
	"					<button name='btnPath' id='#PB_Any' height='40' text='Path' OnEvent='events_btnPath()'/>" +
	"				</vbox>" +
	"			</hbox>" +
	"			<hbox name='hboxTop' id='#PB_Any' height='40' width='0' align='top/left' expand='yes' spacing='5'>" +
	"				<button name='btnPause' id='#PB_Any' height='0' text='Pause' width='0' OnEvent='events_btnPause()'/>" +
	"				<button name='btnResume' id='#PB_Any' text='Resume' width='0' OnEvent='events_btnResume()'/>" +
	"				<button name='btnStart' id='#PB_Any' text='Start' width='0' OnEvent='events_btnStart()'/>" +
	"				<button name='btnStop' id='#PB_Any' text='Stop' width='0' OnEvent='events_btnStop()'/>" +
	"			</hbox>" +
	"			<hbox name='hboxBottom' id='#PB_Any' height='40' width='0' align='top/left' expand='yes' spacing='5'>" +
	"				<button name='btnInstallService' id='#PB_Any' text='Install Service' width='0' OnEvent='events_btnInstallService()'/>" +
	"				<button name='btnRemoveService' id='#PB_Any' text='Remove Service' width='0' OnEvent='events_btnRemoveService()'/>" +
	"			</hbox>" +
	"			<hbox name='hboxStatus' id='#PB_Any' height='0' width='0' align='top/left' expand='yes' spacing='5'>" +
	"				<text name='txtStatusLabel' id='#PB_Any' flags='#PB_Text_Right' text='Status:' width='0'/>" +
	"				<text name='txtStatus:' id='#PB_Any' text='Ready.' width='0'/>" +
	"			</hbox>" +
	"		</vbox>" +
	"	</window>" +
	"</dialogs>"

What is the Dialog ID?

Thanks in advanced
QuimV
said
Enthusiast
Enthusiast
Posts: 342
Joined: Thu Apr 14, 2011 6:07 pm

Re: Runtime Library & Gadget ID

Post by said »

The DialogID is the return of either CreateDialog() or OpenXMLDialog(), you must have used either one to create your dynamic dialog :!:
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: Runtime Library & Gadget ID

Post by QuimV »

:D I understand @said
Thank You.
QuimV
said
Enthusiast
Enthusiast
Posts: 342
Joined: Thu Apr 14, 2011 6:07 pm

Re: Runtime Library & Gadget ID

Post by said »

QuimV wrote::D I understand @said
Thank You.
You are welcome :D however i made a mistake (OpenXMLDialog() does not return the dialog-id, you can only use CreateDialog() return value) ... i dont use the dialog lib :mrgreen:
Post Reply