I'm migrating the MenuBar to Toolbar, the constant sideMenuAnimSpeedInt seams not work.
Is possible to define the openSideMenu speed and close it speed?
Regards
With the new toolbar we migrated to use InteractionDialog which has its own hardcoded animation speed. We'll fix that so it takes its speed from the theme too so you should be able to use interactionDialogSpeedInt in the same way.
I am facing display issues with winforms in window 10 OS. The fonts used for forms is 'Estrangelo Edessa’. In windows 10, this font doesn't come installed by default and hence text/content looks ugly (cutoff/improperly sized). So i am thinking to change the font that looks closer to 'Estrangelo Edessa' and will be native to windows 7, 8 and 10. Please suggest one such font.
I suggest trying Verdana or Lucida Sans Unicode as they have similar proportions to Estrangelo Edessa. Alternatively, Calibri is narrower but otherwise similar and nicer to read.
You may also want to look into having your forms size the controls so text is never cut off, just in case. For example, all WinForms controls have a PreferredSize property.
i tried several things from different post, but i just cant seem to make it bold
Does anybody knows how to accomplish this?
$LabelComputer = New-Object System.Windows.Forms.Label
$LabelComputer.Text = "Computer Settings"
$LabelComputer.AutoSize = $True
$LabelComputer.Top="5"
$LabelComputer.Left="10"
$LabelComputer.Anchor="Left,Top"
$form1.Controls.Add($LabelComputer)
You're going to need to create a Font object and give that to the Font property on your label control.
Unfortunately with these objects you need to give it a few things in the constructor, so you can't just create a blank object and fill it with details like you can with the label.
To that end you can do this before adding the control to your form:
$LabelComputer.Font = [System.Drawing.Font]::new("Microsoft Sans Serif", 12, [System.Drawing.FontStyle]::Bold)
You'll notice in inside that new(...) three things:
The name of a font
The size of the text (you can omit this, but it will default to 1)
The font style, in this case bold.
You'll need to adjust the Font and Size to fit your needs.
Note, if you're creating many labels using the same font, create your font object and assign it to $LabelFont then your property on the label can be $LabelComputer.Font = $LabelFont.
Adding to above #ToTi, the following worked for me (verified using vs 5.1)
$LabelComputer.Font = new-object System.Drawing.Font('Ariel',8,[System.Drawing.FontStyle]::Bold)
I dont know about powershell version discrepancy, but for sure solution with [System.Drawing.Font]::new is not working in powershell 2.0 (Idk how its in 5.1 version).
I found another solution how you can set text in label to bold. Like this:
$LabelComputer.Font = New-Object System.Drawing.Font("Arial",8,[System.Drawing.FontStyle]::Bold)
Where instead of Bold you can use following: Regular, Bold, Italic, Underline, Strikeout
I was strugging with this today, managed to come up with this whereby it keeps the original font type and size and just amends it to a Bold style.
$mylabel.Font = [system.drawing.font]'$mylabel.Font.Name$mylabel.Font.Size, style=Bold'
Works on Version 5.1 of PowerShell.
I don't know you use what language, but if want to set bold for Lable then you can use Font.
$LabelComputer = New-Object System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point)
I hope it will help you.
Have you tried:
$LabelComputer.Font.Bold = $true
I have very strange problem.
The color of any map provider given to GMap.NET the colors are opposite.
did anyone encounter this issue?
I have a side project with same parameters and it works fine.
never mind.
It turns out that gmap.NegativeMode was set to true.
It fixed it.
thanks anyway.
When the Display Settings is set to either Small or Large the default font for a WinForm is set to Microsoft Sans Serif, 8.25pt. And everything on the form scales properly. However, when it is set to Medium it changes the default font to Microsoft Sans Serif, 7.8pt, which causes various breaking issues on the form.
Is there a specific reason why the font's size only changes on the Medium setting?
Yes, by default if you go past Medium (anything more than 125%) then Windows starts to help and emulates a video adapter set at 96 dots per inch. Same as Small. This works by Windows letting the program actually draw into an in-memory bitmap and rescaling the bitmap before blitting it to the screen. This is an appcompat feature and the result is in general not considered pretty, particularly text becomes 'fuzzy'. It does however help keep the program usable on very high resolution screens and prevents the main window from having the size of a postage stamp. Disabling this feature is the subject of this answer, otherwise the exact opposite of what you are looking for.
It works this way because 125% scaling has been around for a long time already, at least as far back as 2001 with the XP release. So programs are expected to know how to deal with it. Enabling automatic DPI scalling at 125% is not an option.