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

Form Icon in KF Classic?

 
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic
View previous topic :: View next topic  
Author Message
enahsyemotp
KiXforms Regular
KiXforms Regular


Joined: 22 Sep 2010
Posts: 40
Location: Tulsa, OK

PostPosted: Wed Jun 08, 2011 6:29 pm    Post subject: Form Icon in KF Classic? Reply with quote

I'm trying to put the finishing touches on a form based app I wrote, but am having problems getting a base64 icon embedded/displayed. I found the following post which describes how to do it in kf.net, but I can't get it to work in my classic forms!

http://www.kixforms.org/forum/viewtopic.php?t=1149

Assuming the same functionality is even available in Classic...How do I write something similar to this?

Code:
Break On
$System = CreateObject("Kixforms.System")

$Form = $System.Form()
$Form.Text = "Demo"
$Form.Icon = $System.Icon.FromBase64String(UserIconString())

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

Exit 0

Function UserIconString()
$UserIconString = "
AAABAAEAEBAQAAAAAAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAwAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD/
/wD/AAAA/wD/AP//AAD///8AAAAAAAAAAAAAAAD7+/AAAAAAv7+/v7AAAAv7+/v7+wAAD7C/
v7+/AAD7+wv7+/vwAL+/sL+/v7AA+/v7AAAA8AC/v7+/v7+wAPv7+/v7+/AAD7+/v7+/AAAL
+/v7+/sAAAC/vw+/sAAAAAD7+/AAAAAAAAAAAAAAAAAAAAAAAAD8HwAA8AcAAOADAADAAQAA
wAEAAIAAAACAAAAAgAAAAIAAAACAAAAAwAEAAMABAADgAwAA8AcAAPwfAAD//wAA
"
EndFunction
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic 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