topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 20, 2025, 11:18 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 138 139 140 141 142 [143] 144 145 146 147 148 ... 404next
3551
Official Announcements / Re: Forum Upgraded August 30, 2015 - Report issues here
« Last post by wraith808 on September 08, 2015, 03:07 PM »
I sort of got used to the bold after a while, though I found it a bit disruptive at first. But now I find the non-bold version too small and hard to read. Maybe the problem is not so much that it is not bold but that the font is of a too skiny variety. I had to zoom in on the page to make it more readable.

This.  Though I didn't have to zoom in, the font itself is less readable.
3552
Living Room / Re: How do you resist buying ever more powerful PCs?
« Last post by wraith808 on September 08, 2015, 03:06 PM »
Macs do it decently,

Bite your tongue! I had a macbook pro for years, and that touchpad was the bane of my existence!
3553
Announce Your Software/Service/Product / Re: Basic Calculator
« Last post by wraith808 on September 08, 2015, 03:00 PM »
Oh!  I thought you were trying to make it so the edges don't drop off.  For rounded windows, it's a lot easier (and harder).

First, set the following properties in the XAML:

Code: C# [Select]
  1. WindowStyle="None"
  2. AllowsTransparency="True"
  3. Background="Transparent"

Then add a border around your content.  The default is <grid></grid>.  Add around that <border></border>.  Then set the CornerRadius and the Padding.  Note that the corner radius and padding are for all sides if you set them to one number.  Otherwise, it uses the non intuitive Left, Top, Right, Bottom format, i.e. CornerRadius="8,8,8,8" is the same as CornerRadius="8".  Also, don't forget to set the FocusVisualStyle="{x:Null}" so that when the actual border is set to focused, it doesn't show the whole window as the focus rectangle.

Example from one of my projects that shows a dialog with an area for the X replacement and the buttons:

