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

Build 45 : Another label problem

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


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Tue May 18, 2004 6:27 pm    Post subject: Build 45 : Another label problem Reply with quote

I am experiencing an odd problem with this new build. I create a form and have several labels defined and they all work wonderfully. Several of the labels are configured to be links to other pages of text on the form.

However, when I click on a link the page changes as it should, however all my labels lose all of their formatting. I lose color settings, font sizes, and not sure what else because that is what I mostly set.

I have a link on this 2nd page that goes back to the first page, and when going back the initial page has lost all formatting on the labels. The first page is created the same way both times because the same function is called each time.

This did not happen before build 45. Here is a sample program...
Code:

BREAK ON
$FORM = CREATEOBJECT("KIXTART.FORM")
$FORM.SIZE = 205,215
PAGE1()
$FORM.SHOW

WHILE $FORM.VISIBLE
   $ = EXECUTE($FORM.DOEVENTS)
LOOP

FUNCTION PAGE1()
   $grpGROUP = "NOTHING"
   $grpGROUP = $FORM.GROUPBOX
   $grpGROUP.SIZE = 200,200
   $grpGROUP.LOCATION = 0,0
   $lblLABEL1 = $grpGROUP.LABEL("<Page 2>")
   $lblLABEL1.SIZE   = 60,15
   $lblLABEL1.LOCATION = 10,30
   $lblLABEL1.FORECOLOR = "BLUE"
   $lblLABEL1.FONTBOLD = 1
   $lblLABEL1.FONTUNDERLINE = 1
   $lblLABEL1.ONCLICK = "PAGE2()"
   $lblLABEL1.ONMOUSEENTER = "$$lblLABEL1.CURSOR = 16"
ENDFUNCTION

FUNCTION PAGE2()
   $grpGROUP = "NOTHING"
   $grpGROUP = $FORM.GROUPBOX()
   $grpGROUP.SIZE = 200,200
   $grpGROUP.LOCATION = 0,0
   $lblLABEL2 = $grpGROUP.LABEL("<Page 1>")
   $lblLABEL2.SIZE   = 60,15
   $lblLABEL2.LOCATION = 10,10
   $lblLABEL2.FORECOLOR = "BLUE"
   $lblLABEL2.FONTBOLD = 1
   $lblLABEL2.FONTUNDERLINE = 1
   $lblLABEL2.ONCLICK = "PAGE1()"
   $lblLABEL2.ONMOUSEENTER = "$$lblLABEL2.CURSOR = 16"
ENDFUNCTION

_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue May 18, 2004 7:10 pm    Post subject: Reply with quote

Can you give the latest build a try (i just updated it) just want to verify if this is still a problem - can't repro it here.
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Tue May 18, 2004 7:16 pm    Post subject: Reply with quote

The problem did not happen in the latest development build.

Thanks!

_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue May 18, 2004 7:35 pm    Post subject: Reply with quote

ja, hope you (everyone) understands what is happening with the new Label control ... this is the first I have ever (iirc) updated (customized) a control "in-place" ... i am trying to provide the exact same features of Microsoft's standard label control - plus enhance it with many new and improved features ... unfortunately, I dont have the source-code to Microsoft's label so its kinda tough to test every possible feature and nuance myself ...

Really appreciate everyone's patience with this build.

-Shawn
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