Print Page | Close Window

SOLVED: LoadStateFromString

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11362
Printed Date: 15 June 2025 at 5:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: LoadStateFromString
Posted By: Baldur
Subject: SOLVED: LoadStateFromString
Date Posted: 09 July 2008 at 10:34am

I have changed from 11.2.2 to version 12.0.0.

In my application i use CmdBars.SaveStateToString(True, True, True) to save the userschange.
At Programstart i use LoadStateFromString to rebuild the usersettings.
 
After that, additional i create some temporary buttons in the SystemButton.CommandBar for a recentfile-list.
 
In 11.2.2 it works fine.
In 12.0.0 the buttons will not be drawn, i see only an empty  button !
 
Also, if i don't need tooltips for any control, i cleared them with:
Control.Tooltip = ""
Now, the tooltip shows automaticly the caption as tooltip.
This makes no sense !!
I can't set a space to this, because i than get an empty tooltipwindow.
 



Replies:
Posted By: Oleg
Date Posted: 09 July 2008 at 12:25pm
Hi,
 
Need to see your code.
 
If you don't need tooltips just set .Options.ToolBarScreenTips  = False


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Baldur
Date Posted: 10 July 2008 at 6:04am
Ok, in version 12.0.0 LoadStateFromString rebuilds all controls.
So i must set my local variable, that holds the created systembuttom, with the new object of the systembutton.
 
Than it works as expected.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net