MDI related
MDI related
(OP)
I have this regular MDI application. Like any MDI app, when I open sheets through MDI window, they are added as menu items and I can nevigate from one sheet to another sheet using menu. Is there any alternate method to do the same thing without using menu?
Thanks,
Thanks,

Talk To Other Members
RE: MDI related
you can build a statusbar at the bottom of the Frame LIKE Windows OS,when you open a sheet,register the window in the status bar,when the window is registered,"create" and show a button in the statusbar datawindow,and in the datawindow's buttonclicked event ,get current clicked window's classname,and try to open.
RE: MDI related
detail? Also please note that in my applicaton froma main window, I am opening the same window (sheet) with datawindow results again and again so I am wondering if classname still works because classname will return the same name. Any thoughts?
RE: MDI related
you are right,if opening the same sheet,the classname() returns same,i suggest you declaring an instance Variables to Flag diffent instance Sheet And Show in the Title,then you can nevigate one to another using the Window's Title,you can refer to the Sybase PowerBuilder Code Examples (w_mdi_first_next_sheet)
sorry ,i have some idea about this ,but because of my poor English,it's Difficult to Show More Detail.
RE: MDI related
RE: MDI related
if a sheet is opened ,you can use window.bringtotop = true to active the sheet.
find the function mf_open_sheet(string name) in the object m_mdi_first_next,i added some test script:
CODE
window list[]
integer cnt,i
string temp
if mf_is_open(name) then // if it is already open then list the open sheets
cnt = mf_list_sheets(list)
for i = 1 to cnt
temp = temp + list[i].title + '~r~n'
IF name = list[i].Title THEN//Founded
list[i].BringtoTop = TRUE
END IF
next
//messagebox('Warning',name +' is already open. The list of open sheets is below.~r~n~r~n'+temp,exclamation!)
else
opensheetwithparm(w_instance,name,parentwindow,0,original!)
end if
RE: MDI related
Thanks again for all your suggestions / help.