KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Image list in KF.net
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Mon Oct 03, 2005 12:27 pm    Post subject: Image list in KF.net Reply with quote

Where do you specifiy image list?

dropdown button doesn't change button label.. cam be worked around easily though
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Oct 03, 2005 2:15 pm    Post subject: Reply with quote

Rad, can you provide more info on these ?
Back to top
View user's profile Send private message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Mon Oct 03, 2005 2:27 pm    Post subject: Reply with quote

I'd think that if you had a drop down button (in a toolbar) that when you select the item from the drop down, the button label (and perhaps the icon) would change to match the selection. I'm sure the code to change it in kf is easy enough to do.

I'm also trying to add icons to the tool buttons and such, and it says the image list is empty, and I'm trying to figure out where I can set it to use the builtin list
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Oct 03, 2005 2:35 pm    Post subject: Reply with quote

I think your first idea is doable, would have to sort-out your second question first though.

KiXforms.NET does not have a builtin image list (like kf2 has) - but its a relatively small amount of code to include your own custom imagelist, let me post an example ... 1sec ...
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Oct 03, 2005 2:47 pm    Post subject: Reply with quote

Heres a small script using ToolBars and ImageLists ... not sure if the bitmap resource will translate to well through this bbs. If you want to capture the original bitmap of this toolbar, just copy/paste all the Base64 code between quotes, save it in a file called "toolbar.b64", then decode it using...

base64 -d toolbar.b64 toolbar.jpg

Code:

Break On

$System = CreateObject("Kixforms.System")

$Form = $System.Form
$Form.Text = "ToolBar Demo"

$ToolBarImageList = $System.ImageList()
$ToolBarImageList.TransparentColor = $System.Color.FromRgb(192,192,192)
$ToolBarImageList.ImageSize = $System.Size(16,15)
$= $ToolBarImageList.Images.AddStrip($System.Bitmap.FromBase64String(ToolbarBitmapString()))

$ToolBar = $Form.Controls.Add($System.ToolBar())
$ToolBar.ImageList = $ToolBarImageList
$ToolBar.ButtonClick = "ToolBarButtonClick()"

$NewButton = $ToolBar.Buttons.Add($System.ToolBarButton("New"))
$NewButton.ImageIndex = 0

$OpenButton = $ToolBar.Buttons.Add($System.ToolBarButton("Open..."))
$OpenButton.ImageIndex = 1

$SaveButton = $ToolBar.Buttons.Add($System.ToolBarButton("Save"))
$SaveButton.ImageIndex = 2

$Form.Center
$Form.Show
While $Form.Visible
 $= Execute($Form.DoEvents)
Loop

Exit 0

Function ToolBarButtonClick()

 $e = $ToolBar.ButtonClickEventArgs

 $= $System.MessageBox.Show("You clicked the " + $e.Button.Text + " button." )

EndFunction

;; toolbar.jpg
Function ToolbarBitmapString()
$ToolbarBitmapString = "
iVBORw0KGgoAAAANSUhEUgAAANAAAAAPBAMAAABn4ly9AAAAAXNSR0IArs4c6QAAAARnQU1B

AACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAA

ADBQTFRFAAAAgAAAAIAAgIAAAACAgACAAICAwMDAgICA/wAAAP8A//8AAAD//wD/AP//////

TxMmSQAAAhRJREFUOMutlL2K4zAQxwUJqEhhXOU1FnLFllsMyN2+ygQEs7DFHWSLfZx0d7BF

XsmFuyt082XZSsxVO4ljy4r0m/98KBCGECKZ1QcY5LXN6BOtLJK9raua2XuzjSgQllL8n0iI

DvrEJ92TN+v4D6MskO8CmleFcLgKqj/K6PgA6sqNP9FA3ewcOTINBhKvuxBkHqsbM0hX4eXX

9bC7ROp7HvWPijrh3BwkHmkkqtvZQLuo8yWuFQWU4djtARLhswz458ySzscNUMmQZkUcGvw7

WirU3zWI34/sBefE06LCeNlUCrAiSQErYtIsCEDgAK4IfsNtBbqxXTXmWgMVpCnivWOI0UHi

D/P3pbwmfFaTiV7TlIgBL0R7BlIWRUOBRhGb5Pwk9lRBWjSM8Cr0JJmisQPAy+UDVIJIEjlZ

AiJAvkBz9GdoFelOFXSS0Sl6sJBJ6LHL+6qoTKzoB99SVQRpAWXQqvv42eZICQtILXo7NSBZ

r4pCmEQRP041R5oaB4EpGkqjaKcbt4p2oujtkyx2BsocnCR9WBVNMIE2klSdlKLnKAPc9ZGA

xrUSB5GC3r9IGHaxqzmru5QXRWWyDHl5I8/nWPsIGkUm6AHkobOKiy1oUQSTNex5q4+4nFWR

VZPfHkDonbMGkXUIR4Zj4yH0I2j7rCuBwtZ7Jc6Har1Fsp+c7pYY0MRs0w6R/nvwfpvxmfUP

jdFoo7Zuj2oAAAAASUVORK5CYII=

"
EndFunction
Back to top
View user's profile Send private message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Mon Oct 03, 2005 2:49 pm    Post subject: Reply with quote

can it use standard icon libs in DLLs and exe's and such? like moreicons.dll and such
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Oct 03, 2005 2:51 pm    Post subject: Reply with quote

no not yet - but thats a fine idea.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Oct 06, 2005 1:15 am    Post subject: Reply with quote

Rad,

I added a zip file to the development build area, called Sample Scripts and in there is a script called ICONS.KIX that has a honking big toolbar that I found on the Internet a while ago.

Icons.kix has a list-view and lets one browse the library and it displays the index number of each icon. The original filename for this strip is called TOOLBAR.GIF .... check it out here is a screen shot:



-Shawn
Back to top
View user's profile Send private message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Thu Oct 06, 2005 9:44 am    Post subject: Reply with quote

Now that is very handy... LOTS of icons Shocked Very Happy Cool

How about modifying the form with the textbox that will display the base64 encoding for simple cut & paste into a new KF.

or an advanced method of using checkboxes that will make the base64 code for a strip

I'm just not getting it.... Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Oct 06, 2005 2:38 pm    Post subject: Reply with quote

What is it your not getting ?
Back to top
View user's profile Send private message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Thu Oct 06, 2005 2:50 pm    Post subject: Reply with quote

the making of a strip, then encoding it, etc.

I'd much rather copy someone else's work Smile
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Oct 06, 2005 8:32 pm    Post subject: Reply with quote

I don't get strips either really.
what they are is a bunch of images put together and give it a name "strip"

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Oct 06, 2005 8:33 pm    Post subject: Reply with quote

ja and they're tedious as hell to make and change.
Back to top
View user's profile Send private message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Thu Oct 06, 2005 8:56 pm    Post subject: Reply with quote

that is why you need to make the suggestions to the icons.kix above...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Fri Oct 07, 2005 2:34 am    Post subject: Reply with quote

Think of a strip as a length of photographic film. Each picture butting up to the one beside it.

Ja, Rad's suggestion to add a base64 encoder that would dump to a text form or direct to the clipboard would siplify it for everyone else.

_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group