Search found 47 matches

by DarthPuff
Wed Jun 30, 2004 10:16 am
Forum: Linux
Topic: RTF EditorGadget
Replies: 5
Views: 3554

Thanks ;) thats perfect... ^_^ now i can finish my program in record time... plus i took care of all the segfaults i was having... O_O Stage1 tarball of gentoo... didn't know what was up... turns out my CPU was OC'ed 50 mhz too high... strange...
by DarthPuff
Wed Jun 23, 2004 12:05 am
Forum: Linux
Topic: RTF EditorGadget
Replies: 5
Views: 3554

RTF EditorGadget

I'm trying to figure out how to format the editorgadget in linux so that I can display different text colors and such... ;) or bold... you know... In different places, I know how to do it in Windows using SendMessage but the Linux api (gtk1.2....) is stumping me ...
Thank You,
DarthPuff
by DarthPuff
Fri Jul 11, 2003 2:37 am
Forum: Announcement
Topic: TBC - Tokiwa BASIC gui in PureBasic
Replies: 17
Views: 8150

Hey Fred I understand command wrapping... o_O but what if its something like a bar in a menu... are you seriously going to make us reprogram a lil bar...
by DarthPuff
Thu Jul 10, 2003 12:56 pm
Forum: Windows
Topic: Window API + Button Processing
Replies: 7
Views: 4532

Thank you for the help ... but =P A lil more detail plzzzz... ;) I'm not to great with this stuff...
by DarthPuff
Thu Jul 10, 2003 8:57 am
Forum: Windows
Topic: Window API + Button Processing
Replies: 7
Views: 4532

Ahhh... =\ but what do I do after that... I send a message for #WM_COMMAND then I test in windowcallback() to see if its #BN_CLICKED... ???
by DarthPuff
Thu Jul 10, 2003 1:42 am
Forum: Windows
Topic: Window API + Button Processing
Replies: 7
Views: 4532

I don't think that will work... heres how I create buttons

ProcedureDLL ButtonG(GadgetID, WinID, X, Y, Width, Height, Text.s, Flag.s)
hWndMain = WinID

t=0
Repeat
sV.s=StringField(Flag.s,t,"|")
If sV.s<>""
Select sV.s
Case "#WS_CHILD"
lFlag.l=lFlag | #WS_CHILD
Case "#WS_VISIBLE"
lFlag.l ...
by DarthPuff
Wed Jul 09, 2003 2:14 pm
Forum: Windows
Topic: Window API + Button Processing
Replies: 7
Views: 4532

Window API + Button Processing

=\ How do I get if a button has been clicked...

Procedure WndProc(hWnd, uMsg, wParam, lParam)
result = #PB_ProcessPureBasicEvents
Select uMsg
Case #BN_CLICKED
ProcedureReturn 1
EndSelect
EndProcedure

ProcedureDLL GadgetI(GadgetID,WinID)
If Check
UpdateWindow_(WinID)
EndIf
SendMessage ...
by DarthPuff
Mon Jul 07, 2003 9:31 pm
Forum: Coding Questions
Topic: API + Buttons
Replies: 2
Views: 1409

=P I need a really reliable way of getting button presses... =\ has to be win api... i guess...
by DarthPuff
Mon Jul 07, 2003 9:08 pm
Forum: Coding Questions
Topic: API + Buttons
Replies: 2
Views: 1409

API + Buttons

=\ I was wondering how to use the WinAPI in order to see if a button has been clicked... I'm thinking I need to send it a message then process the PB events... but I dont know quite how...
by DarthPuff
Mon Jul 07, 2003 8:17 am
Forum: Coding Questions
Topic: Bug or Code Problem?
Replies: 0
Views: 826

Bug or Code Problem?

viewtopic.php?p=29761#29761

Ugh... I dunno if this is a bug or a code problem
by DarthPuff
Mon Jul 07, 2003 12:24 am
Forum: Coding Questions
Topic: WindowEvent()?
Replies: 9
Views: 2634

=\ I still don't have a clue about getting the pointer in this version... o_O I mean... once I get the pointer what do I do with it??? and how do I get it in PB... I understand pointers in C++ (but I prefer references)... ack...
by DarthPuff
Sun Jul 06, 2003 9:56 am
Forum: Coding Questions
Topic: WindowEvent()?
Replies: 9
Views: 2634

ACK... my lil function there isnt as reliable as I thought... it works I'd say 90% of the time... but unless I'm mistaken its missing some of the events... =\ you have anything that works better (without any kind of loop in the procedure... its murder for my main app ;)... =P)
by DarthPuff
Sun Jul 06, 2003 9:50 am
Forum: Coding Questions
Topic: WindowEvent()?
Replies: 9
Views: 2634

OH... and I was wondering if it was possible to find the main app windows address and make gadgets and stuff appear in it... =\ hehe...
by DarthPuff
Sun Jul 06, 2003 9:48 am
Forum: Coding Questions
Topic: WindowEvent()?
Replies: 9
Views: 2634

ProcedureDLL GadgetI(WinID)
If Check
UpdateWindow_(WindowID(WinID))
EndIf
Delay(1)
EventID.l = WindowEvent()
If EventID = #PB_Event_Gadget
ProcedureReturn EventGadgetID()
EndIf
EndProcedure

Success... this works... =\ but I would prefer one that doesn't drop my other program from 250 ...
by DarthPuff
Sat Jul 05, 2003 10:48 pm
Forum: Coding Questions
Topic: WindowEvent()?
Replies: 9
Views: 2634

Ack... So how would I go about doing that... =P