So hier das erste Proplem mit der Lib
Ich habe jetzt diese Zeile
"Result = AddTitleBarButton( #Window, ButtonState.b, *BtnImg1.l, *BtnImg2.l, TipText1$, TipText2$)"
hinzugefügt.
Ich haber in der Hilfe nach gesehen und auch einiges einfach mal ausprobiert nur ich finde nicht heraus in welcher position der button ist also "True" oder "False" bzw "1" oder "0" oder ob der butten überhaupt gedrückt wurde.
Versuche habe ich es jetzt mit:
"If ButtonState (#True / #False)"
"If GetTitleBarButtonState(ButtonState)"
"If GetTitleBarButtonState(#WindowID)"
"If SetTitleBarButtonState( #WindowID, ButtonState)"
Bitte helft...
[EDIT]
Hier ist die dazugehörige Help Seite (Englisch)
Code: Alles auswählen
AddTitleBarButton()
Syntax
Result = AddTitleBarButton( #Window, ButtonState.b, *BtnImg1.l, *BtnImg2.l, TipText1$, TipText2$)
Description
Add a button in the title bar of the window identified by #Window.
Use GetTitleBarButtonState() and SetTitleBarButtonState() commands to manage the button state.
Only one button can be added.
Input
#Window (Long), the PureBasic window identifier,
ButtonState (#True / #False), the initial state of the title bar button,
*BtnImg1 (Long), address of the displayed image on the button at a #True button state value,
*BtnImg2 (Long), address of the displayed image on the button at a #False button state value,
The images format is black and white, 16x14 pixels (see example).
A null value means no image
TipText1 (String), text displayed into the button tooltip at a #True button state value,
TipText2 (String), text displayed into the button tooltip at a #False button state value.
An empty string means no tooltip display.
Output
Result returns:
#True if the command is succeeds
#False if the command fails
Supported OS
Windows
[EDIT END]