Search found 170 matches

by hagibaba
Wed Apr 23, 2008 1:14 pm
Forum: Coding Questions
Topic: Set Webgadget border style?
Replies: 10
Views: 2294

Both your setfocus functions work here superadnim, I'm using local files. Thanks, I prefer the first version, it loops 3 times so not too many. I didn't realize a webgadget is embedded. Anyway, here is what I am using now...

Procedure SetWebBorder(Gadget.l)
;Double sunken border for WebGadget, by ...
by hagibaba
Wed Apr 23, 2008 1:08 am
Forum: Coding Questions
Topic: Set Webgadget border style?
Replies: 10
Views: 2294

Yes, srod your example works here, and superadnim's last example works. Thanks!

Any ideas about setting the focus? Like when I change tabs setgadgetstate works for an editorgadget but not with a webgadget.

Edit: Oops, sorry superadnim, I didn't read your whole last post.
by hagibaba
Tue Apr 22, 2008 9:45 pm
Forum: Coding Questions
Topic: Set Webgadget border style?
Replies: 10
Views: 2294

I tried using GetWindowLong_() with #GWL_EXSTYLE for a webgadget and it just returns zero. I assume this means webgadgets don't have extended styles.
by hagibaba
Tue Apr 22, 2008 9:41 pm
Forum: Coding Questions
Topic: Set Webgadget border style?
Replies: 10
Views: 2294

Thanks for the quick reply. Doesn't work here though (Win ME).

Also, how do you set the focus on a webgadget? I can't do that either.

Edit: oh, another one. Checking it out now.

Edit2: No the second one doesn't work either.
by hagibaba
Tue Apr 22, 2008 8:11 pm
Forum: Coding Questions
Topic: Set Webgadget border style?
Replies: 10
Views: 2294

Set Webgadget border style?

Does anyone know if you can change the border style around a webgadget? It defaults to borderless. I want a double line sunken border. I have a container gadget for the border currently.
by hagibaba
Mon Apr 21, 2008 6:50 pm
Forum: Coding Questions
Topic: PanelGadget Question
Replies: 23
Views: 4055

The handle of the static panel item is placed in the lParam field by Purebasic, not by Windows
This is what I was wondering. In that case I will continue to use GetPanelID, nice to know of the GetParent_() method. Thanks srod.
by hagibaba
Sun Apr 20, 2008 2:30 pm
Forum: Coding Questions
Topic: PanelGadget Question
Replies: 23
Views: 4055

No problem, I was looking for a simple solution. Any variation of your SetTabId and GetTabId is the way to go.

It's actually not documented what I ended up with in GetPanelID, ie. that tc\lParam holds the panel item handle by default. I'm not sure if this would work on all PCs though. Maybe I ...
by hagibaba
Sat Apr 19, 2008 8:51 pm
Forum: Off Topic
Topic: thefool banned?
Replies: 53
Views: 8749

I have no sympathy for him and agree with whoever banned him.

I have never see him help anyone or post code, he always has been in Off-topic swearing and making stupid comments.
by hagibaba
Sat Apr 19, 2008 8:30 pm
Forum: Coding Questions
Topic: PanelGadget Question
Replies: 23
Views: 4055

First of all, thanks for all the replies.

I looked at all of them and they all look like solutions.

I thrashed around with EnumChildWindows_() for ages but it has a big problem, it also enums gadgets contained in the panel items/tabs, causing too much confusion for me.

I tried out the ...
by hagibaba
Fri Apr 18, 2008 10:30 pm
Forum: Coding Questions
Topic: PanelGadget Question
Replies: 23
Views: 4055

No, that doesn't help.

The problem is that I need to open multiple new panels with editors and identify which editor belongs to what panel. When I close a panel, the panel item indexs are automatically reordered by PB so an index that used to be correct won't be any more.

I got around this by ...
by hagibaba
Fri Apr 18, 2008 8:06 pm
Forum: Coding Questions
Topic: PanelGadget Question
Replies: 23
Views: 4055

Sorry, I should have given a bit more information. I meant dynamically. I'm currently using this method... Thanks to netmaestro I can use his method instead, which looks simple and bulletproof.

Structure FILE
Filename.s
Editor.l
Panel.l
EndStructure

Global NewList FileList.FILE()
Procedure ...
by hagibaba
Fri Apr 18, 2008 3:04 pm
Forum: Coding Questions
Topic: PanelGadget Question
Replies: 23
Views: 4055

PanelGadget Question

Is there any easy way to associate a panelgadget item with a gadget contained in the item?
by hagibaba
Thu Apr 17, 2008 2:35 am
Forum: Coding Questions
Topic: rich text editor examples?
Replies: 11
Views: 3396


PB's EditorGadget is a RichEdit control on Windows (class = "RichEdit20A" here on NT4).
So you can use any code written for RicheEdit controls, with #EM_* messages, #EN_* notifications, etc...

Yay! This is what I was hoping. Thanks gnozal.

Thanks for the tip Sparkie.

I'm now rewriting the ...
by hagibaba
Wed Apr 16, 2008 3:07 pm
Forum: Coding Questions
Topic: rich text editor examples?
Replies: 11
Views: 3396

I don't know much about the editor gadget. The help file doesn't even say it's a rich text gadget. Where can I find out more about the editor gadget? Is there a limit to how much text it can contain? I use the RichEdit dll for 2 reasons:
1. All the old code is written for the RichEdit window.
2. I ...
by hagibaba
Tue Apr 15, 2008 9:58 pm
Forum: Coding Questions
Topic: rich text editor examples?
Replies: 11
Views: 3396

Ok, here's a sane question... or is it?

How can I put a Win32 richedit window into a splitter gadget?

If OpenWindow(0, 0, 0, 230, 180, "SplitterGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))

#ListViewGadget = 1
#Splitter = 2

RichEditGadget ...