Changeset 71 for trunk/NewView/MainForm.pas
- Timestamp:
- Feb 8, 2007, 8:38:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/MainForm.pas
r65 r71 1760 1760 Topic: TTopic; 1761 1761 begin 1762 LogEvent(LogDebug, 'DisplayTopicByResourceID id:' + IntToStr(ID)); 1762 1763 Topic := FindTopicByResourceID( ID ); 1763 1764 if Topic = nil then 1764 1765 begin 1766 LogEvent(LogDebug, 'DisplayTopicByResourceID - topic not found'); 1765 1767 Result := false; 1766 1768 exit; … … 1769 1771 result := true; 1770 1772 1773 LogEvent(LogDebug, 'DisplayTopicByResourceID topic: "' + Topic.Title + '"'); 1771 1774 DisplayTopic( Topic ); 1772 1775 end; … … 2262 2265 2263 2266 Procedure TMainForm.DebugShowParamsMIOnClick (Sender: TObject); 2264 var2265 tmpWindowPosition : TWindowPosition;2266 2267 Begin 2267 2268 with InformationForm.InformationMemo do … … 6841 6842 Procedure TMainForm.NHMDisplayIndex( Var Msg: TMessage ); 6842 6843 begin 6844 LogEvent(LogNHM, 'NHMDisplayIndex'); 6843 6845 RestoreWindow; 6844 6846 DisplayIndex; … … 6851 6853 Procedure TMainForm.NHMDisplayContents( Var Msg: TMessage ); 6852 6854 begin 6855 LogEvent(LogNHM, 'NHMDisplayContents'); 6853 6856 RestoreWindow; 6854 6857 DisplayContents; 6855 6858 // if nothing is being display already... 6856 6859 if Windows.Count = 0 then 6860 begin 6857 6861 // display first topic 6858 6862 DisplaySelectedContentsTopic; 6863 end; 6859 6864 end; 6860 6865 6861 6866 Procedure TMainForm.NHMTopicByResourceID( Var Msg: TMessage ); 6862 6867 begin 6868 LogEvent(LogNHM, 'NHMTopicByResourceID'); 6863 6869 RestoreWindow; 6870 DisplayContents; 6864 6871 DisplayTopicByResourceID( Msg.Param1 ); 6865 6872 end; … … 6871 6878 Topic: TTopic; 6872 6879 begin 6880 LogEvent(LogNHM, 'NHMTopicByPanelName'); 6873 6881 RestoreWindow; 6874 6882 … … 6877 6885 SharedMemory.Free( pMessageMem ); 6878 6886 6887 LogEvent(LogNHM, '....NHMTopicByPanelName panel:' + PanelName); 6879 6888 Topic := FindTopicByName( PanelName ); 6880 6889 if Topic = nil then … … 6893 6902 pSearchText: pchar; 6894 6903 begin 6904 LogEvent(LogNHM, 'NHMSearch'); 6895 6905 RestoreWindow; 6896 6906 … … 6904 6914 pSearchText: pchar; 6905 6915 begin 6916 LogEvent(LogNHM, 'NHMGlobalSearch'); 6906 6917 RestoreWindow; 6907 6918 … … 6913 6924 Procedure TMainForm.NHMShowUsage( Var Msg: TMessage ); 6914 6925 begin 6926 LogEvent(LogNHM, 'NHMShowUsage'); 6915 6927 RestoreWindow; 6916 6928 ShowUsage; … … 6921 6933 pFileNames: pchar; 6922 6934 begin 6935 LogEvent(LogNHM, 'NHMSetFiles'); 6923 6936 // NOT restoring window here because this is not something the user should see... 6924 6937 pFileNames := pstring( Msg.Param1 ); … … 6931 6944 pTitle: pchar; 6932 6945 begin 6946 LogEvent(LogNHM, 'NHMSetTitle'); 6933 6947 pTitle := pstring( Msg.Param1 ); 6934 6948 MainTitle := StrPas( pTitle ); … … 6942 6956 ps: pstring; 6943 6957 begin 6958 LogEvent(LogNHM, 'NHMTest'); 6944 6959 ps := PString( Msg.Param1 ); 6945 6960 ShowMessage( 'Got test message: ' + ps^ );
Note:
See TracChangeset
for help on using the changeset viewer.