dcsimg
Results 1 to 8 of 8

Thread: custom group box -need to make clickable regions link to custom events code in editor

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2016
    Location
    UK
    Posts
    42

    custom group box -need to make clickable regions link to custom events code in editor

    hi, ive been moding some code i found online to make a custom group box that has a title bar at the top that allows he user to add a couple of icons into the title bar that are clickable during runtime and clicking on the icons fires off some custom events that can be picked up from the form the groupbox is used on. Everything works fine but what i would like is to have a dotted box around each of the icons that is visible in visual studio at design time so that you can double click the icons and it takes you to the on_click event code for each of the corresponding icon. I dont know where to start to code something like this.

    Name:  Capture.JPG
Views: 135
Size:  23.8 KB
    Last edited by LucasCain; Aug 15th, 2017 at 12:51 PM. Reason: chaged title a little

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    22,455

    Re: custom group box -need to make clickable regions link to custom events code in ed

    What type of control is the titlebar?

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2016
    Location
    UK
    Posts
    42

    Re: custom group box -need to make clickable regions link to custom events code in ed

    Hi .paul. , all the code is written inside the subclassed groupbox, theres no separate control for the title bars.

  4. #4
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    22,455

    Re: custom group box -need to make clickable regions link to custom events code in ed

    You don't have access to the design time control? In that case, i don't think that what you're asking would be possible, but that control could be recreated with the features you want...

    What does it look like when you run your app?

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2016
    Location
    UK
    Posts
    42

    Re: custom group box -need to make clickable regions link to custom events code in ed

    Not quite sure what you mean, ive got access to all the code at design time. The codes to long to post here apparently but this is a link to a text file with it in.

    https://btcloud.bt.com/web/app/share/invite/patYObPerk

  6. #6

    Thread Starter
    Member
    Join Date
    Nov 2016
    Location
    UK
    Posts
    42

    Re: custom group box -need to make clickable regions link to custom events code in ed

    So can you help with this?

  7. #7
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    22,455

    Re: custom group box -need to make clickable regions link to custom events code in ed

    I've searched the internet and asked for advice on MSDN, but controls can only have one DefaultEvent Attribute, and not two conditional events like you want...

  8. #8

    Thread Starter
    Member
    Join Date
    Nov 2016
    Location
    UK
    Posts
    42

    Re: custom group box -need to make clickable regions link to custom events code in ed

    Hi .paul. , obviously a classic case of me not understanding how certain controls work. Thanks for pointing that out m8.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width