Search found 64 matches
- Tue Jun 10, 2025 9:57 pm
- Forum: Coding Questions
- Topic: Scaling issue?
- Replies: 9
- Views: 1046
Re: Scaling issue?
Thanks, Rashad - perfect!
- Tue Jun 10, 2025 9:55 pm
- Forum: Coding Questions
- Topic: Scaling issue?
- Replies: 9
- Views: 1046
Re: Scaling issue?
Do you have your desktop scaled to 125% as I do (anything but 100%)?
- Tue Jun 10, 2025 7:44 pm
- Forum: Coding Questions
- Topic: Scaling issue?
- Replies: 9
- Views: 1046
Scaling issue?
My goal is to have a custom window pop up over (in this case) a listicon upon right-click like a popup menu would - ideally with the same positioning.
The code below gets pretty close once I click in the top, left corner, but there's increasing drift when I move right and/or down over the listicon ...
The code below gets pretty close once I click in the top, left corner, but there's increasing drift when I move right and/or down over the listicon ...
- Tue Jun 10, 2025 12:27 am
- Forum: Coding Questions
- Topic: Line splitting question
- Replies: 3
- Views: 431
Re: Line splitting question
Thanks - had missed that one
- Mon Jun 09, 2025 10:26 pm
- Forum: Coding Questions
- Topic: Line splitting question
- Replies: 3
- Views: 431
Line splitting question
6.21 now says: Unfinished splitted line
on this
EnableExplicit
Define LongExpr.s = "insert into table data ....." +
"insert into table more data ....." +
; the lines below refer to ...
"insert into table more data ....." +
"insert into table more data ....."
which I have found to be ...
on this
EnableExplicit
Define LongExpr.s = "insert into table data ....." +
"insert into table more data ....." +
; the lines below refer to ...
"insert into table more data ....." +
"insert into table more data ....."
which I have found to be ...
- Mon Jun 09, 2025 7:09 pm
- Forum: Coding Questions
- Topic: Menu lifecycle
- Replies: 7
- Views: 906
Re: Menu lifecycle
What a relief! Thanks so much.
I'd much rather be the fool who forgot a a crucial parameter than turn my back on PB for bigger projects! I was getting quite a bit worried after 4 days, over 60 reads and not a single reply until SMaag this morning ...
I'd much rather be the fool who forgot a a crucial parameter than turn my back on PB for bigger projects! I was getting quite a bit worried after 4 days, over 60 reads and not a single reply until SMaag this morning ...
- Mon Jun 09, 2025 4:57 pm
- Forum: Coding Questions
- Topic: Menu lifecycle
- Replies: 7
- Views: 906
Re: Menu lifecycle
Gruß nach Bayern!
Thanks - I am well aware of working around this by doing what you suggest. I do believe you are missing multiple points:
1) As I have quoted in my initial post, CloseWindow() is supposed to free menus and bound events - if that were true, how could the bound event from the Stuff ...
Thanks - I am well aware of working around this by doing what you suggest. I do believe you are missing multiple points:
1) As I have quoted in my initial post, CloseWindow() is supposed to free menus and bound events - if that were true, how could the bound event from the Stuff ...
- Fri Jun 06, 2025 10:29 pm
- Forum: Coding Questions
- Topic: Menu lifecycle
- Replies: 7
- Views: 906
Menu lifecycle
From the help on CloseWindow():
Note: The following items created for a window are also automatically freed when the window is closed: Gadgets, Keyboard shortcuts, Menus, StatusBars, Timers, Toolbars and bound events (with BindEvent()).
I thought I understood this, but maybe not...?
Run my ...
Note: The following items created for a window are also automatically freed when the window is closed: Gadgets, Keyboard shortcuts, Menus, StatusBars, Timers, Toolbars and bound events (with BindEvent()).
I thought I understood this, but maybe not...?
Run my ...
- Fri Jun 06, 2025 3:20 am
- Forum: Coding Questions
- Topic: Speed of a program...
- Replies: 13
- Views: 1236
Re: Speed of a program...
Without your complete source code nobody can give a meaningful answer.
I'd like to share two personal observations (without potentially wanting to bruise your ego):
1) PureBasic is very fast - close to the speed of C mostly.
2) More often than not, the cause of slow execution is not the language ...
I'd like to share two personal observations (without potentially wanting to bruise your ego):
1) PureBasic is very fast - close to the speed of C mostly.
2) More often than not, the cause of slow execution is not the language ...
- Wed May 21, 2025 12:16 am
- Forum: Coding Questions
- Topic: Adding text and signature on down of PDF document [Resolved]
- Replies: 11
- Views: 800
Re: Adding text and signature on down of PDF document
Is this for a 3rd-party PDF or a PDF you want to create in its entirety?
- Sun May 18, 2025 3:28 am
- Forum: Coding Questions
- Topic: ListIconGadget Events
- Replies: 12
- Views: 1760
Re: ListIconGadget Events
Not so - no idea what you did wrong, but as you see here, GetGadgetState() works as advertised:
Procedure ListIconClick()
Debug "Row: " + Str(GetGadgetState(1))
EndProcedure
If OpenWindow(0, 0, 0, 500, 200, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(1 ...
Procedure ListIconClick()
Debug "Row: " + Str(GetGadgetState(1))
EndProcedure
If OpenWindow(0, 0, 0, 500, 200, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(1 ...
- Sat May 17, 2025 2:46 am
- Forum: Coding Questions
- Topic: ListIconGadget Events
- Replies: 12
- Views: 1760
Re: ListIconGadget Events
To get the row, read the help on GetGadgetState()
and to get the column, use this (Windows only):
Procedure GetSelectedColumn(ListIcon)
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
Protected CursorLocation.POINT, HitInfo.LVHITTESTINFO
GetCursorPos_(CursorLocation)
MapWindowPoints_(0 ...
and to get the column, use this (Windows only):
Procedure GetSelectedColumn(ListIcon)
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
Protected CursorLocation.POINT, HitInfo.LVHITTESTINFO
GetCursorPos_(CursorLocation)
MapWindowPoints_(0 ...
- Fri May 16, 2025 5:38 pm
- Forum: Coding Questions
- Topic: XML Dialogs capabilities
- Replies: 1
- Views: 1336
XML Dialogs capabilities
After going through the list of supported keywords/attributes, it seems to me that certain things, such as gadget hints and gadget coloring are out of reach? Any workarounds for those?
Thanks!
Thanks!
- Fri May 16, 2025 2:53 am
- Forum: Coding Questions
- Topic: List of XML attributes for dialogs
- Replies: 2
- Views: 601
Re: List of XML attributes for dialogs
That is indeed too well hidden!
Thanks much!
Thanks much!
- Fri May 16, 2025 12:19 am
- Forum: Coding Questions
- Topic: List of XML attributes for dialogs
- Replies: 2
- Views: 601
List of XML attributes for dialogs
Just started playing with the Dialogs lib and cannot seem to find a list of all supported keywords/attributes...
Anybody know?
Anybody know?