Code: C# [Select]
  1. <base:NextGenesView x:Class="Modules.Shell.ViewsAndViewModels.MessageOverlay.MessageOverlayView"
  2.              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5.              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6.              xmlns:aero="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
  7.              mc:Ignorable="d"
  8.              Focusable="True" FocusVisualStyle="{x:Null}">
  9.  
  10.     <base:NextGenesView.Resources>
  11.         <Style TargetType="{x:Type Button}">
  12.             <Setter Property="BorderBrush" Value="Gray" />
  13.             <Setter Property="BorderThickness" Value="2" />
  14.             <Setter Property="Width" Value="44" />
  15.             <Setter Property="FontWeight" Value="DemiBold" />
  16.             <Setter Property="Cursor" Value="Hand" />
  17.         </Style>
  18.  
  19.         <Style x:Key="NoChromeButton" TargetType="{x:Type Button}">
  20.             <Setter Property="Background" Value="Transparent"/>
  21.             <Setter Property="BorderThickness" Value="1"/>
  22.             <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  23.             <Setter Property="HorizontalContentAlignment" Value="Center"/>
  24.             <Setter Property="VerticalContentAlignment" Value="Center"/>
  25.             <Setter Property="Padding" Value="1"/>
  26.             <Setter Property="Template">
  27.                 <Setter.Value>
  28.                     <ControlTemplate TargetType="{x:Type Button}">
  29.                         <Grid x:Name="Chrome" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
  30.                             <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  31.                         </Grid>
  32.                         <ControlTemplate.Triggers>
  33.                             <Trigger Property="IsEnabled" Value="false">
  34.                                 <Setter Property="Foreground" Value="#ADADAD"/>
  35.                                 <Setter Property="Opacity" TargetName="Chrome" Value="0.5"/>
  36.                             </Trigger>
  37.                         </ControlTemplate.Triggers>
  38.                     </ControlTemplate>
  39.                 </Setter.Value>
  40.             </Setter>
  41.         </Style>
  42.  
  43.         <Style x:Key="MessageIcon" TargetType="{x:Type Image}">
  44.             <Style.Triggers>
  45.                 <DataTrigger Binding="{Binding Icon}" Value="None">
  46.                     <Setter Property="Visibility" Value="Collapsed" />
  47.                 </DataTrigger>
  48.                 <DataTrigger Binding="{Binding Icon}" Value="Asterisk">
  49.                     <Setter Property="Source" Value="..\ButtonIcons\Asterisk.png" />
  50.                 </DataTrigger>
  51.                 <DataTrigger Binding="{Binding Icon}" Value="Error">
  52.                     <Setter Property="Source" Value="..\ButtonIcons\Error.png" />
  53.                 </DataTrigger>
  54.                 <DataTrigger Binding="{Binding Icon}" Value="Exclamation">
  55.                     <Setter Property="Source" Value="..\ButtonIcons\Exclamation.png" />
  56.                 </DataTrigger>
  57.                 <DataTrigger Binding="{Binding Icon}" Value="Hand">
  58.                     <Setter Property="Source" Value="..\ButtonIcons\Hand.png" />
  59.                 </DataTrigger>
  60.                 <DataTrigger Binding="{Binding Icon}" Value="Information">
  61.                     <Setter Property="Source" Value="..\ButtonIcons\Information.png" />
  62.                 </DataTrigger>
  63.                 <DataTrigger Binding="{Binding Icon}" Value="Question">
  64.                     <Setter Property="Source" Value="..\ButtonIcons\Question.png" />
  65.                 </DataTrigger>
  66.                 <DataTrigger Binding="{Binding Icon}" Value="Stop">
  67.                     <Setter Property="Source" Value="..\ButtonIcons\Hand.png" />
  68.                 </DataTrigger>
  69.                 <DataTrigger Binding="{Binding Icon}" Value="Warning">
  70.                     <Setter Property="Source" Value="..\ButtonIcons\Exclamation.png" />
  71.                 </DataTrigger>
  72.                 <DataTrigger Binding="{Binding Icon}" Value="MrSmith">
  73.                     <Setter Property="Source" Value="..\ButtonIcons\MrSmith.png" />
  74.                 </DataTrigger>
  75.             </Style.Triggers>
  76.         </Style>
  77.     </base:NextGenesView.Resources>
  78.  
  79.     <base:NextGenesView.InputBindings>
  80.         <KeyBinding Command="{Binding DefaultGoCommand}" Key="Enter" />
  81.         <KeyBinding Command="{Binding DefaultNoGoCommand}" Key="Escape" />
  82.     </base:NextGenesView.InputBindings>
  83.  
  84.         <aero:SystemDropShadowChrome CornerRadius="20,5,20,5" HorizontalAlignment="Center" VerticalAlignment="Center">
  85.             <Border Margin="6,6,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" BorderBrush="Black" BorderThickness="2,2,2,2" CornerRadius="20,5,20,5" Background="Wheat">
  86.                 <Grid FocusManager.FocusedElement="{Binding ElementName=CloseX}" Focusable="True">
  87.                     <Grid.ColumnDefinitions>
  88.                         <ColumnDefinition></ColumnDefinition>
  89.                         <ColumnDefinition></ColumnDefinition>
  90.                     </Grid.ColumnDefinitions>
  91.                     <Image Grid.Column="0" VerticalAlignment="Top"  Margin="12,6,0,0"  Height="48" Width="48" Style="{StaticResource MessageIcon}"></Image>
  92.                     <DockPanel Grid.Column="1" Margin="15,0,5,0"  HorizontalAlignment="Center" VerticalAlignment="Center">
  93.                         <DockPanel DockPanel.Dock="Top" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,10">
  94.                             <Button Command="{Binding Path=DefaultNoGoCommand}" Style="{StaticResource NoChromeButton}" DockPanel.Dock="Right" Height="18" Width="18">
  95.                                 <Image Name="CloseX" HorizontalAlignment="Center" VerticalAlignment="Center"
  96.                                    Height="16" Width="16" Source="..\ButtonIcons\close.png" Focusable="True" Cursor="Hand">
  97.                                 </Image>
  98.                             </Button>
  99.                             <Label DockPanel.Dock="Left" FontWeight="SemiBold" FontSize="16" Content="{Binding Caption}"/>
  100.                         </DockPanel>
  101.                         <StackPanel HorizontalAlignment="Right" DockPanel.Dock="Bottom" Orientation="Horizontal" Height="26" Margin="0,10,15,10">
  102.                             <Button Margin="5,0,0,0" Command="{Binding Path=YesCommand}" Content="_Yes" Visibility="{Binding YesButtonVisibility}"></Button>
  103.                             <Button Margin="5,0,0,0" Command="{Binding Path=NoCommand}" Content="_No" Visibility="{Binding NoButtonVisibility}"></Button>
  104.                             <Button Margin="5,0,0,0" Command="{Binding Path=OkCommand}" Content="OK" Visibility="{Binding OkButtonVisibility}"></Button>
  105.                             <Button Margin="5,0,0,0" Command="{Binding Path=CancelCommand}" Content="Cancel" Visibility="{Binding CancelButtonVisibility}"></Button>
  106.                         </StackPanel>
  107.                     <ScrollViewer MaxHeight="400" MaxWidth="425" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
  108.                         <TextBox TextWrapping="Wrap" Text="{Binding MessageText}" Background="Wheat" BorderThickness="0" IsReadOnly="True">                            
  109.                         </TextBox>
  110.                     </ScrollViewer>
  111.                 </DockPanel>
  112.                 </Grid>
  113.             </Border>
  114.         </aero:SystemDropShadowChrome>
  115.  
  116. </base:NextGenesView>

