Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Text editor that looks like notepad

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 20th Mar 2009 07:42
Here You go it uses my (not done) text input function.

for anyone who know winapi:

i'm using popup menus and trackpopupmenu because i can't get info from a regular menu and the setmenu function so i did it this way.
and i use open/save file boxes from api and message boxes.

the one image is attached.


ignore the drawsliders function i havn't done anything with it yet



New Site! Check it out \/

Attachments

Login to view attachments
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 20th Mar 2009 07:48
The popup menu doesn't work for me. It just shows EDIT>

Otherwise, this looks pretty good.

Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 20th Mar 2009 07:55
hm odd.

it works for me. i'll check tomorro if it works on my parents desktop. try clicking a couple of times(if you didn't) i had some problems a few days ago like that where i had to click a few times but it when away so ithought it was just a weird fluke.


i attached a image of what it looks like for me.

just to show you.

New Site! Check it out \/

Attachments

Login to view attachments
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 20th Mar 2009 07:56
Oh, and for the flags you use for options, for example in the file dialog box, try and avoid using + for multiple flags. Use OR '|' instead:



Should be

FileBoxFlags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_LONGNAMES | OFN_HIDEREADONLY | OFN_NONETWORKBUTTON | OFN_ALLOWMULTISELECT

If the numbers are all different powers of 2, then the plus will be fine, but if any overlap, it will change the value of other bits.

4 + 6 = 10 but 4 | 6 = 6

Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 20th Mar 2009 07:58
oh whoops i knew i was supposed to use or i don't know why i put + lol thanks!

New Site! Check it out \/
Mulderman
21
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 20th Mar 2009 16:18
Save images as JPG instead BMP, JPG will be smaller, BMW takes ages to download.
Mulderman
21
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 20th Mar 2009 16:18
I mean BMP.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 20th Mar 2009 16:40 Edited at: 20th Mar 2009 16:40
? i couldn't even see the load bar for my download it finished before it showed it lol(i tried it)

New Site! Check it out \/
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 20th Mar 2009 22:09 Edited at: 20th Mar 2009 22:10
Hmm, after running it, I tried closing out of Dark Edit, but it gave me this:

Quote: "Access violation at address 00434977 in module 'darkedit.exe'. Read of address 00000004."


In fact, it didn't even let me hit ctrl!

I think something's goin wrong w/ using ur windows dll's!

~QJ
That's what they WANT you to think...
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 20th Mar 2009 22:42 Edited at: 20th Mar 2009 23:17
WHAT!? never seen that before. once again gimmy a minute and test on another computer to see real quick.

there my "my" windows dlls lol. but heres the only things i can think that might cause a error

not sure but could it be me using the menu item numbers 1 through 12 do that because the example i saw for dbp(where i learned this to use menus) show like 100 and up i didn't think it mattered so i use 1 through 12 could that cause a error?

and arn't the menus destroyed automaticly if there parent window is destroyed? if not that maybe the problem not sure though.

i will look into it quirky


Latch:

i think the reason the menu wasn't showing. if you are in the input function the menus don't work. (so if your type then click off the line then try the menu) and when you put your mouse over the menu does it pop out like a button?


Edit:

What programs were you running when it gave you the error quirky?

i don't know how it could cause a error to dark edit after it has already ended. hm

New Site! Check it out \/
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 21st Mar 2009 01:42
I was just using darkedit and Firefox. Are you using darkedit?

~QJ
That's what they WANT you to think...
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 21st Mar 2009 07:55
yes i am but i wanted to test it with the same programs that you had open so i could re invent the same envirment as you had

New Site! Check it out \/
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 21st Mar 2009 16:20
UPDATE ON MY ERROR!

Okay, I haven't restarted my computer yet ... But I tried running a program in Synergy Editor (the DbPro IDE) and it wouldn't work.

~QJ
That's what they WANT you to think...
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 21st Mar 2009 18:44
oh well let me know cuz i can't duplicate it

New Site! Check it out \/

Login to post a reply

Server time is: 2025-05-16 04:51:00
Your offset time is: 2025-05-16 04:51:00