Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ Is it possible for the GUI to be updated?

Is it possible for the GUI to be updated?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2  3  4 

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #45 on Fri 24 Sep 2010 10:06 PM (UTC)

Amended on Fri 24 Sep 2010 10:07 PM (UTC) by Nick Gammon

Message
This seems to fix it:


HBRUSH CTipDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
  if (pWnd->GetDlgCtrlID() == IDC_TIPSTRING)
    return (HBRUSH)GetStockObject(WHITE_BRUSH);
  else if (pWnd->GetDlgCtrlID() == IDC_STARTUP)
  	return CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
  else if (nCtlColor == CTLCOLOR_STATIC)
    /* Visual styles enabled causes the things we draw in our WM_PAINT
    * to get cleared (and not redrawn) if we do not use a hollow brush here.
    * Likely the default behaviour differs when using theming. -JW */
    return (HBRUSH)GetStockObject(HOLLOW_BRUSH);

	return CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
}


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #46 on Fri 24 Sep 2010 10:08 PM (UTC)
Message
Worstje said:

I'll look into the proper compiler ifdefs, I am not sure which compiler introduced that flag however so it might take some figuring out.


What is it achieving? It looks on the face of it, that if you have the manifest file there, it is checking that you have the appropriate common dialog control DLL installed. Maybe some warning to delete the manifest file if the screen looks crappy?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #47 on Fri 24 Sep 2010 10:23 PM (UTC)

Amended on Fri 24 Sep 2010 10:27 PM (UTC) by Worstje

Message
Check my latest commit, I think I fixed things.

Our fix amounts to the same thing, although I like mine more. I specified my fix by specifically checking for IDC_BULB and IDC_STATIC instead as those are the ones needing special treatment, leaving the default case to be clearly visible. (I had failed to recognize that apparently checkboxes are also considered static controls.)

The pragmas seem to be the recommended way to generate a manifest. I took them from a fresh MSVC project after I saw some website suggest to put them in the stdafx.h, and the site was right - my MSVC autogenerates such lines in the stdafx.h file by default.

Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #48 on Fri 24 Sep 2010 10:47 PM (UTC)
Message
I had something similar. However I think:


#ifdef _MSC_VER >= 1400


should be:


#if _MSC_VER >= 1400


#ifdef _MSC_VER asks if _MSC_VER is defined or not (true or false).

#if _MSC_VER >= 1400 tests its value.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #49 on Fri 24 Sep 2010 10:53 PM (UTC)

Amended on Fri 24 Sep 2010 10:54 PM (UTC) by Worstje

Message
You're completely right. I was too impatient to wait for yet another compile after I tested with and without the fixes, and removed the 'def' part there in my hurry. Nice catch, and fixed in my repo. :)
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #50 on Sat 25 Sep 2010 10:07 AM (UTC)

Amended on Sat 25 Sep 2010 10:29 AM (UTC) by Worstje

Message
Regarding your commit... I took a bit closer look...

You'll want:

#if _MSC_VER >= 1400


since that checks for minimum version MSVC 2005. Likewise, the #endif has a bit of a confusing comment regarding version 1200?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #51 on Sat 25 Sep 2010 10:18 AM (UTC)
Message
I fixed it, thanks.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #52 on Sun 26 Sep 2010 05:42 AM (UTC)
Message
I made two more commits to my theming branch, both of which fix ugly graphical glitches in the world properties screen.

To my knowledge this concludes the last of the graphical glitches MUSHclient is exhibiting. If anyone knows of any other graphical glitches, feel free to point them out and I'll do about them what I can.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #53 on Sun 26 Sep 2010 06:45 AM (UTC)
Message
I incorporated those - maybe check I got it right, as I copied and pasted a bit.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #54 on Sun 26 Sep 2010 09:39 AM (UTC)
Message
No stigma attached, but why aren't you using git merge or git pull for these changes? Personally, I trust git a little bit more than I trust copypasta.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #55 on Sun 26 Sep 2010 07:43 PM (UTC)
Message
Nick Gammon said:

I fixed it, thanks.


According to a bit of debugging I just did with Twisol who couldn't get stuff to work, you did not fix it. Probably some git commit juggling that went wrong somehow.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #56 on Sun 26 Sep 2010 09:41 PM (UTC)
Message
Twisol said:

No stigma attached, but why aren't you using git merge or git pull for these changes? Personally, I trust git a little bit more than I trust copypasta.


You may trust it more, but I have had some odd error messages from it when attempting just that. And when I see one or two line changes, it seems easier to just copy them than try to do a git fetch, git merge or git cherry-pick, and then check I got what I wanted and no more.

Worstje said:

According to a bit of debugging I just did with Twisol who couldn't get stuff to work, you did not fix it. Probably some git commit juggling that went wrong somehow.


Yes, well I fixed it and now it got put back. As you say, probably one of those commits did it.

And this is why I like to see what the commit does, not blindly type in "git merge 349823987542" and hope everything is how I want it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #57 on Sun 26 Sep 2010 09:50 PM (UTC)

Amended on Sun 26 Sep 2010 09:51 PM (UTC) by Worstje

Message
Nick Gammon said:

And this is why I like to see what the commit does, not blindly type in "git merge 349823987542" and hope everything is how I want it.


Looking at the git-merge help file, I think you might want to try the --no-commit --stat parameters. That will apply the merge, yet not commit, and show a diff afterwards. If the diff isn't good enough that way, or you forget to specify it, you can probably be more effective using 'git diff --staged' which shows the changes that would be committed.

That'd make the command: git merge 349823987542 --no-commit --stat

Alternatively, you could save yourself some options, and look into the merge.stat configuration option.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


148,347 views.

This is page 4, subject is 4 pages long:  [Previous page]  1  2  3  4 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.