Just starting out? Need help? Post your questions and find answers here.
QuimV
Enthusiast
Posts: 337 Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN
Post
by QuimV » Mon Nov 20, 2017 11:01 am
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
Posts: 342 Joined: Thu Apr 14, 2011 6:07 pm
Post
by said » Mon Nov 20, 2017 11:35 am
QuimV
Enthusiast
Posts: 337 Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN
Post
by QuimV » Mon Nov 20, 2017 11:47 am
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
Posts: 342 Joined: Thu Apr 14, 2011 6:07 pm
Post
by said » Mon Nov 20, 2017 12:15 pm
The DialogID is the return of either CreateDialog() or OpenXMLDialog(), you must have used either one to create your dynamic dialog
QuimV
Enthusiast
Posts: 337 Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN
Post
by QuimV » Mon Nov 20, 2017 12:17 pm
I understand @said
Thank You.
QuimV
said
Enthusiast
Posts: 342 Joined: Thu Apr 14, 2011 6:07 pm
Post
by said » Mon Nov 20, 2017 12:20 pm
QuimV wrote: I understand @said
Thank You.
You are welcome
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