Print Page | Close Window

SOLVED : prolem with toolbar in start time

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=11927
Printed Date: 07 October 2024 at 2:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED : prolem with toolbar in start time
Posted By: nenkalo
Subject: SOLVED : prolem with toolbar in start time
Date Posted: 22 August 2008 at 8:19am
Hi
i make a form with toolbar and initial it at first . when run program i see all items in first category ! but all items not reffer to first category !
tihs problem solved when i click on next category tab .
 
see this attachment :
 
https://forum.codejock.com/uploads/20080822_081743_problem.zip - uploads/20080822_081743_problem.zip
 
in start time u see every subitem in item1 .
but when u click on item1 un-expected items hide .
 
whats my mistake ?
 


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit)
Language: Visual Basic 6.0



Replies:
Posted By: Oleg
Date Posted: 22 August 2008 at 3:17pm

Change this

 
    Set toolbarTab = TabToolBar.InsertCategory(0, "item1")
    toolbarTab.Image = 100
   
    Set toolbarTab = TabToolBar.InsertCategory(1, "item2")
    toolbarTab.Image = 200
   
    Set toolbarTab = TabToolBar.InsertCategory(2, "item3")
    toolbarTab.Image = 300
   
    Set toolbarTab = TabToolBar.InsertCategory(3, "item4")
 
...
 
  TabToolBar.UpdateTabs


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


Posted By: nenkalo
Date Posted: 24 August 2008 at 6:58am
Originally posted by oleg oleg wrote:

Change this

 
    Set toolbarTab = TabToolBar.InsertCategory(0, "item1")
    toolbarTab.Image = 100
   
    Set toolbarTab = TabToolBar.InsertCategory(1, "item2")
    toolbarTab.Image = 200
   
    Set toolbarTab = TabToolBar.InsertCategory(2, "item3")
    toolbarTab.Image = 300
   
    Set toolbarTab = TabToolBar.InsertCategory(3, "item4")
 
...
 
  TabToolBar.UpdateTabs
 
Hi
thankx . it solved
 
one question :
 
i make a toolbar on the rich text box (top and bottom of it)
i need to change caption of one item of it .
 
i use this code in command event :
 
Private Sub Command1_Click()
CommandBarsTextbox(7).Controls.Find(, 1000).Caption = "change"
End Sub
 
this code work very good .
 
but when i use this code in rich text box change event get error :
 
Private Sub txt_msg_Change()
CommandBarsTextbox(7).Controls.Find(, 1000).Caption = "change"
End Sub
error : invalid procedure call or argumant .
 
both code like togheter but bahavior different .


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit)
Language: Visual Basic 6.0


Posted By: nenkalo
Date Posted: 25 August 2008 at 6:32am
Originally posted by nenkalo nenkalo wrote:

 

but when i use this code in rich text box change event get error :
 
Private Sub txt_msg_Change()
CommandBarsTextbox(7).Controls.Find(, 1000).Caption = "change"
End Sub
error : invalid procedure call or argumant .
 
both code like togheter but bahavior different .
I found  it .
txt_msg_change called at form_load via setting property (textalign) before calling toolbar_init .
 i put toolbar_init at first in form_load to fix it .
 
this poroblem related to my program and not codejock . shame on me .
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit)
Language: Visual Basic 6.0


Posted By: Aaron
Date Posted: 25 August 2008 at 7:44am
Hi,
 
You got one thing done right this time.... That's the right way to do it, adding SOLVED:     like that  And if you would be so kind and change the other issues as well (I know you added solved already but in a wrong way...) Thanks a lot in advance
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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