Oxygen Basic
Programming => Problems & Solutions => Topic started by: Frankolinox on March 10, 2014, 08:21:34 AM
-
lalala :)
-
Frank
to be honest i am not sure what you ask ???
If you mean create window without register class ...it is not possible
you must fill class structure in order to set class arguments
BUT as you know with include functions you can build any window with
Oxygen Basic on very easy way
( i think that you already tried awinh.inc or any other includes)
;)
-
Frank
There is no need for WinMain and you know that...
do you ever look in my awinh.inc file there is no Winmain or comand line ..there is no need
for that .
I really don't know what else to say... ::)
-
Aurel,
Read deeper! You have misunderstood the question.
-
Read deeper! You have misunderstood the question.
where?
I don't get it what he mean under inst,or winmain and what he
mean to remove from class registering ::)
-
I don't get it what he mean under inst,or winmain and what he
mean to remove from class registering
and this is the reason to read a little bit better ;D
-
so if you have a clue what is all about
do you can explain? :o
Why doesn't use the chance to make it without extra call winmain() function
And who tell you that you must use winmain()...
really Frank i don't know why you insist on winMain() ???
-
so if you have a clue what is all about
do you can explain? :o
it means: this form of "Winmain" isn't good for me. I would like have an old classic " WinMain". ;D ;D
-
Oh boy... ;D
-
simple example:
'new skeleton - awinh2.inc
$ filename "Bone.exe"
include "RTL32.inc"
include "awinh2.inc"
'#lookahead
INT win ' window handler
INT x=100,y=100,w=640,h=480 ' window sizes
INT winStyle = WS_OVERLAPPEDWINDOW ' window style
INT b1ID = 100 ' button 1 ID
INT hButton1 ' button handler
INT edit1,ed1ID=200
$ CRLF = chr(13)+chr(10) ' carriage ret/line feed
'create window
win = SetWindow("New Window",x,y,w,h,0,winStyle)
'create button
hButton1 = SetButton (win,4,4,80,24,"OPEN",0,0x200,b1ID)
'create editbox - singleLine
edit1 = SetEditBox (win,100,4,100,24,"Edit 1",0x50004000,0x200,ed1ID)
'message loop
WHILE GetMessage(wm,0,0,0)>0
TranslateMessage wm
DispatchMessage wm
WEND
'main callback function
Function WndProc(sys hwnd,wmsg,wparam,lparam) as sys callback
Select wmsg
case WM_DESTROY
PostQuitMessage 0
End select
'ret default
Return DefWindowProc(hwnd,wmsg,wparam,lparam)
End Function
' [[[[[[[[[ PROGRAM FUNCTIONS / SUBS ]]]]]]]]]]]]]]]]]]]]]]]]]
-
hello, where is awinh2.inc?
-
Hi Nicola,
There is an awinh3 example in ProjectsB\Scintilla\
It uses awinh.inc
-
Hi.
I saw in the directory you pointed out to me, but I only found awinh.inc and awinh1.inc. :-\
I tried to include awinh.inc, but it works only after compiling the program, not directly.
An error comes out with awinh1.inc ... :(
-
awinh.inc is an effort from a member no longer with us and based on early versions of O2. I would focus on using Charles approved includes.
-
I adapted awinh.inc to use o2's corewin, so you have access to the major part of Windows API functions.
Asciedit3.o2bas is quite a good looking GUI, with plenty of bells and whistles, and uses Scintilla for the edit window, so I think you could learn quite a lot from this project of Aurel's.
But most of our GUI and Opengl demos use WinUtil (including corewin) as the base code.
PS Awinh.inc is not yet 64bit compliant
-
:D
Very well. thank you
-
The advantage RichEdit has over Scintilla is that it is part of Windows and supports Unicode.
The author of MASM BASIC did his IDE using the Richedit control.
RichEdit IDE Plugin (https://retrobasic.allbasic.info/index.php?topic=538.msg4171#msg4171)
Faster rich edit syntax highlighting (http://bcbjournal.org/articles/vol3/9910/Faster_rich_edit_syntax_highlighting.htm)
-
Has anyone thought of doing an O2 plugin for MS Visul Code IDE which is free and open source?
Add Visual Studio editor support for other languages (https://docs.microsoft.com/en-us/visualstudio/ide/adding-visual-studio-editor-support-for-other-languages?view=vs-2019)
-
My aim is for o2 to be self-sufficient in all its tools. Also to provide easily adaptable components such as parsers, and Window frames of course.