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

Icons.kix?

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
TDF
KiXforms Regular
KiXforms Regular


Joined: 11 Jan 2005
Posts: 46
Location: Newcastle-upon-Tyne, England

PostPosted: Fri Jan 14, 2005 9:50 am    Post subject: Icons.kix? Reply with quote

Quote:

Long: A numeric expression that evaluates to the index number of a builtin icon. Use the icon viewer script (icons.kix) for an up-to-date list of builtin icons.


Confused

I sniffed around my folder where I have KixForms, also where I installed KixForms designer. Couldn't find Icons.kix anywhere, and attempting to google for it deemed resultless. Can anybody point me to where I can grab a copy??

Cheers!
TDF

_________________
It shrunk! Shocked
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Jan 14, 2005 11:21 am    Post subject: Reply with quote

Code:

Break On

$Form = CreateObject("Kixtart.Form")
$Form.FontName = "Tahoma"
$Form.FontSize = 10

$SmallIcon = $Form.ToolButton
$SmallIcon.Location = 10,10
$SmallIcon.Width = 23
$SmallIcon.Icon = 40
$SmallIcon.OnClick = "$$ListView.View = 1"
$SmallIcon.FlatStyle = 1

$LargeIcon = $Form.ToolButton
$LargeIcon.Location = $SmallIcon.Right + 5,10
$LargeIcon.Width = 23
$LargeIcon.Icon = 38
$LargeIcon.OnClick = "$$ListView.View = 0"
$LargeIcon.FlatStyle = 1

$ListIcon = $Form.ToolButton
$ListIcon.Location = $LargeIcon.Right + 5,10
$ListIcon.Width = 23
$ListIcon.Icon = 39
$ListIcon.OnClick = "$$ListView.View = 2"
$ListIcon.FlatStyle = 1

$DetailsIcon = $Form.ToolButton
$DetailsIcon.Location = $ListIcon.Right + 5,10
$DetailsIcon.Width = 23
$DetailsIcon.Icon = 41
$DetailsIcon.OnClick = "$$ListView.View = 3"
$DetailsIcon.FlatStyle = 1

$ListView = $Form.ListView
$ListView.Location = 10,$SmallIcon.Bottom + 10
$ListView.Right = $Form.ClientWidth - 10
$ListView.Bottom = $Form.ClientHeight - 50
$ListView.Columns.Count = 1
$ListView.SmallImageList = $Form.SmallImageList
$ListView.OnClick = "ListView_Click"
$ListView.View = 1

$LargeImageList = $Form.ImageList
$LargeImageList.ImageSize = 32,32
For $i = 0 To $Form.SmallImageList.Images.Count
 $LargeImageList.Images.Add($Form.SmallImageList.Images($i))
Next

$ListView.largeImageList = $LargeImageList

Function ListView_Click

 $IconIndex = Val($ListView.FocusedItem.Text)
 $Exit.Icon = $ListView.SmallImageList.Images($IconIndex)

EndFunction

For $i = 0 To $ListView.SmallImageList.Images.Count
 $Item = $ListView.Items.Add($i,$i)
Next

$Exit = $Form.ToolButton
$Exit.Center
$Exit.Top = $ListView.Bottom + 10
$Exit.Text = "Exit"
$Exit.Icon = 37
$Exit.OnClick = "Quit()"

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

Exit 1

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
TDF
KiXforms Regular
KiXforms Regular


Joined: 11 Jan 2005
Posts: 46
Location: Newcastle-upon-Tyne, England

PostPosted: Fri Jan 14, 2005 1:27 pm    Post subject: Reply with quote

Thanks Jochen!
_________________
It shrunk! Shocked
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
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