Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Shawn Horton

@Shawn Horton
About
Posts
48
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • What the heck is a "civilian national security force"
    S Shawn Horton

    Regardless of his intent for the "security force" I am a bit more troubled by "We cannot continue to rely on our military in order to achieve the national security objectives we've set. We've got to have a civilian national security force that's just as powerful, just as strong, just as well-funded." First, why do we need a second military. Second, who is going to pay for this baby. Why is it so hard to find out more about this "plan"?

    The Back Room php database com security question

  • License
    S Shawn Horton

    I asked, because I had read about some problems in using the GPL for documentation and publishing. Of course I can't find that information now....so maybe I misread it. But the other reason I mention it, the article specifically states that the license is for the Article, not being sure if it applies to the code as well, I would be afraid to use the code for fear that someone might take the wording literally and not allow the use of code or derivative of the code. I thought of this as I was reading an article that used the GPL license, but no source code was attached, only binaries. Just food for thought.

    Site Bugs / Suggestions

  • License
    S Shawn Horton

    Yes, this is a minor deal, but when the article mentions a license, it refers to the Aricle License, not the source code itself. I assume the intention was to apply to the source code, but I have no idea for sure. If it was intended to apply to the article itself, there are a couple of licenses (GPL for one) that caution against using the license for documentation.

    Site Bugs / Suggestions

  • WPF - Changing Fill property for group of shapes
    S Shawn Horton

    CKnig wrote:

    FrameworkPropertyMetadata metaBrush= new FrameworkPropertyMetadata( Brushes.Blue, FrameworkPropertyMetadataOptions.None); SolidBrushProperty = DependencyProperty.Register("SolidBrush", typeof(SolidColorBrush), typeof(UserControl1), metaBrush); (I normaly define this in the static constructor of the class) As you can see the only difference is the use of the initialised (Blue brush) FrameworkPropertyMetadata instead of a empty UIPropertyMetadata. The rest looks fine to me.

    I did that last night, the control works great. Thanks for the help. Shawn

    C# wpf csharp help

  • WPF - Changing Fill property for group of shapes
    S Shawn Horton

    I guess I am not being to helpful to myself. I just want to create a custom control with two ellipses with a variable fill color that can be changed at runtime. The control would have a property dialog with a color picker, that would change the ellipse fill color to the selected color. That is all I need. I know I could set the fill color of each ellipse independently by modifying the Fill property in the codebehind, but I was looking for a way to just change a single "color" variable and save myself some work. I have been trying every combination of resource, dynamic property, and anything else I can find, and I posted some code somewhere between changes. Thanks for any help you can give. Shawn

    <UserControl x:Class="WpfCustomControlLibrary2.UserControl1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="300">
    <UserControl.Resources>
    <SolidColorBrush x:Key="SolidBrush" Color="#FF00FFFF"/>
    <UserControl.Resources>
    <Grid>
    <Ellipse Height="27" HorizontalAlignment="Left" Margin="50,42,0,0" Name="ellipse1" Stroke="Black" Fill="{DynamicResource SolidBrush}" VerticalAlignment="Top" Width="46" />
    <Ellipse Height="27" HorizontalAlignment="Left" Margin="10,10,0,0" Name="ellipse2" Stroke="Black" Fill="{DynamicResource SolidBrush}" VerticalAlignment="Top" Width="46" />
    </Grid>
    <UserControl>

    In the control's code behind file:

    SolidColorBrush _FillColor; ** //I want this variable to control the DynamicResource SolidBrush**

    //Property to change fill color
    public SolidColorBrush SolidBrush
    {
    get
    {
    return (SolidColorBrush) _FillColor;
    }
    set
    {
    _FillColor = value;
    }
    }

    I got an answer from the MSDN Forums

    <UserControl x:Class="WpfCustomControlLibrary2.UserControl1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    DataContext="{Binding RelativeSource={RelativeSource Self}}"
    Height="300" Width="300">
    <Grid>
    <Ellipse Height="27" HorizontalAlignment="Left" Margin="50,42,0,0" Name="ellipse1" Stroke="Black" Fill="{Binding Path=SolidBrush}" VerticalAlignment="Top" Width="46" />

    C# wpf csharp help

  • WPF - Changing Fill property for group of shapes
    S Shawn Horton

    I have a group of shapes in a WPF UserControl, and I want them to all have the same color selected by the user at runtime. I thought I could create a DynamicResource in place of a hard coded fill value and change the value through the code behind class. This would let me create a property box with a color picker and allow the user to change colors. I cannot get this to work. Below are a couple examples of what I have tried. Usercontrol XAML file: Code behind class for the control. public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); } static UserControl1() { FillColorProperty = DependencyProperty.Register("SolidBrush", typeof(SolidColorBrush), typeof(UserControl1), new UIPropertyMetadata(Brushes.PowderBlue)); } static DependencyProperty FillColorProperty; /// /// PLACEHOLDER /// public SolidColorBrush SolidBrush { get { return (SolidColorBrush)base.GetValue(FillColorProperty); } set { base.SetValue(FillColorProperty, value); } } } I have tried so many ways to do this, that I am grasping at straws now. Any help would be appreciated.

    C# wpf csharp help

  • NoScript - Firefox, CPhog and Ajax...
    S Shawn Horton

    Rocky Moore wrote:

    What are you afraid of from JavaScript? In today's world of ever increasing usage of Ajax, I would think disabling Javascript would break more and more sites..

    JavaScript is a great way to load pop-ups and page redirections, so what NoScript does is blocks JS for all sites except those on a whitelist. You just click the icon and tell it to allow JS, the page re-loads and in the future, that site is free to run JS. NoScript breaks lots of pages, but you just re-enable it for the ones that really bother you. Once you start using it you forget that pop-up ads ever existed.

    The Lounge help question java html com

  • I've Been Challenged
    S Shawn Horton

    For a 3D toolkit, you might look at Coin3D[^] This is a port of SGI's OpenInventor. I have not used it myself, but I do have a number of apps that are using it. Plus, there is a lot of newsgroup and web support for OpenInventor available that may also apply. Good luck. P.S. Their main page seems to be having issues, so start here.[^] Shawn

    The Lounge graphics game-dev csharp c++ visual-studio

  • Google Toolbar - updated without approval!
    S Shawn Horton

    Nishant Sivakumar wrote: I don't think that being a monopoly confers Google any additonal rights over their end-users. First, they are not a monopoly. Second, they state in a number of places that it is auto-updating From the features[^]page: Auto Update There's no need to check for new versions of Google Toolbar; updates are installed automatically, so you'll always have the latest and greatest version. Your Privacy Google respects and protects our users' privacy. Periodically, the Google Toolbar’s auto-update feature will contact our servers to see if you’re running the most current version. In addition, Google may collect information about web pages that you view when you use advanced features such as PageRank, SpellCheck, AutoLink, and WordTranslator. However, these advanced features can be easily disabled or re-enabled at any time by selecting "Privacy Information" under "Help" in the Toolbar's "Google" menu. To learn more, please read the Toolbar privacy policy. From the Version Information page[^] The Google Toolbar updates itself automatically, so you never need to install a newer version as long as you use the Toolbar. You can check the version history of the Google Toolbar here. Tip: You can determine which version of the Toolbar you have by clicking the "Google" menu on the Toolbar and selecting "Help" > "About Google Toolbar" And I would be suprised if the EULA did not mention it. Shawn

    The Lounge help announcement

  • Java the ultimate scam???
    S Shawn Horton

    What I find more interesting is that it was not Sun that gave the world the only decent Java application for the desktop, it was IBM and their Eclipse project. I know Eclipse is not lightning quick, but it sure does hold its own when compared to .NET applications that I have seen. I have been using the "speedy" Java applications from Merant/Serena and I have to ask, "Why can't you use the technology that you are supporting. As original and current members of the Eclipse board, why can you not make an application that is even half the speed of Eclipse? I think Java has potential with the right companies and people behind it, but with Sun's apparent desire to limit Java's abilities, it may never happen. I think the blame here is in the wrong place, it isn't really Java's fault, but Sun's. Sad when company politics and policies ruin something that could have been. Shawn

    The Back Room performance question java html com

  • Adobe Acrobat not opening
    S Shawn Horton

    If it is anything like the problem with Acrobat Reader (flash the splash screen, hand, use all the CPU cycles), delete the files in your %temp% directory.

    The Lounge adobe performance help announcement

  • US Internet
    S Shawn Horton

    Which part of Colorado are you going to be in? If the Denver area, give me a rough location and I can find you a hotel with access. Otherwise, I would suggest the AOL route also. I know it installs some wierd drivers, but they actually uninstall pretty easily, and you can just ignore the AOL interface and browse with your Browser of choice, or e-mail client of choice. Just remember to cancel when you finish, or they will bill you!!! Shawn

    The Lounge csharp javascript asp-net com

  • Spectacles
    S Shawn Horton

    Smitha Vijayan wrote: have been having frequent headaches recently, especially after long hours in front of the monitor and I went for a check up at the eye doc. And it seems my eye sight is perfect. But the doc said maybe I can use a 0.5 specs, so that it will enable better viewing, thereby reducing the strain on my eye. Been there, done that. I never had the need for glasses, but the headaches at work were too much. The first doctor gave me a very light prescription, with anti-glare coating. That worked for a while, but my eyes were worse for my next checkup. That doctor increased the strength, and eventually I had to start wearing the glasses more often for other things. At work, I started shutting off one set of overhead lights, and I could actually use the computer without glasses for a while. Eventually I got an LCD at home and at work, and I no longer use the glasses, and my eyesight is improving. My conclusions from this experience: Monitor glass is not your friend, it reflects light directly in your eyes, Glasses are not your friend, you begin to rely on them too much, Overhead lights are not your friends, shut them off and put a light off to the side or somewhere where there will be no glare off the monitor, Lower the brightness, make white a bit less extreme, Monitor size is irrelevent, I was using 19-23" monitors, and I am now at 17" LCD's and I can see, Anti-glare coating is good if you get glasses, but try to have NO prescription on the glasses, Doctors need to sit in front of a monitor and actually understand what is happening. Now I can park myself in front of my monitor and still have 20-20 vision:). Good luck with everything, Shawn

    The Lounge

  • GPL code on CP?
    S Shawn Horton

    Michael A. Barnhart wrote: Which if you read the license and the explaination of what they interpret linking to be (any usage of any functions compiled into your code or used at runtime by your code is linking) which means that any software that runs on linux is also GPL Where did you get that idea? Sounds like BS to me.

    The Lounge question

  • Credit history
    S Shawn Horton

    I agree about getting a low limit credit card. You may want to start a small savings account at a credit union, and usually after 3-6 months they will allow you to get a credit card through them. As for a phone, go with a pre-paid cell phone. It is a pretty decent deal, and if the service sucks, you don't have a contract either. I assume that you will have utilities in your name? They are a great way to build credit. It takes time to build a credit score, but only takes a minute to blow it. Give it some time, and just use cash where you can. Shawn

    The Back Room csharp html com question

  • Computer freeze: Sounds like skipping record
    S Shawn Horton

    but other than that it's dead to the world, with the screen frozen and a skipping sound like a broken record. That sound sure "sounds" to me like a flaky drive. Just for fun, find a used CD-R, and scratch it up. Place that in your CD-ROM, fire it up and see how many problems you get. I have seen a number of problems magically fix themselves by removing a scratched CD from the drive. If a CD can cause that much flakiness, just imagine what a bad spot on the HD can do. Shawn

    The Lounge csharp adobe sysadmin hardware

  • The Russians don't mess around!
    S Shawn Horton

    You saw it, I own it! I never could get the DJGPP compiler that came with it to work quite right!

    The Lounge csharp c++ html com tools

  • Software Dev Mgmt Book ???
    S Shawn Horton

    I hear this one is pretty good: http://www.amazon.com/exec/obidos/tg/detail/-/0836278445/qid=1034342092/sr=1-8/ref=sr_1_8/102-3956388-5560916?v=glance or anything else by Scott Adams.

    The Lounge help question learning

  • MS OEM licensing
    S Shawn Horton

    Tomasz Sowinski wrote: Have no idea - user doesn't waste time on formatting HD? Not even that, according to Slashdot (yes even I take that with a grain of salt). The contract with MS says that every PC must have an Operating System installed, so, Dell is selling the PC with FreeDOS instead of Windows. I still can't figure out how the costs can be the same. Somewhere, deep inside the price, the OS must be accounted for. Given that a drive image is a drive image, I would bet that the manufacturing costs are the same for both Operating Systems, so where is the refund for the cost of Windows? Shawn

    The Lounge question hardware

  • Free speach, beer, or plain stupidity?
    S Shawn Horton

    Tim Smith wrote: GPL is very restrictive for users. Read it. I have read it, could you please elaborate on how it restricts a user? I only see restrictions placed on using or modifying the code. Shawn

    The Lounge apache question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups