emy
New Member
Hello
Posts: 45
|
Post by emy on Oct 18, 2021 6:35:34 GMT -5
Hello every one, Probably some one will find the solution. The slider vertical is working. The slider horizontal doesn't work. I can't see the solution, I did try different manner, but no success ! I one of You can see the solution, I will be happy. ThanK You so much Emy SliderEditHV.bas (2.99 KB)
|
|
|
Post by tsh73 on Oct 18, 2021 8:07:40 GMT -5
Looking on sub check1(...) it should be something along this
Sub check2 handle$, a, b #1.ch2 "DelSegment Slider2" if MouseX < 0 then MouseX = 0 'limit the Mouse range to the size of the graphic box if MouseX > 400 then MouseX = 400 'limit the Mouse range to the size of the graphic box #1.ch2, "down" #1.ch2, "fill 255 255 255" 'color1 ' #1.ch2, "color 0 0 0" 'color2 #1.ch2, "backcolor 200 0 0" 'color3 #1.ch2, "place ";MouseX;" ";0;"; size 1" #1.ch2, "boxfilled ";MouseX + 10;" ";23 #1.ch2, "Flush Slider2" value2 = ((MouseX)-(2*MouseX)+200) #1.level2, "Value2 = " + str$(value2) End Sub
|
|
emy
New Member
Hello
Posts: 45
|
Post by emy on Oct 18, 2021 14:02:49 GMT -5
Hi tsh73, thank You for Your answer. I don’t Know if You have tryed, but it doesn’t work. Regards.
|
|
|
Post by tsh73 on Oct 18, 2021 15:30:22 GMT -5
Well, it works for me This is your initial program do: My guess that "The slider horizontal doesn't work" - is horizontal scrollbar half-filled Now this I got after substituting my piece in your program. See? Works for me.
|
|
emy
New Member
Hello
Posts: 45
|
Post by emy on Oct 19, 2021 13:54:42 GMT -5
Hello tsh73 , to make it run, I had to copy Your sub and paste to my prog. Now it works correctly. The first time, I only type it. I check many time with no success. And I check almost every letter. I did not see any mistake. Now it Ok, Thank You tsh73 Regards.
|
|
|
Post by mpranger on Mar 4, 2022 9:20:48 GMT -5
I have to download it? You can't just post the code so we can see it?
|
|
|
Post by Rod on Mar 4, 2022 11:01:50 GMT -5
Short code is fine to post. Longer code is ok to post if it is correctly posted in a code box. If it isn’t then long listings can choke the browser, especially on a phone. So it is ok to post a link.
|
|
emy
New Member
Hello
Posts: 45
|
Post by emy on Mar 4, 2022 13:35:56 GMT -5
I don't see how I can post a xxxxxx.bas file or xxxxxx.zip file as attachment.
|
|
|
Post by Rod on Mar 4, 2022 13:48:04 GMT -5
Yes, a link is best. The forum would cost a lot more to run and would need a lot more management if we hosted attachments. So please don’t worry. Your link was just fine.
The forum is staffed and managed and paid for by enthusiasts. We do the best we can. Mpranger was wrong to question your link, we would encourage large programs be shared via a link.
But most code can be shared by posting it using the Code tags, the [C] symbol above the message dialog.
|
|