trackbar

Customizing the TrackBar control in .NET

 ̄綄美尐妖づ 提交于 2019-11-29 02:46:26
I am trying to develop application that would let me mark A-B points on the timeline. How do I draw lines on the trackbar to mark a specific point/value? Also, how do I hide the ticks in the trackbar control when TickStyle is set to Both ? I think these links help you to customize your trackbar control. Second link gives you a lot of examples for customize trackbar. http://www.codeproject.com/KB/miscctrl/MAC_Slider.aspx http://www.codeproject.com/KB/miscctrl/gTrackBar.aspx If you are ready to pay for that DevExpress provides a Trackar which is named RangeTrackBar with 2 TrackBar Buttons and

Component (similar to trackbar) to enter a range of values

若如初见. 提交于 2019-11-28 18:29:33
I need a component for entering ranges. I was thinking along the lines of a trackbar with two markers. Are there "native Delphi" components that are meant for this purpose or that can simulate it easily? I got a few minutes over and wrote this: unit RangeSelector; interface uses SysUtils, Windows, Messages, Graphics, Classes, Controls, UxTheme, Dialogs; type TRangeSelectorState = (rssNormal, rssDisabled, rssThumb1Hover, rssThumb1Down, rssThumb2Hover, rssThumb2Down, rssBlockHover, rssBlockDown); TRangeSelector = class(TCustomControl) private { Private declarations } FBuffer: TBitmap; FMin, FMax

Zoom using two forms

夙愿已清 提交于 2019-11-28 04:38:25
问题 I have a multiple forms in my project. Form1 contains a pictureBox that displays a jpeg. In Form2 I have a trackBar that I would like to control the zoom level of the image in Form1. To keep it simple I only need 2 or 3 zoom levels. I've set the pictureBox to public in the Designer view. However, when I try to reference the pictureBox in Form2 it says it doesn't exist. Below is the code I'm using to call Form2 in Form1 Form2 dataWindow = new Form2(); dataWindow.ShowDialog(); So in short the

Adding a TrackBar control to a ContextMenu

浪子不回头ぞ 提交于 2019-11-27 22:38:14
问题 Is it possible to add a TrackBar control to a ContextMenu? So when I right click, my ContextMenu will drop down and a TrackBar will appear as a menu item? 回答1: If your context menu is a ContexMenuStrip , you can create an item in this way: [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.MenuStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)] public class TrackBarMenuItem : ToolStripControlHost { private TrackBar trackBar; public TrackBarMenuItem():base(new

Customizing the TrackBar control in .NET

自闭症网瘾萝莉.ら 提交于 2019-11-27 17:03:11
问题 I am trying to develop application that would let me mark A-B points on the timeline. How do I draw lines on the trackbar to mark a specific point/value? Also, how do I hide the ticks in the trackbar control when TickStyle is set to Both ? 回答1: I think these links help you to customize your trackbar control. Second link gives you a lot of examples for customize trackbar. http://www.codeproject.com/KB/miscctrl/MAC_Slider.aspx http://www.codeproject.com/KB/miscctrl/gTrackBar.aspx 回答2: If you