Search found 4570 matches

by RASHAD
Mon Apr 15, 2024 8:54 pm
Forum: Coding Questions
Topic: GetFileDate() and UTC
Replies: 5
Views: 201

Re: GetFileDate() and UTC

Hi
Maybe GetFileTime_() will do the job
https://www.purebasic.fr/english/viewto ... etfiletime
by RASHAD
Sun Apr 14, 2024 10:26 pm
Forum: Coding Questions
Topic: Autosize ListIconGadget headings based on heading length?
Replies: 13
Views: 3194

Re: Autosize ListIconGadget headings based on heading length?

Hi Fang
Very very very glad to here from you :)
Keep in touch from time to time it makes me happy to read from you
by RASHAD
Sun Apr 14, 2024 9:27 pm
Forum: Coding Questions
Topic: Autosize ListIconGadget headings based on heading length?
Replies: 13
Views: 3194

Re: Autosize ListIconGadget headings based on heading length?

Hi MV Procedure AUTOSIZE_USEHEADER(gad,font) Header = SendMessage_(GadgetID(gad), #LVM_GETHEADER, 0, 0) nColumns = SendMessage_(Header, #HDM_GETITEMCOUNT, 0, 0) For col = 0 To ncolumns - 1 text$ = GetGadgetItemText(gad, -1,col) StartDrawing(WindowOutput(0)) DrawingFont(FontID(font)) width = TextWidt...
by RASHAD
Sat Apr 13, 2024 1:29 pm
Forum: Off Topic
Topic: Looking for bootable backup system on USB-drive
Replies: 5
Views: 328

Re: Looking for bootable backup system on USB-drive

Hi Kurzer
Should one of the next do the job
1- Drive Snapshot
2- R-Drive Image

It's light weight software
Hope you luck
by RASHAD
Fri Apr 12, 2024 7:08 pm
Forum: Off Topic
Topic: Looking for bootable backup system on USB-drive
Replies: 5
Views: 328

Re: Looking for bootable backup system on USB-drive

You may try MiniTool Partition Wizard
I used it to migrate my system to other devices successfully
by RASHAD
Thu Apr 11, 2024 8:39 pm
Forum: Coding Questions
Topic: Process owner over LAN - SOLVED
Replies: 8
Views: 1907

Re: Process owner over LAN - SOLVED

I am not sure
But as a common issue with PB v 6.10 change long to integer
As next it may work :)
Or
Stay with PB v 6.04 :D

Code: Select all

	time.l=objProcess\GetIntegerProperty("KernelModeTime")
	;To
	time.i=objProcess\GetIntegerProperty("KernelModeTime")
by RASHAD
Tue Apr 09, 2024 1:02 pm
Forum: Windows
Topic: Detect if a window has curved corners?
Replies: 6
Views: 240

Re: Detect if a window has curved corners?

Maybe a workaround :mrgreen: flags = #PB_Window_BorderLess OpenWindow(0,10,10,400,300,"Test",Flags) wdc = GetDC_(0) GetWindowRect_(WindowID(0),c.RECT) co = GetPixel_(wdc,c\left+2,c\top+2) co2 = GetPixel_(wdc,c\left+8,c\top+2) ReleaseDC_(0,wdc) If co = co2 Debug "Not Rounded" Else...
by RASHAD
Fri Apr 05, 2024 7:23 am
Forum: Bugs - Windows
Topic: [Done] LoadImage crashes on faulty BMP-image
Replies: 10
Views: 482

Re: LoadImage crashes on faulty BMP-image

Hi StarGate But that mean the compiler should check for 1- Bad format 2- Bad image header magic number 3- No image but image extension(Bad guy idea) And maybe more I prefer using OnError lib for such situation :wink: Personally I am doing this because I needed to load other formats not supported by ...
by RASHAD
Fri Apr 05, 2024 5:21 am
Forum: Bugs - Windows
Topic: [Done] LoadImage crashes on faulty BMP-image
Replies: 10
Views: 482

Re: LoadImage crashes on faulty BMP-image

MS Photo viewer and Paint can't load this image
IrfanView and Gimp and some others can
So it's the coder part to avoid the crash when using PB :wink:
by RASHAD
Wed Apr 03, 2024 5:41 pm
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 855

Re: ListIcon and image transparency

# 1: Global Selbrush,Defbrush Global icoHnd Selbrush = CreateSolidBrush_($6163FE);($FF9933) Defbrush = CreateSolidBrush_($D4D4D4) Procedure CreateIcon( DLL_Path.s, index) Protected hIcon, img_index = -1 iinf.ICONINFO hIcon = ExtractIcon_(#Null, DLL_Path, index) StartVectorDrawing(ImageVectorOutput(0...
by RASHAD
Wed Apr 03, 2024 2:26 am
Forum: Coding Questions
Topic: How to create a blocking input requester
Replies: 6
Views: 278

Re: How to create a blocking input requester

A little bit more Procedure Options(gh) OpenWindow(1,0,0,200,200,"Modal Window",#PB_Window_WindowCentered,WindowID(0)) UseGadgetList(WindowID(1)) TextGadget(1,10,10,120,gh,"Pick your Mode :") SpinGadget(2,135,10,45,gh,1,10,#PB_Spin_Numeric) SetGadgetState(2,4) TextGadget(3,10,40,...
by RASHAD
Wed Apr 03, 2024 12:39 am
Forum: Coding Questions
Topic: How to create a blocking input requester
Replies: 6
Views: 278

Re: How to create a blocking input requester

Quick sample Using Modal Window OpenWindow(0,0,0,300,300,"Main Window",#PB_Window_ScreenCentered|#PB_Window_SystemMenu) ButtonGadget(0,10,10,65,20,"Options") Repeat Select WaitWindowEvent() Case #PB_Event_CloseWindow Quit = 1 Case #PB_Event_Gadget Select EventGadget() Case 0 Open...
by RASHAD
Wed Apr 03, 2024 12:12 am
Forum: Coding Questions
Topic: How to create a blocking input requester
Replies: 6
Views: 278

Re: How to create a blocking input requester

Search the forum for Property Box
by RASHAD
Tue Apr 02, 2024 10:52 pm
Forum: Coding Questions
Topic: Gadget on image
Replies: 3
Views: 182

Re: Gadget on image

OR If OpenWindow(0, 0, 0, 222, 200, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) If CreateImage(0, 1400-20, 2200, 32, RGB(239, 239, 239)) And StartDrawing(ImageOutput(0)) Box(1,i,1400-20, 40, RGB(216, 244, 254)) StopDrawing() ImageGadget(0, 0, 0, 200, 200, ImageID(0)...
by RASHAD
Tue Apr 02, 2024 4:01 am
Forum: Tricks 'n' Tips
Topic: create icon pack windows
Replies: 24
Views: 891

Re: create icon pack windows

You remembered me with a funny Anthony Quinn when he was a stupid mafia boss and asked his friend why he turned 360 degrees against him :lol: :mrgreen: