Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - In-Place Button Allignment
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

In-Place Button Allignment

 Post Reply Post Reply
Author
Message
GFasolt View Drop Down
Newbie
Newbie


Joined: 18 December 2015
Location: PA
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote GFasolt Quote  Post ReplyReply Direct Link To This Post Topic: In-Place Button Allignment
    Posted: 13 October 2017 at 8:20am
InPlace Buttons used to display URLs are right-aligned in propertygrid items even though there is no other content in the item.  How can these buttons be left-aligned in the items?


Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2017 at 8:36am
Hello,

Please, provide code which creates and manages these URL items

Regards,
 Oleksandr Lebed
Back to Top
GFasolt View Drop Down
Newbie
Newbie


Joined: 18 December 2015
Location: PA
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote GFasolt Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2017 at 8:57am
Thanks for your reply.  I'm coding in Clarion 10 so my PropertyGrid implementation actually calls into classes that wrap the CodeJock control.  This may not be meaningful to non-Clarion programmers.

  SELF.AddItemInPlaceButton('CoURL',              'CoURLButton')
  
  SELF.SetInPlaceButtonProperty('CoURLButton',    'Allignment', 0) 
  SELF.SetInPlaceButtonProperty('CoURLButton',    'Caption',    '') 
  SELF.SetInPlaceButtonProperty('CoURLButton',    'Enabled',    1) 
  SELF.SetInPlaceButtonProperty('CoURLButton',    'Hyperlink',  1) 
  SELF.SetInPlaceButtonProperty('CoURLButton',    'ShowAlways', 1)
  SELF.SetInPlaceButtonProperty('CoURLButton',    'TabStop',    TRUE)
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2017 at 9:23am
Maybe problem in  double 'L'  in your "aLLignment" ?

you can use our sample to see how improve your own wrapper
C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v18.0.1\Samples\PropertyGrid\VB\PropertyGrid\frmMain.frm

[code]Private Sub Form_Load()
....
    Set Item = Category.AddChildItem(PropertyItemString, "Hyperlink Button", "")
    Item.Flags = 0
    Set Button = Item.InplaceButtons.Add(1)
    Button.Hyperlink = True
    Button.ShowAlways = True
    Button.Alignment = 0
    Button.Caption = "Click Me"
    Button.Width = 0 ' Auto
...
End Sub[code]
This works as expected.
Back to Top
GFasolt View Drop Down
Newbie
Newbie


Joined: 18 December 2015
Location: PA
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote GFasolt Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2017 at 10:28am
As is often the case, it was something very simple - the spelling error you caught.  Thanks so much.
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.172 seconds.