![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| TB Bug? Toggle Button Images are limited to only 10 images? |
|
|
#1 (permalink) |
|
DD_SNACKO
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
![]() |
I don't know if this is by design, or a bug.
I have created a toggle button for the A10 Ripple Qty which starts at 02 and goes up to 12, then 01, then starts over at 02. So there is basically 12 images I need to display. I have it all working in the TBTk, but in TB it only shows the first 10 images. Can this be fixed??
__________________
(a.k.a. Snacko - DangerDogz) Touchscreen: Innovatek TM-868 8"; Running Local Mode on Windows 7 64-bit ![]() |
|
|
|
|
|
#2 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
![]() |
0-9 only, will look and see later if I can fix this for more.
__________________
![]() ![]() (Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy) |
|
|
|
|
|
#4 (permalink) |
|
DD_SNACKO
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
![]() |
You set the button type to Toggle. Then add more images. It sends the same macro you entered each time, but the image will cycle through all the images. Like for a Gear button my macro = G, and I have 2 images. One is for Gear Up and the other is for Gear down.
You can also set the Button Type = Hold. This expects only 2 images I believe. And you can specify a key to hold down, and then how to unpress the button. Like this: [new-button] type = hold name = Refuel_dump_Fuel tabname = Sys xpos = 585 ypos = 195 image_file = lomac-rugg\dump_fuel_on.gif image_file_secondary = lomac-rugg\dump_fuel_off.gif sendto = LOCK ON macro_select = rawkey:CONTROL, EXTENDEDKEY macro_select = rawkey:R macro_deselect = rawkey:R, KEYEVENTF_KEYUP macro_deselect = rawkey:CONTROL, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP [end-button] This is saying to Hold the Ctrl-R keys, and the next time this button is press, it 'lets go' of those buttons.
__________________
(a.k.a. Snacko - DangerDogz) Touchscreen: Innovatek TM-868 8"; Running Local Mode on Windows 7 64-bit ![]() Last edited by Wild.Bill.Kelso; 06-14-2006 at 06:54 PM. |
|
|
|
|
|
#5 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
![]() |
[new-button] type = toggle name = Toggle_Button tabname = Tab-2 xpos = 15 ypos = 5 # toggle buttons are actually cycle buttons # you can have up to 10 images for toggle buttons (0 - 9) # the first one is internally seen as image number 0 image_file = simple-layout\white-toggle-0.gif # then just name sucessive images like the lines below # naming them "image_file_1" to "image_file_9" # you do NOT need to add all 9 additional images # just add as many as you want/need image_file_1 = simple-layout\white-toggle-1.gif image_file_2 = simple-layout\white-toggle-2.gif image_file_3 = simple-layout\white-toggle-3.gif image_file_4 = simple-layout\white-toggle-4.gif image_file_5 = simple-layout\white-toggle-5.gif image_file_6 = simple-layout\white-toggle-6.gif image_file_7 = simple-layout\white-toggle-7.gif image_file_8 = simple-layout\white-toggle-8.gif image_file_9 = simple-layout\white-toggle-9.gif image_file_10 = simple-layout\white-toggle-10.gif image_file_11 = simple-layout\white-toggle-11.gif image_file_12 = simple-layout\white-toggle-12.gif image_file_13 = simple-layout\white-toggle-13.gif sendto = Notepad macro = Toggle Button Press{ENTER} [end-button] NOTE!! Current public release only supports primary image, plus image_file_1 to image_file_9. SO the above example will not look for or display the 10/11/12/13 images in the above config. This has been expanded in the next release to 1000 images (!!).
__________________
![]() ![]() (Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy) |
|
|
|
|
|
#6 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
![]() |
Oh, in addition, if TB starts counting up from image_file_1 and finds a number missing, it will stop at that point. So if you had:
image_file_1 image_file_2 image_file_3 image_file_5 image file number 4 is missing, it will not look any further, it will load images 1/2/3, but will not load or display image_file_5
__________________
![]() ![]() (Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy) |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|