Note: I redacted some stuff in there, so it will need some adjustments if you try to use that code.

Other examples:
http://www.ayobamiad...egular-window-in-WPF
https://csharplesson...unded-corner-window/

If you're trying to alias an image for the page... well, the image itself needs to be made for that.  And you have to use an opacity mask.

But I see now, you're using Windows Forms.  Sorry... You're on your own at that point.  :P
3554
Living Room / Re: Take the xkcd weird correlation survey
« Last post by wraith808 on September 08, 2015, 11:44 AM »
five
random
words
um
one

 ;D

I typed "five random words" without even entering in two more.

I'm a rebel like that. 8)

I wish I had done that... didn't think of it until after :)  I don't think you're a rebel... you did exactly what it told you!  ;D
3555
Developer's Corner / Re: Double Clicking, Force Touch, and other strangeness
« Last post by wraith808 on September 08, 2015, 11:42 AM »
What the smurf is a force touch? :huh:

Some sort of Jedi power?

LOL!  No... it's the new thing invented with the apple watch... and that is now going to be on all iOS devices.

http://www.theguardi...ed-haptic-technology

https://support.apple.com/en-us/HT204352

http://techcrunch.co...uch-trackpad-review/
3556
Official Announcements / Re: Forum Upgraded August 30, 2015 - Report issues here
« Last post by wraith808 on September 08, 2015, 11:39 AM »
Ok I have switched to a default of non-bolded hyperlinks; i still bold them in a few places (like inside posts) to make them more readable, but elsewhere back to non-bolded.
Remember to hit F5 to force a re-load of the css file to see the changes.

Let me know if you folks like this look better or worse.


I'd vote for the default being bolded - well, for thread titles anyways. I found them easier to read bold.

+1.
3557
Announce Your Software/Service/Product / Re: Basic Calculator
« Last post by wraith808 on September 07, 2015, 07:02 PM »
Easiest way... change your thinking.

Use a standard window frame.  Reserve a few pixels on the edges.  Color that the dominant color in your image.  Lay the image on top.  Ta da!
3558
Living Room / Re: How do you resist buying ever more powerful PCs?
« Last post by wraith808 on September 07, 2015, 04:10 PM »
I just purchased another new PC.  What?  I don't have problems. >.>

I liked my inspiron 7000, so I'm giving it to my daughter, and getting an XPS 13.

Like I said...

I don't resist.  ;D

:huh:;D
3560
Living Room / Re: Take the xkcd weird correlation survey
« Last post by wraith808 on September 07, 2015, 02:45 PM »
five
random
words
um
one

 ;D

