Jump to content

Question mark


Azu
 Share

Recommended Posts

On some programs there is a question mark next to the minimize button.. how do I make one of those and have it so when someone clicks on it, it opens up firefox and goes to, say, www.website.com/helpfile.html ?

Link to comment
Share on other sites

Extended Style table

Extended Style result

$WS_EX_CONTEXTHELP Includes a question mark in the title bar of the window. Cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX.

That should help. Look up GuiCreate in the Helpfile.

#include <GUIConstants.au3>
GUICreate ( "title" , 100 , 100 , 0 , 0 , -1 , $WS_EX_CONTEXTHELP )

That should do the trick

#)

Link to comment
Share on other sites

#include <GUIConstants.au3>
GUICreate ( "title" , 500 , 500 , 100 , 100 , -1 , $WS_EX_CONTEXTHELP )
GUISetState()
Local $msg
while $msg <> $GUI_EVENT_CLOSE
    $msg = GUIGetMsg()
;   If $msg<> 0 and $msg <> -11 Then
;       MsgBox(0, "", $msg)
;   EndIf
WEnd

Complete demo.

The problem is that i can't find the control id for the "?" button

#)

Link to comment
Share on other sites

#include <GUIConstants.au3>
$Form1 = GUICreate("AForm1", 622, 448, 192, 125, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_BORDER,$DS_CONTEXTHELP),$WS_EX_CONTEXTHELP)
GUISetState(@SW_SHOW)
While 1
 $msg = GuiGetMsg()
 Select
 Case $msg = $GUI_EVENT_CLOSE
  ExitLoop
 Case Else
 ;;;;;;;
 EndSelect
WEnd
Exit

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

#include <GUIConstants.au3>
GUICreate ( "title" , 500 , 500 , 100 , 100 , -1 , $WS_EX_CONTEXTHELP )
GUISetState()
Local $msg
while $msg <> $GUI_EVENT_CLOSE
    $msg = GUIGetMsg()
;   If $msg<> 0 and $msg <> -11 Then
;       MsgBox(0, "", $msg)
;   EndIf
WEnd

Complete demo.

The problem is that i can't find the control id for the "?" button

#)

And you probably never will, i tried yours, couldn't get the question mark to work, mine works.

I think the only way to get the info will be thru WM_NOTIFY

When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Probably you can't, since the question mark is intended to be used for context help only (hence the changed cursor, and messages being received by the controls you click on rather than the button itself). Based on the fact that the programs you've seen have had the question mark "next to the minimize button", and it's not possible to use the minimizebox style with contexthelp, those programs are most likely using a much more complicated method to get that button to show up (like programs that insert a "minimize to tray" button in the title bar).

Link to comment
Share on other sites

So.. what is the "Much more complicated method" and how do I put it into my program?

It would need to be a minimize button to minimize it, a close button to close, and a question mark that opens up firefox to http://www.FreeThePenguins.com/AutoLogin/Help.html

Why not just place a button at the top right below the close etc and use it as a help button.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

  • Moderators

How come whenever I ask for help doing something, everyone basically says "That's to hard, why don't you try something else instead" :o

Let me make sure I get this in Quotes... Your post tend to like to dissapear...

Gary gave you the something to look at, did you try it?... Did it work?... Did it fail?... Can you post what you tried if you did try what he suggested?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

It changes the cursor icon.. it didn't open up firefox and go to the help page though..

I don't need the cursor icon to change.

Yes it did change the cursor icon but I have no need for that =/

Link to comment
Share on other sites

What does that have to do with what I'm asking?

1: That's about dialog boxes not guis

2: That is c++ not autoit

If you read it you would understand how the messages are sent.

AutoIt is written in C++, besides it's not C++ but API.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...