Search found 1609 matches

by Shardik
Wed Dec 20, 2006 12:23 pm
Forum: Tricks 'n' Tips
Topic: Recursive directory search
Replies: 18
Views: 13479

I don't like the HideGadget approach, it's faster but it doesn't look good with the ListIcon gadget disappearing briefly while it gets filled and then reappearing. What do you think about the (in my opinion :wink: ) most user friendly approach of hiding the gadget but displaying a search animation ...
by Shardik
Thu Dec 14, 2006 4:39 pm
Forum: General Discussion
Topic: SqrtFloat ASM replacement !?
Replies: 36
Views: 6446

Derek wrote: Isn't it safe to assume that most processors come with sse now and use this code
With Helle's fine code example from the German forum you can check the available extensions of the CPU on which your program is running:
http://www.purebasic.fr/german/viewtopic.php?t=10459
by Shardik
Thu Dec 14, 2006 12:01 pm
Forum: Coding Questions
Topic: telnet server
Replies: 8
Views: 3897

@Tranquil: This is a stripped down and working code example to logon into a TSO session on an IBM mainframe via Telnet: ; Example code to logon into TSO on an IBM Mainframe via Telnet ; ----- Change these settings to those of your mainframe account #AccountNumber = "Your account number" #P...
by Shardik
Thu Dec 14, 2006 9:30 am
Forum: Coding Questions
Topic: telnet server
Replies: 8
Views: 3897

At work we use Rumba as a Mainframe, and I tried to get access through pb to its telnet server. It seems to me that you have some misconceptions in mind for communication with a mainframe. If you are communicating with an IBM mainframe running z/OS (formerly OS/390, MVS/ESA, MVS/XA, MVS/SP) in form...
by Shardik
Wed Dec 13, 2006 2:13 pm
Forum: Coding Questions
Topic: telnet server
Replies: 8
Views: 3897

@ChebbyShabby: Take a look at Lars' Telnet suite posted at the German forum: http://www.purebasic.fr/german/archive/viewtopic.php?t=4603 Download link: [url=http://]home.arcor.de/master_lars/Lars'%20Telnet.zip[/url] I tried. But I struggled into the obscure telnet protocols. What's so difficult abou...
by Shardik
Wed Dec 13, 2006 1:48 pm
Forum: Coding Questions
Topic: Get editorgadget LINE/COL when caret is moved?
Replies: 11
Views: 4565

@utopiomania:
Did you try the forum search? netmaestro already posted a similar example at october 21st:
http://www.purebasic.fr/english/viewtop ... 50&start=3
by Shardik
Wed Nov 29, 2006 4:47 pm
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9393

If you want to see which cursors are contained as resources in a library (like .Exe, .DLL, .OCX or .Scr), try the following code example which displays all cursors of MSPaint.Exe: #RT_GROUP_CURSOR = 12 NewList ResNameList.S() Procedure.l EnumResNameProc(ResHandle.L, ResType.L, ResName.L, AppParam.L)...
by Shardik
Tue Nov 28, 2006 3:48 pm
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9393

srod, unfortunately I am no expert in working with resources and therefore can't answer your question about the details in the difference between the use of ExtractIcon_() and LoadImage_(). But if you want to know how to scan for resources in DLL- and Exe-Files, take a look into the nice code from V...
by Shardik
Tue Nov 28, 2006 11:31 am
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9393

netmaestro,

I am very proud of having been able to help you, because your (and srod's) uncountable and very profound code examples have made my programming life a lot easier... :wink:
by Shardik
Tue Nov 28, 2006 11:03 am
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9393

netmaestro, I used ResourceHacker ( http://www.angusj.com/resourcehacker ) to list all resources from MSPaint.Exe. When using resource hacker to open MSPaint.Exe you have to open the tree view node "Cursor Group" and take a look at the different cursor nodes. When opening node 1204 and cli...
by Shardik
Tue Nov 28, 2006 10:19 am
Forum: Coding Questions
Topic: SetCursor_() - Pippet in paint??
Replies: 44
Views: 9393

Unfortunately I dont have this icon on my harddisc. But you can surely extract it from Paint with some Icontools. The following 'icon extractor' only locates 6 icons embedded within mspaint.exe This code example demonstrates how to use the cursor resource from MSPaint.Exe (tested with WinNT SP6 and...
by Shardik
Tue Nov 21, 2006 9:07 am
Forum: Coding Questions
Topic: ExplorerTreeGadget Refresh Listing Question
Replies: 2
Views: 1352

Simply do a SetGadgetText(GadgetID, GetGadgetText(GadgetID) + "*.*") to refresh the ExplorerTreeGadget as in the example below: OpenWindow(1, 0, 0, 290, 370, "ExplorerTreeGadget Refresh", #PB_Window_ScreenCentered | #PB_Window_SystemMenu) CreateGadgetList(WindowID(1)) ExplorerTre...
by Shardik
Wed Nov 15, 2006 10:13 am
Forum: Coding Questions
Topic: Get selected Text from other Application
Replies: 9
Views: 2374

Have you tried whether the example code from freak suits your needs?
http://www.purebasic.fr/german/viewtopi ... 9&start=10
by Shardik
Fri Nov 10, 2006 3:38 pm
Forum: Coding Questions
Topic: Help: How to set duplex printing
Replies: 15
Views: 8454

Both of you beat me to it this morning. Been up a few hours earlier than me here on the east cost of the US, right? Terry, as one of my daughters currently visits a highschool in New Jersey I know that the New Jersey and New York time is six hours behind the current German time, so when I leave my ...
by Shardik
Fri Nov 10, 2006 12:54 pm
Forum: Coding Questions
Topic: Help: How to set duplex printing
Replies: 15
Views: 8454

A short and straightforward bare bones solution for those who want to test the duplex capability of their default printer: Buffer.S = Space(260) DefaultPrinterName.S DefaultPortName.S GetPrivateProfileString_("WINDOWS", "DEVICE", "", @Buffer, 260, "Win.Ini") D...