One might argue that your first three word choices aren't random choices at all. ;)

The didn't say choose by a random method.  They said "Type five random words".  Therefore, that argument is invalid.  I was just following instructions.  ;D :P :Thmbsup:
3561
Official Announcements / Re: Forum Upgraded August 30, 2015 - Report issues here
« Last post by wraith808 on September 07, 2015, 10:09 AM »
can you just confirm to me that we are talking about the same list? maybe a screenshot,

[ Invalid Attachment ]

I'd expect 1 name (and not my own) to "stand out from the crowd", here :-[
(Screenshot taken from Pale Moon)

Buddy?  What's a buddy?!?
3562
And its very much appreciated!  :Thmbsup:

And I'm even happier that things are going well for you there!  8) :Thmbsup:
3563
Developer's Corner / Re: Double Clicking, Force Touch, and other strangeness
« Last post by wraith808 on September 06, 2015, 10:00 PM »
Sometimes, simple, no matter how inelegant it may seem, is just better.

it is very hard advice for a programmer to take -- and as much as i give it to myself i still find it hard to take -- but one of the things you learn over time as a developer is the extremely high price that one pays over time for complexity.
The initial development cost is misleading and unimportant compared to the accumulated maintenance costs over time with complexity.

Exactly.  I love making 'innovative' UIs.  But they're for me in the end.  I made what I considered one of my best UIs for a job that I had when we actually had UX testing.  It was a disaster, and I was demoralized.  So I went in, stripped everything out, and simplified out of frustration... and it got raves.

*sigh*
3564
Official Announcements / Re: Forum Upgraded August 30, 2015 - Report issues here
« Last post by wraith808 on September 06, 2015, 09:57 PM »
Do similar screenshot from simplemachines.org please :
Anybody have any clues what this could be?
.

Thank you.



Erm...We have NOTHING to do with that website...how could we possibly control what they install on their own forum?  That's like you asking us to publish a story on bbc.com...it doesn't belong to us...I am assuming this is what you mean...but unless you decide to speak to me in something resembling English, I am afraid I don't have the time, nor patience to try figure it out anymore.


Stephen.  Let it go.  Seriously.  I've been down this path, and it's frustrating and leads nowhere.
3565
General Software Discussion / Re: Windows 10 Privacy Concerns
« Last post by wraith808 on September 06, 2015, 09:56 PM »
We need to have a thread where Ewomoa posts, followed by Innuendo, back and forth... followed by someone with an O.  What is it with the green and black letter blocks for your avatars?
3566
Developer's Corner / Double Clicking, Force Touch, and other strangeness
« Last post by wraith808 on September 06, 2015, 03:59 PM »
Looking at a tweet from Jeff Atwood led me to an article from 2004 that clarified some things for me.

As coders, we come up with some strange ideas that are to get around hardware deficiencies.  We convince ourselves that we're making strides in UX, when all we're really doing is making a lot of problems for people that will come after us.

Mouse Gestures
Finger Swiping
Double Clicking
Force Touch

Heck, let's add right clicking into it.

From a developer's standpoint, they seem cool, and add a lot of functionality in an 'elegant' fashion.  But in all reality, they in general add a layer of complexity and frustration that our users will be hampered by.

Sometimes, simple, no matter how inelegant it may seem, is just better.

What is this rant for?   A reminder to myself, I suppose, of a quote by Einstein that I sometimes forget.

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
3567
^ LOL :)  Good one!
3568
Official Announcements / Re: Forum Upgraded August 30, 2015 - Report issues here
« Last post by wraith808 on September 06, 2015, 03:41 PM »
it puts a space at the beginning of your message after the quote.
can you elaborate? im not sure what i should be looking for to fix.

I can't make it happen now, though it happened just prior to this.  I'll keep an eye on it.  Like I said, it was just an annoyance.  But under certain conditions (not sure what they are), there's an extraneous space when I start typing a reply.

* wraith808 shrugs
3569
Living Room / Re: Take the xkcd weird correlation survey
« Last post by wraith808 on September 06, 2015, 02:41 PM »
five
random
words
um
one

 ;D
