Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - SOLVED: LoadStateFromString
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: LoadStateFromString

 Post Reply Post Reply
Author
Message
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: LoadStateFromString
    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.
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.