Search found 280 matches

by Mesa
Mon Jan 15, 2024 5:49 pm
Forum: Feature Requests and Wishlists
Topic: Get the language Operating system
Replies: 0
Views: 613

Get the language Operating system

Sometimes is usefull to know the OS language. ; keya http://www.purebasic.fr/english/viewtopic.php?f=12&t=66552 CompilerIf #PB_Compiler_OS = #PB_OS_Windows Define Buffer$, buflen, bytesread, LC LC = #LOCALE_SLANGUAGE ;Note - some apps would be better using #LOCALE_SYSTEM_DEFAULT instead of #LOCA...
by Mesa
Sat Jan 13, 2024 10:48 am
Forum: Coding Questions
Topic: ScrollAreaGadget Repaint ImageGadget?
Replies: 11
Views: 1100

Re: ScrollAreaGadget Repaint ImageGadget?

Im using a ScrollAreaGadget and using some imageGadget, but when i scroll it manually and moving back the images do not repaint and it dissapear. It shouldn't because imagegadget as canvasgadget are persistant, like that: Tested on WIndows , images do not disapear: If OpenWindow(0, 0, 0, 405, 240, ...
by Mesa
Fri Jan 12, 2024 4:46 pm
Forum: Tricks 'n' Tips
Topic: Some vector arrows
Replies: 1
Views: 618

Some vector arrows

http://frazier.wood.free.fr/pb/vectorarrow.JPG EnableExplicit ;Left Procedure VectorArrowL(Xi.d, Yi.d, Length.d, Amplitude.d, Thickness.d, Flag.i = #PB_Path_RoundEnd) MovePathCursor(xi, yi) AddPathLine(xi+Length, yi) StrokePath(Thickness, Flag) MovePathCursor(xi-Amplitude, yi) AddPathLine(xi+Amplit...
by Mesa
Wed Jan 10, 2024 10:02 am
Forum: Coding Questions
Topic: Len of path limit for FileSize() [Resolved]
Replies: 24
Views: 2530

Re: Len of path limit for FileSize() [Resolved]

To be compatible with x86, we need another quad like that: Procedure GetFlgBin(flg_bin.q) Protected i, x.q For i = 0 To 63 If flg_bin >> i & 1 x = 1 << i Debug x EndIf Next EndProcedure GetFlgBin(21) Debug "---" GetFlgBin(9223372036854775807) Debug Bin(9223372036854775807) M.
by Mesa
Thu Nov 16, 2023 5:51 pm
Forum: Tricks 'n' Tips
Topic: TabBarGadget - Tabs like in a browser
Replies: 186
Views: 89396

Re: TabBarGadget - Tabs like in a browser

Demo [Update 17 nov 2023] http://frazier.wood.free.fr/pb/tabbar.jpg IncludeFile "TabBarGadgetDPIModule.pbi" UseModule TabBarGadget EnableExplicit ;- Enum Enumeration #Window #Image #Gadget_TabBar #Gadget_Vertical #Gadget_CloseButton #Gadget_SelectedCloseButton #Gadget_EmptyButton #Gadget_M...
by Mesa
Thu Nov 16, 2023 5:50 pm
Forum: Tricks 'n' Tips
Topic: TabBarGadget - Tabs like in a browser
Replies: 186
Views: 89396

Re: TabBarGadget - Tabs like in a browser

