@chi if you want shadows, all you have to do is put this in my code:
Structure MARGINS
cxLeftWidth.l
cxRightWidth.l
cyTopHeight.l
cyBottomHeight.l
EndStructure
Prototype DwmExtendFrameIntoClientArea_(hWnd, *pMarInset)
Global DwmExtendFrameIntoClientArea_.DwmExtendFrameIntoClientArea_
Define ...
Search found 1071 matches
- Thu Sep 17, 2020 7:50 pm
- Forum: Tricks 'n' Tips
- Topic: Sizeable & Moveable Borderless-Window, with Snap
- Replies: 11
- Views: 7096
- Thu Sep 17, 2020 5:18 pm
- Forum: Tricks 'n' Tips
- Topic: Sizeable & Moveable Borderless-Window, with Snap
- Replies: 11
- Views: 7096
Re: Sizeable & Moveable Borderless-Window, with Snap
in your compiler options, there is a field called linker options file: https://www.purebasic.com/documentation/reference/images/ide_compiler_options.png
create a new text file and add /SUBSYSTEM:WINDOWS,6.0 to it. then select that file as your linker option file.
that will turn this: https://i ...
create a new text file and add /SUBSYSTEM:WINDOWS,6.0 to it. then select that file as your linker option file.
that will turn this: https://i ...
- Thu Apr 30, 2020 7:24 am
- Forum: Coding Questions
- Topic: Screenshot of window isn't themed
- Replies: 33
- Views: 12109
Re: Screenshot of window isn't themed
a wild guess:
#DWM_TNP_RECTSOURCE = $00000002
dwm_thumbnail_properties\dwFlags = #DWM_TNP_RECTSOURCE | ...
dwm_thumbnail_properties\rcSource\left = x
dwm_thumbnail_properties\rcSource\top = y
dwm_thumbnail_properties\rcSource\right = Width
dwm_thumbnail_properties\rcSource\bottom = Height
c ya ...
#DWM_TNP_RECTSOURCE = $00000002
dwm_thumbnail_properties\dwFlags = #DWM_TNP_RECTSOURCE | ...
dwm_thumbnail_properties\rcSource\left = x
dwm_thumbnail_properties\rcSource\top = y
dwm_thumbnail_properties\rcSource\right = Width
dwm_thumbnail_properties\rcSource\bottom = Height
c ya ...
- Thu Nov 14, 2019 12:14 am
- Forum: Coding Questions
- Topic: Passing string paramerter by reference to a procedure
- Replies: 9
- Views: 3663
Re: Passing string paramerter by reference to a procedure
Procedure.l GetErrorMessage(*AnErrorMessage)
Protected *String.String = @*AnErrorMessage
*String\s = "This is the message"
EndProcedure
S$ = " "
GetErrorMessage(@S$)
Debug S$
dunno if its safe to use though. i have no idea how pb's string builder deals with this internally.
c ya,
nco2k
Protected *String.String = @*AnErrorMessage
*String\s = "This is the message"
EndProcedure
S$ = " "
GetErrorMessage(@S$)
Debug S$
dunno if its safe to use though. i have no idea how pb's string builder deals with this internally.
c ya,
nco2k
- Mon Jul 29, 2019 5:03 am
- Forum: Coding Questions
- Topic: is this correct behaviour of procedurereturn in a foreach ?
- Replies: 6
- Views: 2100
Re: is this correct behaviour of procedurereturn in a foreac
you dont have to use ResetList() because ForEach already resets the list.collectordave wrote:If you use ResetList(dict_contents()) before the ForEach it should be Ok.
@sculptor
i cannot reproduce your issue. its hard to help without a working example that showcases your problem.
c ya,
nco2k
- Fri Jul 26, 2019 7:10 pm
- Forum: Off Topic
- Topic: The passing of a good friend
- Replies: 11
- Views: 5001
Re: The passing of a good friend
my condolences to the friends and family.
c ya,
nco2k
c ya,
nco2k
- Fri Jul 26, 2019 9:22 am
- Forum: Coding Questions
- Topic: PeekL Seems to give wrong answer?
- Replies: 4
- Views: 1895
Re: PeekL Seems to give wrong answer?
Code: Select all
Debug Hex(-1015688195, #PB_Long)nco2k
- Sat Jul 20, 2019 8:31 pm
- Forum: Coding Questions
- Topic: Get mapKey() of single map element?
- Replies: 23
- Views: 5556
Re: Get mapKey() of single map element?
which could introduce potential problems in the future, if your rules ever change. its better to keep them separate, and reference them through pointers.Demivec wrote:If both the key and the value are unique with respect to themselves and to each other you can store them in the same map.
c ya,
nco2k
- Sat Jul 20, 2019 10:45 am
- Forum: Coding Questions
- Topic: Get mapKey() of single map element?
- Replies: 23
- Views: 5556
Re: Get mapKey() of single map element?
In my case, values are unique it doesnt matter. the key has to be unique for the map to work properly. the value on the other hand is just a data container. the map doesnt care what you do with it. some other languages may offer what you want, but they still have to search for the item under the ...
- Fri Jul 19, 2019 10:22 pm
- Forum: Coding Questions
- Topic: Get mapKey() of single map element?
- Replies: 23
- Views: 5556
Re: Get mapKey() of single map element?
I don't get it, why do we have to loop all elements to find the one we need? the key is unique, the value is not. thats why.
I had a hope that MapKey() would be a little more useful/helpful MapKey() does exactly what it should do, which is returning the key. if you want to get a specific value ...
I had a hope that MapKey() would be a little more useful/helpful MapKey() does exactly what it should do, which is returning the key. if you want to get a specific value ...
- Tue May 07, 2019 11:28 pm
- Forum: Coding Questions
- Topic: String manipulation bug
- Replies: 5
- Views: 2269
Re: String manipulation bug
yes.
; test_ascii_strings.pb
EnableExplicit
OpenConsole()
PrintN("#PB_Compiler_Version = " + #PB_Compiler_Version)
PrintN("#PB_Compiler_Unicode = " + #PB_Compiler_Unicode)
PrintN("")
Define dateStringMask.s = "yyyy-mm-dd"
Define dateStringLength.i = StringByteLength(dateStringMask, #PB_Ascii ...
; test_ascii_strings.pb
EnableExplicit
OpenConsole()
PrintN("#PB_Compiler_Version = " + #PB_Compiler_Version)
PrintN("#PB_Compiler_Unicode = " + #PB_Compiler_Unicode)
PrintN("")
Define dateStringMask.s = "yyyy-mm-dd"
Define dateStringLength.i = StringByteLength(dateStringMask, #PB_Ascii ...
- Tue May 07, 2019 11:04 pm
- Forum: Coding Questions
- Topic: String manipulation bug
- Replies: 5
- Views: 2269
Re: String manipulation bug
Code: Select all
AllocateMemory(n + SizeOf(Ascii))Code: Select all
PokeS(*ptr, str$, n, #PB_Ascii | #PB_String_NoZero)nco2k
- Fri Sep 21, 2018 7:29 pm
- Forum: Feature Requests and Wishlists
- Topic: enable_Debug_GetLastError
- Replies: 3
- Views: 2107
Re: enable_Debug_GetLastError
Also: There have been other ocassions where getlasterror_() helped significantly. im not doubting the usefulness of GetLastError_(), but only when you have control over it between each individual winapi call.
Also: If internally, one of a multi-winapi call of a PB function should fail, I'd expect ...
Also: If internally, one of a multi-winapi call of a PB function should fail, I'd expect ...
- Fri Sep 21, 2018 6:24 pm
- Forum: General Discussion
- Topic: Memory Allocation Question
- Replies: 1
- Views: 1489
- Fri Sep 21, 2018 6:12 pm
- Forum: Tricks 'n' Tips
- Topic: WMI
- Replies: 19
- Views: 51437
Re: WMI
try adding #CLSCTX_REMOTE_SERVER or simply use #CLSCTX_ALL.
edit: btw you are not using GetDescription() correctly: Retrieving Error Information.
also check if they are doing anything differently: Getting WMI Data from a Remote Computer.
c ya,
nco2k
edit: btw you are not using GetDescription() correctly: Retrieving Error Information.
also check if they are doing anything differently: Getting WMI Data from a Remote Computer.
c ya,
nco2k