IUP, menu, webbrowser, tree, tabs -
i have such menu situation:
int menu_create(ihandle *menu) { hamburger = iupitem("&hamburger", "hamburger"); iupsetattributes(hamburger, "autotoggle=yes, radio=yes"); char* ce = "Ćev&apčići"; cevapcici = iupitem(utf8_to_cp1250(ce), "cevapcici"); iupsetattributes(cevapcici, "autotoggle=yes, radio=yes"); exit = iupitem("exit\talt+f4", "exit"); img4 = iuploadimage("icons\\delete_16x16.ico"); iupsetattributehandle(exit, "titleimage", img4); menu = iupmenu( iupsubmenu("file", iupmenu( hamburger, cevapcici, iupseparator(), iupitem("carro&t", "carrot"), iupseparator(), exit, null)), null); iupsetfunction("exit", (icallback)mnu_exit); ... etc... iupsethandle("menu", menu); return iup_default; }
how "radio toggle group" functionality items hamburger , cevapcici first turns off second checkmark , opposite. try don't work.
2) try webbrowser example iup suite on windows 7. problem bad black flickering appear's during resize (increase). also, background of webbrowser flicker black during showing. try same example on ubuntu , there flickering appear's not visible since background there white. here way rid of flickering or if not white background of webbrowser window on windows?
3) since webbrowser ole object (on windows) possible use "print preview" or "zoom" function reference iup handle or @ other way used ms programming tools?
wbinstance.execwb(exec.olecmdid_optical_zoom, execopt.olecmdexecopt_dontpromptuser, 150, dbnull.value)
4) how can key_up event fired iuptree?
5) interesting situation iuptabs:
frame3 = iuphbox(mat, val, null); vboxt1 = iupvbox(frame3, null); vboxt2 = iupvbox(frame3, null); iupsetattribute(vboxt1, "tabtitle", "first documents... "); iupsetattribute(vboxt2, "tabtitle", "second documents... "); tabs = iuptabs(vboxt1, vboxt2, null); hbox1 = iuphbox(tabs, iupvbox(frame, tree, frame2, null), null); dlg = iupdialog(hbox1);
when set frame3 should same both tabs gui frozes. however, have got same "mat" (iupmatrix) in both tabs because changing tabs other data load in matrix similar enough use same matrix , related functions.
what here?
1) radio attribute belongs iupmenu, not iupitem. means iupitems inside menu part of radio.
a workaround manually unset other toggle inside action callback.
2) flicker not caused iup. don't know why native controls doing it.
3) yes, have program using ole api. if take @ iupolecontrol , iupwebbrower source code , send me code it, happy add iup.
4) don't. use k_any callbacks.
5) can not reuse control in different places in dialog. must have 2 different frames, 2 different matrices. can encapsulate matrix, same function create matrix same attributes , callbacks time want one.
Comments
Post a Comment