Results 1 to 4 of 4

Thread: To API or not to API, that is the question!

  1. #1

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Question

    K... I have a problem.

    In one of my projects, I have gotten rid of the nasty blue title bar and created my own. The only problem is, the app no longer shows up on the task bar. How do I make the app show on the task bar, and also respond to clicks etc?

    I suspect that this would require manipulating the code for showing your app in the systray, but I don't have the API experience to attempt this myself.

    Also, how would I unload every form in the project (ie when the "X" button is clicked)?

    Any ideas/solutions gratefully received.

    THX!

    [Edited by CyberSurfer on 11-27-2000 at 02:37 PM]

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Set showintaskbar property to true of the form.
    If you want a systemtray icon you could go download an activeX control from my homepage that does that without any code at all.
    To close all forms you use unload statement, loop trough all forms in forms collection:
    Code:
    dim frm as form
    For each frm in forms
      Unload frm
    next frm
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    Thanks kedaman!

    When you set the border style to borderless, does it automatically turn off the showintaskbar property? I must confess, I never thought to check!

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Yes, some of the properties of the forms change the others even if that woudn't cause any errors or contradictions, which isn't good. You just have to live with it.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

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



Click Here to Expand Forum to Full Width