Search found 4574 matches
- Fri Feb 23, 2024 6:56 pm
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 679
Re: Close button intermittently doesn't close
Quiting rules #1 : Only one main loop #2 : WaitWindowEvent() must have some delay time (1 ms for exam.) #3 : The main loop must have #PB_Event_CloseWindow #4 : If you have Repeat-Until,While-Wend ....etc make sure that it's not running into endless loop #5 : If you have WindowEvent() make sure it e...
- Thu Feb 22, 2024 3:19 pm
- Forum: Coding Questions
- Topic: GadgetHeight/Width, CanvasGadget and Dialogs
- Replies: 4
- Views: 144
Re: GadgetHeight/Width, CanvasGadget and Dialogs
1- Use Dummy Text gadget to get the proper dimensions
2- Create your Canvas gadget with these dimensions
3- Free the Dummy text gadget
2- Create your Canvas gadget with these dimensions
3- Free the Dummy text gadget
- Thu Feb 22, 2024 3:11 pm
- Forum: Coding Questions
- Topic: Item Height in a ComboBoxGadget
- Replies: 3
- Views: 157
Re: Item Height in a ComboBoxGadget
For Windows Global Text$,Brush,Brush_2 Text$ = Space(#MAX_PATH) Brush = CreateSolidBrush_($FADC72) Brush_2 = CreateSolidBrush_($99FEFA) Procedure WndProc(hWnd, uMsg, wParam, lParam) Result = #PB_ProcessPureBasicEvents Select uMsg Case #WM_DRAWITEM *DRAWITEM.DRAWITEMSTRUCT = lParam If *DRAWITEM\CtlTy...
- Thu Feb 08, 2024 5:18 pm
- Forum: Coding Questions
- Topic: Unable to Stream Rich Text to Editor Gadget
- Replies: 3
- Views: 251
Re: Unable to Stream Rich Text to Editor Gadget
Hi
Code: Select all
SendMessage_(GadgetID(3), #EM_SETTEXTMODE, #TM_RICHTEXT, 0)
- Tue Jan 30, 2024 7:16 am
- Forum: Coding Questions
- Topic: PB 6.03: attaching a shortcut to a gadget with & nonfunctional
- Replies: 10
- Views: 876
Re: PB 6.03: attaching a shortcut to a gadget with & nonfunctional
Hi For Windows Run Accelerators Keys for Windows [ Underscore char ] OpenWindow(0, 0, 0, 222, 200, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ButtonGadget(0, 10, 10, 200, 24, "&First") ButtonGadget(1, 10, 40, 200, 24, "&Second") ButtonGadget(2, 1...
- Mon Jan 29, 2024 5:08 pm
- Forum: Windows
- Topic: Windows 11 : Panel Gadget / same background color
- Replies: 8
- Views: 964
Re: Windows 11 : Panel Gadget / same background color
1- There is no way to color the Panel Gadget direct Workaround : you can use Container Gadget covering the panel area first then color the container 2- To get the color for any part of the window and it's objects you need some time after creation If OpenWindow(0, 10, 10, 640, 480, "Main Window&...
- Tue Jan 23, 2024 3:26 am
- Forum: Coding Questions
- Topic: Mouse position in a gadget coordinates?
- Replies: 3
- Views: 244
Re: Mouse position in a gadget coordinates?
Hi I am not familiar with Linux Next demonstrate the mouse over Button 2 You can adapt for your needs ; Shows using of several panels... If OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) PanelGadget (0, 8, 8, 306, 203) AddGadgetItem (0, -1, ...
- Sun Jan 21, 2024 3:23 pm
- Forum: Coding Questions
- Topic: Facing a size mystery
- Replies: 9
- Views: 491
Re: Facing a size mystery
;EnableExplicit Define.i BtnOk,Event,F,ImCre,ImGad,Quit,Win,WinH,WinW dpix.d = DesktopResolutionX() dpiy.d = DesktopResolutionY() F=LoadFont(#PB_Any,"Courier New",32) WinW=800 WinH=300 Win.i=OpenWindow(#PB_Any,0,0,WinW,WinH,"ERROR",#PB_Window_ScreenCentered ) ImCre.i=CreateImage...
- Sun Jan 21, 2024 3:10 pm
- Forum: Coding Questions
- Topic: Facing a size mystery
- Replies: 9
- Views: 491
Re: Facing a size mystery
1- Enable DPI aware in the compiler Option
2- dpix.d = DesktopResolutionX() ,dpiy.d = DesktopResolutionY()
3- Multiply the image width and the image gadget width by dpix
4- Multiply the image height and the image gadget height by dpiy
2- dpix.d = DesktopResolutionX() ,dpiy.d = DesktopResolutionY()
3- Multiply the image width and the image gadget width by dpix
4- Multiply the image height and the image gadget height by dpiy
- Sun Jan 21, 2024 2:43 pm
- Forum: Coding Questions
- Topic: Facing a size mystery
- Replies: 9
- Views: 491
Re: Facing a size mystery
Not here Windows 11 Pro x64 PB 6.04 x64
I guess it's DPI problem
Are you using DPI different than the normal ?
Try
I guess it's DPI problem
Are you using DPI different than the normal ?
Try
Code: Select all
ImGad.i=ImageGadget(#PB_Any,0,0,0,0,ImageID(ImCre))
- Sun Jan 21, 2024 2:01 pm
- Forum: Coding Questions
- Topic: Facing a size mystery
- Replies: 9
- Views: 491
Re: Facing a size mystery
Ah
It's working fine with PB 6.04
It's working fine with PB 6.04
- Sun Jan 21, 2024 12:54 pm
- Forum: Coding Questions
- Topic: Facing a size mystery
- Replies: 9
- Views: 491
Re: Facing a size mystery
Hi You can't colorize the Caption Bar(Title Bar) it's hard coded You can only change it to Dark mode (Windows 10 & 11) EnableExplicit Define.i BtnOk,Event,F,ImCre,ImGad,Quit,Win,WinH,WinW F=LoadFont(#PB_Any,"Courier New",32) WinW=800 WinH=300 Win.i=OpenWindow(#PB_Any,0,0,WinW,WinH,&quo...
- Sat Jan 20, 2024 9:30 am
- Forum: Coding Questions
- Topic: [6.10 b1] OpenLibrary() problem
- Replies: 11
- Views: 1833
Re: [6.10 b1] OpenLibrary() problem
Both OpenLibrary() and LoadLibrary_() works fine with PB 6.04 x86 Windows 11 x64
Using DIE next is the information about wd1793.dll
- Operation system: Windows(XP)[I386, 32-bit, DLL]
- Packer: ASPack(2.12-2.42)[-]
- Compiler: Borland Delphi(-)[-]
- Linker: Turbo Linker(2.25*,Delphi)[DLL32]
Using DIE next is the information about wd1793.dll
- Operation system: Windows(XP)[I386, 32-bit, DLL]
- Packer: ASPack(2.12-2.42)[-]
- Compiler: Borland Delphi(-)[-]
- Linker: Turbo Linker(2.25*,Delphi)[DLL32]
- Sat Jan 20, 2024 5:19 am
- Forum: Tricks 'n' Tips
- Topic: hextodec convert hex to decimal
- Replies: 10
- Views: 837
Re: hextodec convert hex to decimal
Hi idle
Perfect except you need to check if the string include only the hex alphabets or raise an error message
Thanks for posting
Try :
Perfect except you need to check if the string include only the hex alphabets or raise an error message
Thanks for posting
Try :
Code: Select all
Debug PeekQ(HexToDec("FG"))
- Wed Jan 03, 2024 5:28 pm
- Forum: Coding Questions
- Topic: TextGadget Transparent Background
- Replies: 12
- Views: 2610
Re: TextGadget Transparent Background
BTW
I just discovered that the problem is with PB 6.04 not with Windows
Tested fine with PB 5.72
I just discovered that the problem is with PB 6.04 not with Windows
Tested fine with PB 5.72