3/3 Procedure TabBarGadget_Timer(*TabBarGadget.TabBarGadget) ;1x Dans initialisation = CreateThread() With *TabBarGadget\Timer Repeat If \TabBarGadget Delay(250) Repeat LockMutex(\Mutex) If \TabBarGadget CompilerIf (#PB_Compiler_OS <> #PB_OS_MacOS) Or (#PB_Compiler_Version >= 560) PostEvent(#PB_Even...
by Mesa
Thu Nov 16, 2023 5:49 pm
Forum: Tricks 'n' Tips
Topic: TabBarGadget - Tabs like in a browser
Replies: 186
Views: 89396

Re: TabBarGadget - Tabs like in a browser

2/3 ; Dessiner un onglet Procedure TabBarGadget_DrawItem(*TabBarGadget.TabBarGadget, *Item.TabBarGadgetItem) ;Draw(*) Protected X.i, Y.i, LayoutX.i, LayoutY.i, LayoutWidth.i, LayoutHeight.i, Padding.i Protected Color.i, Width.i, Height.i, Text.s, Len.i, Angle.i With *TabBarGadget ; Orientation de l'...
by Mesa
Thu Nov 16, 2023 5:47 pm
Forum: Tricks 'n' Tips
Topic: TabBarGadget - Tabs like in a browser
Replies: 186
Views: 89396

Re: TabBarGadget - Tabs like in a browser

Added Module, theme color, deselected event and autosize when changing Font by Mesa, highlighted tab by azjio & Mesa [Update: 17 11 2023 Fixed bugs on the newtab button] 1/3 ;|------------------------------------------------------------------------------------------------- ;| ;| Title : TabBarGa...
by Mesa
Fri Oct 27, 2023 10:46 am
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2597

Re: Reconstructing original frames from interpolated movie

Some searchers did this, it"s a big algorythm to the video game industry:
https://github.com/megvii-research/ECCV2022-RIFE
https://arxiv.org/abs/2011.06294

Mesa.
by Mesa
Wed Oct 18, 2023 10:21 am
Forum: Windows
Topic: Ultimate Pb 6.03 Stuff for Windows XP
Replies: 4
Views: 1347

Re: Ultimate Pb 6.03 Stuff for Windows XP

HTTPREQUESTI.PBI CompilerIf #PB_Compiler_IsMainFile EnableExplicit CompilerEndIf #LibCurl_ExternalDLL = #True XIncludeFile "libcurl.pbi" CompilerIf Not Defined(PB_HTTP_NoSSLCheck, #PB_Constant) #PB_HTTP_NoSSLCheck = 4 CompilerEndIf Structure HTTPRequestStructure curl.i File.i *Buffer Resul...
by Mesa
Wed Oct 18, 2023 10:21 am
Forum: Windows
Topic: Ultimate Pb 6.03 Stuff for Windows XP
Replies: 4
Views: 1347

Re: Ultimate Pb 6.03 Stuff for Windows XP

Suite. ; POST volatile input fields. #CURLOPT_COPYPOSTFIELDS = #CURLOPTTYPE_OBJECTPOINT + 165 ; set transfer mode (;type=<a|i>) when doing FTP via an HTTP proxy #CURLOPT_PROXY_TRANSFER_MODE = #CURLOPTTYPE_LONG + 166 ; Callback function For seeking in the input stream #CURLOPT_SEEKFUNCTION = #CURLOPT...
by Mesa
Wed Oct 18, 2023 10:20 am
Forum: Windows
Topic: Ultimate Pb 6.03 Stuff for Windows XP
Replies: 4
Views: 1347

Re: Ultimate Pb 6.03 Stuff for Windows XP

LIBCURL.PBI for libcurl.dll version 7.83.1 ; ; libcurl.pbi ; ; https://www.purebasic.fr/english/viewtopic.php?p=591235 ; http://forums.purebasic.com/english/viewtopic.php?t=80118 ; In widows libcurl is a static compilation by PureBasic, but it only contains the protocols: ; ; http ; https ; smtp ; s...
by Mesa
Wed Oct 18, 2023 10:19 am
Forum: Windows
Topic: Ultimate Pb 6.03 Stuff for Windows XP
Replies: 4
Views: 1347

Ultimate Pb 6.03 Stuff for Windows XP

Version 6.03 should be the latest version installable under Windows XP so this is the ultimate Pb 6.03 Stuff for Windows XP Here are some tips to get PB6.03 working under Windows XP It's up to you to add your own tips and tricks. 1) It is highly recommended to keep a functional installation of PB 5....
by Mesa
Sat Sep 23, 2023 8:46 am
Forum: Coding Questions
Topic: ListViewGadget center verticaly items [Resolved]
Replies: 4
Views: 334

Re: ListViewGadget center verticaly items [Resolved]

And with the rashad's code, you can use the #DT_VCENTER flag like that: ;https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-drawtext Global hbrush1,hbrush2,hbrush3 ,th hbrush1 = CreateSolidBrush_(GetSysColor_(#COLOR_HIGHLIGHT)) hbrush2 = CreateSolidBrush_($94EBFE) hbrush3 = Creat...
by Mesa
Tue Sep 19, 2023 3:53 pm
Forum: Coding Questions
Topic: [SOLVED BUT STILL BUGGY] DialogXML lib : Limitation ?
Replies: 16
Views: 1020

Re: DialogXML lib : Limitation ?

The limitation is on strings.
Your ChaineXML is more than 32000 characters so the compiler should have warned and that's is a bug.
A string of more than 32000 characters is a limitation for pb string library, not the dialog library.

M.