Printer-friendly copy Email this topic to a friend
Top MechCommander MechCommander 2 topic #5317
View in linear mode

Subject: "RE: Source Code Work" Previous topic | Next topic
rollinWed Oct-06-10 12:25 PM
Member since Aug 25th 2010
114 posts
Click to send email to this author Click to send private message to this authorClick to add this author to your buddy list
#3. "RE: Source Code Work"
In response to In response to 0


          

to fix the editor resize bug look into the editorinterface.cpp and change the code to this

search for the line "case WM_SIZE:" and change the case with the following code




case WM_SIZE:
{
float w = LOWORD(lParam);
float h = HIWORD(lParam);
/* disabled by mgto */ //windowSizeChanged = true;

/* by mgto */
//MessageBox("wm_size"); // use this for debugging
if (w != g_newWidth && h != g_newHeight){

if ( (16 < (w - g_newWidth)) || (16 < (h - g_newHeight)) ){ // make bigger
windowSizeChanged = true;
}

if ( (-w + g_newWidth) > 20 || (-h + g_newHeight) > 20 ){ // make smaller
windowSizeChanged = true;
}

if (windowSizeChanged){
g_newWidth = w + 16; //scrollbar thickness
g_newHeight = h + 16; //scrollbar thickness
}
}

/* by mgto */


/* disabled by mgto */ //g_newWidth = w + 16/*scrollbar thickness*/;
/* disabled by mgto */ //g_newHeight = h + 16/*scrollbar thickness*/;

retVal = GameOSWinProc( m_hWnd,message,wParam,lParam );
if (editor && bThisIsInitialized)
{
editor->update();
}
//EditorObjectMgr::instance()->update();
}
break;
}

  

Alert Printer-friendly copy | Reply | Reply with quote

Source Code Work [View all] , rollin, Wed Aug-25-10 09:06 AM
 
Subject Author Message Date ID
RE: Source Code Work
Aug 26th 2010
1
RE: Source Code Work
Sep 01st 2010
2
RE: Source Code Work
Nov 26th 2010
19
      RE: Source Code Work
Nov 26th 2010
20
           RE: Source Code Work
Nov 26th 2010
21
                RE: Source Code Work
Nov 26th 2010
22
RE: Source Code Work
Oct 06th 2010
3
RE: Source Code Work
Oct 06th 2010
4
RE: Source Code Work
Oct 07th 2010
5
RE: Source Code Work
Oct 10th 2010
6
      RE: Source Code Work
Oct 10th 2010
7
           RE: Source Code Work
Oct 11th 2010
8
                RE: Source Code Work
Oct 11th 2010
9
                RE: Source Code Work
Oct 12th 2010
10
                     RE: Source Code Work
Oct 12th 2010
11
                     RE: Source Code Work
Oct 12th 2010
12
                          RE: Source Code Work
Oct 13th 2010
14
                     RE: Source Code Work
Oct 12th 2010
13
RE: Source Code Work
Nov 25th 2010
15
RE: Source Code Work
Nov 25th 2010
16
      RE: Source Code Work
Nov 25th 2010
17
           RE: Source Code Work
Nov 25th 2010
18
                RE: Source Code Work
Nov 29th 2010
23
                     RE: Source Code Work
Nov 29th 2010
24
                          RE: Source Code Work
Nov 29th 2010
25
                          RE: Source Code Work
Nov 29th 2010
28
                               RE: Source Code Work
Nov 29th 2010
29
                               RE: Source Code Work
Nov 30th 2010
34
                               RE: Source Code Work
Nov 30th 2010
33
                               RE: Source Code Work
Nov 30th 2010
36
                               RE: Source Code Work
Nov 30th 2010
38
                               RE: Source Code Work
Nov 30th 2010
37
                               RE: Source Code Work
Dec 16th 2010
65
                                    RE: Source Code Work
Dec 17th 2010
66
                                         RE: Source Code Work
Dec 17th 2010
67
                          RE: Source Code Work
Nov 29th 2010
26
                               RE: Source Code Work
Nov 29th 2010
27
                                    RE: Source Code Work
Nov 29th 2010
30
                                    RE: Source Code Work
Nov 29th 2010
31
                                    RE: Source Code Work
Nov 29th 2010
32
                                    RE: Source Code Work
Nov 30th 2010
35
                                         RE: Source Code Work
Nov 30th 2010
39
                                              RE: Source Code Work
Nov 30th 2010
40
                                              RE: Source Code Work
Nov 30th 2010
41
                                                   RE: Source Code Work
Nov 30th 2010
42
                                                   RE: Source Code Work
Dec 01st 2010
44
                                                   RE: Source Code Work
Dec 01st 2010
43
                                                        RE: Source Code Work
Dec 01st 2010
45
                                                             RE: Source Code Work
Dec 02nd 2010
46
                                                                  RE: Source Code Work
Dec 02nd 2010
47
                                                                       RE: Source Code Work
Dec 02nd 2010
48
                                                                       RE: Source Code Work
Dec 03rd 2010
49
                                                                            RE: Source Code Work
Dec 03rd 2010
50
                                                                                 RE: Source Code Work
Dec 03rd 2010
51
                                                                                 RE: Source Code Work
Dec 03rd 2010
52
                                                                                 RE: Source Code Work
Dec 03rd 2010
53
                                                                                      RE: Source Code Work
Dec 03rd 2010
54
                                                                                      RE: Source Code Work
Dec 04th 2010
55
                                                                                      RE: Source Code Work
Dec 04th 2010
56
                                                                                      RE: Source Code Work
Dec 05th 2010
57
                                                                                      RE: Source Code Work
Dec 05th 2010
58
                                                                                      RE: Source Code Work
Dec 05th 2010
59
                                                                                      RE: Source Code Work
Dec 06th 2010
60
                                                                                           RE: Source Code Work
Dec 06th 2010
61
RE: Source Code Work
Dec 07th 2010
62
RE: Source Code Work
Dec 08th 2010
63
      RE: Source Code Work
Dec 08th 2010
64
           RE: Source Code Work
Dec 22nd 2010
68
                RE: Source Code Work
Dec 23rd 2010
69
                     RE: Source Code Work
Mar 14th 2011
70
                          RE: Source Code Work
Sep 05th 2011
71
                               RE: Source Code Work
Sep 06th 2011
72
                                    RE: Source Code Work
Sep 07th 2011
73
                                         RE: Source Code Work
Sep 08th 2011
74
                                              RE: Source Code Work
Sep 08th 2011
75
                                                   RE: Source Code Work
Sep 09th 2011
76

Top MechCommander MechCommander 2 topic #5317 Previous topic | Next topic
Powered by DCForum+ Version 1.27
Copyright 1997-2005 DCScripts.com