Hello
firstly must be i make a Thanksful for this useful plugin,ty
I have 2 questions about plugin:
1- Can i do make a window in XP Style optino + nxToolbar + SetWindowColor ?
without XP Style optino,it work very nice, but when i add XP Style optino + nxToolbar + SetWindowColor it has wrong with coloring.
2- Is there a help file for it ?
ty
Tomi
Code: Select all
;===>>> Enable XP skin support <<<====;
OpenWindow(0,0,0,200,150,"",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
SetWindowColor(0,#Blue)
DataSection
pop: IncludeBinary "c:\toolbar.bmp"
pop2: IncludeBinary "c:\toolbarmask.bmp"
EndDataSection
hTb=nxCreateTB(WindowID(0),24,24)
CatchImage(1, ?pop)
CatchImage(2, ?pop2)
nxSetTBImage(hTb, ImageID(1), ImageID(2), #nxTB_NORMAL) ;Default, main image list.
nxSetTBImage(hTb, 0, 0, #nxTB_HOT) ;Remove the comment if you wish.
nxSetTBImage(hTb, 0, 0, #nxTB_DISABLED) ;Remove the comment if you wish.
nxAddTBsysIcons(hTb)
nxAddTBbutton(hTb, 1, 1 , #nxTB_PushBUTTON)
nxSetTBbuttonText(hTb, 1, "push button")
nxSetTBbuttonTooltip(hTb, 1, "Tooltip 1!")
nxAddTBSeparator(hTb,-1)
nxAddTBbutton(hTb, 2, 2 , #nxTB_CheckBUTTON )
nxCheckTBbutton(hTb, 2, 1) ;Check the button.
nxSetTBbuttonTooltip(hTb, 2, "Tooltip 2!")
nxAddTBbutton(hTb, 3, 3 , #nxTB_CheckBUTTON)
nxAddTBbutton(hTb, 4, #nxTB_PRINT, #nxTB_BUTTON)
nxAddTBtextButton(hTb, 5, "A text button!", #nxTB_BUTTON)
nxAddTBSeparator(hTb,-1)
Repeat
EventID = WaitWindowEvent()
Until EventID = #WM_CLOSE
End