Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Here is my code to create some buttons :

Include "icons.def"
Declare Sub Main
Declare Sub button_prompt
Sub Main
 Create ButtonPad "Providers" As 
 PushButton
 Icon MI_ICON_ZOOM_QUESTION
 Calling button_prompt
 HelpMsg "client"
fixed

Alter ButtonPad "Providers"
 Add Separator
 Add PushButton
 Icon MI_ICON_GRABBER
 Calling button_prompt
 HelpMsg "client2"
fixed

Create ButtonPad "SiteType" As 
 PushButton
 Icon MI_ICON_ZOOM_QUESTION
 Calling button_prompt
 HelpMsg "site1"
fixed

Alter ButtonPad "SiteType"
 Add Separator
 Add PushButton
 Icon MI_ICON_GRABBER
 Calling button_prompt
 HelpMsg "site2"
fixed

Alter ButtonPad "SiteType"
 Add Separator
 Add PushButton
 Icon MI_ICON_GRABBER
 Calling button_prompt
 HelpMsg "site3"
fixed
   End Sub
   Sub button_prompt
   End Sub

This code does bring the bottons but it's kind of crazy that it is scattered :(

share|improve this question
    
I have used ToolbarPosition and position clause but it doesn't work. –  kinkajou Jul 1 '11 at 6:51
    
I found sth : ToolbarPosition (1,6) The toolbarposition works but is it dynamic? –  kinkajou Jul 2 '11 at 2:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.