Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Merge the code for the two dialog functions
#4
There seems to be  bug in either the forum software or the copy for qm forum function that is adding an extra space after the tab in the menu definitions first is with copy for forum second is bbcode. 
 
Code:
Copy      Help
str s=
;1 normal
;2 disabled
;3 checked
;-
;4 radio group
;5 radio group, checked
;6 radio group
;-
;7 delete
;8 delete
;9 delete
;10 bold
;11 left-text    right-text

MenuPopup m.AddItems(s)

m.DisableItems("2")
m.CheckItems("3")
m.CheckRadioItem(4 6 5)
m.DeleteItems("7-9")
m.SetBold(10)

int i=m.Show

str s1 s2
if(i and m.GetItemText(i s1 s2))
,out s1
,out s2

str s=
;1 normal
;2 disabled
;3 checked
;-
;4 radio group
;5 radio group, checked
;6 radio group
;-
;7 delete
;8 delete
;9 delete
;10 bold
;11 left-text    right-text

MenuPopup m.AddItems(s)

m.DisableItems("2")
m.CheckItems("3")
m.CheckRadioItem(4 6 5)
m.DeleteItems("7-9")
m.SetBold(10)

int i=m.Show

str s1 s2
if(i and m.GetItemText(i s1 s2))
,out s1
,out s2


Messages In This Thread
RE: Merge the code for the two dialog functions - by Kevin - 12-28-2022, 02:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)