ChrisL Posted August 5, 2010 Share Posted August 5, 2010 Is it possible to set the Width of the Pointer of a slider control. There is a _GUICtrlSlider_SetThumbLength() function to make it longer but I would like to make it fatter. It's for use on a touch screen so I need a chunkier area to touch down on. Thanks Chris [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 5, 2010 Share Posted August 5, 2010 Interesting question. I also have a touch screen device. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
ChrisL Posted August 5, 2010 Author Share Posted August 5, 2010 Interesting question. I also have a touch screen device.Yeah it needs to be a bigger surface area really for a touch screen, i have looked at scroll bars instead but they are a little narrow too. [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Bert Posted August 5, 2010 Share Posted August 5, 2010 I'm scratching my head on this one. I think it is possible, but for the moment I'm not sure on how to do it. I'm still researching. The Vollatran project  My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
KaFu Posted August 5, 2010 Share Posted August 5, 2010 I also looked through MSDN and found nothing useful ... Â OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26)Â BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16)Â ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Bert Posted August 5, 2010 Share Posted August 5, 2010 I was thinking of pining a pic on top of the slide controller to handle the issue, but I'm not sure on how to do it. The Vollatran project  My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 5, 2010 Share Posted August 5, 2010 _GUICtrlSlider_SetThumbLength() makes it generally bigger, but with the 1:2 ratio (or whatever it is), it's not really satisfying. #Include <GuiSlider.au3> $gui = GUICreate("test 2", 800, 480) $slider1 = GUICtrlCreateSlider(0, 0, 800, 110, BitOR($GUI_SS_DEFAULT_SLIDER, $TBS_FIXEDLENGTH)) _GUICtrlSlider_SetThumbLength(GUICtrlGetHandle($slider1), 100) DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($slider1), "wstr", 0, "wstr", 0) GUISetState() Do Until GUIGetMsg() = -3 I'm starting to think it's best to create your own slider control. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
ChrisL Posted August 5, 2010 Author Share Posted August 5, 2010 I was thinking of pining a pic on top of the slide controller to handle the issue, but I'm not sure on how to do it. I did a bit of googling and found this... expandcollapse popupvoid CTestSlider::OnPaint() { //CPaintDC dc(this); // device context for painting // TODO: Add your message handler code here //It said not to call this, but I need to so the control shows up //so that I can paste the bitmaps in the correct places CSliderCtrl::OnPaint(); CDC* pDC = this->GetDC(); CDC memDC2; CDC memDC; CRect rect; CRect rect2; CRect thumb; CBitmap* pOldBitmap2; CBitmap* pOldBitmap; //Get the rect of the thumb control GetThumbRect(thumb); //Get the rect of the client part of the control GetClientRect(rect); //Get another rect of the client part of control GetClientRect(rect2); //capture top left coords of thumb control CPoint point = thumb.TopLeft(); memDC2.CreateCompatibleDC(pDC); pOldBitmap2 = memDC2.SelectObject(&bitmap2); //paste bitmap onto the client area of control pDC->BitBlt(0,0,rect2.Width(), rect2.Height(), &memDC2, 0,0, SRCCOPY); memDC.CreateCompatibleDC(pDC); pOldBitmap = memDC.SelectObject(&bitmap); //paste bitmap onto thumb control of control pDC->BitBlt(point.x-2,point.y, thumb.Width()+4, thumb.Height(), &memDC, 0, 0, SRCCOPY); memDC2.SelectObject(pOldBitmap2); memDC.SelectObject(pOldBitmap); // Do not call CSliderCtrl::OnPaint() for painting messages } But I'm affraid I really don't understand it [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now