Home UserCP Memberlist Register Calendar FAQ
Home

Go Back   Official TouchBuddy Forum > Support > Buglist
Register FAQDonate Members List Calendar Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Display Modes
TB Bug? Toggle Button Images are limited to only 10 images?
Old 06-13-2006, 03:57 PM   #1 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 1,888
Wild.Bill.Kelso is on a distinguished road
Default TB Bug? Toggle Button Images are limited to only 10 images?

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)
Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-13-2006, 04:08 PM   #2 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,616
zorlac is on a distinguished road
Default

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)
zorlac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2006, 06:45 PM   #3 (permalink)
Junky
 
Join Date: Jun 2006
Location: Valencia, CA
Posts: 37
JRH147 is on a distinguished road
Default

Wait a second....you can set it up so the button images actually change when you press them?!!!!!

How can I do this?
JRH147 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2006, 06:52 PM   #4 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 1,888
Wild.Bill.Kelso is on a distinguished road
Default

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)
Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro



Last edited by Wild.Bill.Kelso; 06-14-2006 at 06:54 PM.
Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2006, 07:23 PM   #5 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,616
zorlac is on a distinguished road
Default


[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)
zorlac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-14-2006, 07:26 PM   #6 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,616
zorlac is on a distinguished road
Default

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)
zorlac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:59 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

  www.touch-buddy.com        Archive  


Footer
vBSkinworks Top