3570
Official Announcements / Re: Forum Upgraded August 30, 2015 - Report issues here
« Last post by wraith808 on September 06, 2015, 02:30 PM »
No, dear god, please no.

- Oshyan

This.  So much this.

Also, a minor annoyance, when you select and quote, it puts a space at the beginning of your message after the quote.  So OCD me has to go back to the beginning of the message that I reflexively type and remove that space.
3571
General Software Discussion / Re: urgent free AVG expired request!
« Last post by wraith808 on September 05, 2015, 10:28 PM »
you might contact AVG if you don't get a response from here.  Go to the site, find their contact e-mail, and mail them the screenie to make sure it's legit.
3572
Developer's Corner / Re: Writing WPF styles?
« Last post by wraith808 on September 05, 2015, 10:27 PM »
CSS is a part of my job, I could perfectly live with that.  8)

Why would I need graphics when that XML-thingy just allows me to apply styles at all?

Because the styles are limited to the resources that are included with windows.  There are a lot of styles included- not just the default aero.  And some companies make styles packaged.  But in the end, all they really are is graphics overlaid over the controls.  Or changes to the styles of the controls, i.e. 2d instead of 3d and adjustments in the drawing.  In order to change it wholesale, which is what a windows 3.1 skin would be, you need graphic resources.
3573
Developer's Corner / Re: Writing WPF styles?
« Last post by wraith808 on September 05, 2015, 09:39 PM »
I thought I'd crowdsource the research, not having found any on my own.  :D

Thanks. Meh, I was hoping WPF would allow me to just apply some CSS-like styling ...

It does.  But quite similar to CSS, you have to have the resources if you want to get crazy with it or use something that's not intrinsic to the page.
3574
Official Announcements / Re: Forum Upgraded August 30, 2015 - Report issues here
« Last post by wraith808 on September 05, 2015, 09:36 PM »
will we again have a button, making colourful posts?




I hope not :)

A bug I've found... when you quoted on the old site a post that had images, it would put in the post see prior post for images (paraphrased, I don't remember the verbiage) with a link to the post.  Now it just says [Invalid Attachment].
3575
I don't get how you use that for multiple sites?  And you just have to remember where the password is?  I like the Enigmaze idea better with a diary and UV light and you can trace any path, though that is an interesting idea I'd not seen.

Not sure whether you were referring to how I use them or not but as an example here's two cards, (like I said, I use eight):

[ Invalid Attachment ] [ Invalid Attachment ]

Say I choose for my reference Yellow + Sun, without getting too fancy, that gives me six 8+ character passwords on the first, five on the second.

Generally, I'll use the same password, (and an unrelated username to 'normal' sites), across low-grade sites, ie. any site that it doesn't matter if someone logs in as me and screws it up because, quite honestly, I couldn't care less, (I use a throw away Gmail address for these anyway).

For more important sites, (that still don't have direct monetary links, eg. DC), I'll use an individual 8+ character password off one of the cards.

For my VPS' and banks, I use a combination of two of the 8+ character passwords off two of the cards, ie. a 16+ character password, plus TFA.

Shopping sites generally get a combination of two passwords.

For my Gmail addresses I mainly use the same password plus TFA except for two that are used for banking, they have a 28 character passphrases plus TFA.

Also, the number of sites I visit is probably depressingly low compared to other net denizens, so after I've used the various passwords a few times, they've generally stuck in my mind.

The normal way you'd use these cards is you'd only have one and for each site you'd choose a symbol/colour combination but I found that harder to memorise since I then have to associate the arbitrary symbol/colour with a website, then remember which direction to read the password.

So, someone has to choose which one, (or two), of the eight cards I'm using, which symbol/colour I might be starting from, which direction I might be going, and how far along that line I might be traveling.

The eight images are encrypted on my phone, stored online (so I can access from elsewhere), and also a printed out version, using PocketMod, that's the same size as a credit card.


Pretty cool!  Thanks for sharing!
Pages: prev1 ... 138 139 140 141 142 [143] 144 145 146 147 148 ... 404next