![]() |
Skull Custom Language Creator By ZS - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Discussion (https://litdev.uk/mybb/forumdisplay.php?fid=4) +--- Thread: Skull Custom Language Creator By ZS (/showthread.php?tid=38) |
RE: Skull Custom Language Creator By ZS - z-s - 04-03-2024 Litdev I converted code into graphics windows No ui is good I think we should have ldrichtextboxword in svb text box. RE: Skull Custom Language Creator By ZS - litdev - 04-03-2024 Hi ZS, I don't really use sVB, but it looks like it uses TextBox in its UI designer. It cannot have RichTextBox functionality, they are different things and it is not one of the controls available in sVB UI designer. To use a RichTextBox, as far as I can see you can use LD extension, maybe others, but not directly from sVB UI designer, unless you get it implement by sVB developer. This is one of the reasons I try to keep everything compatible with standard SB and use extensions that can interact with standard SB to add features rather than modify the default compiler or SmallBasicLibrary. sVB changes the compiler and basic functions with each version which makes interacting with non standard functionality (e.g. UI designer) in it through extensions impractical. Starndard SB doesn't change, which means writing extensions for it is worth the effort. What is the difficulty using GraphicsWindow? - I cannot see anything you are doing that cannot be done with GraphicsWindow. RE: Skull Custom Language Creator By ZS - z-s - 04-04-2024 Litdev How can we get caret x,y position in richtextbox. RE: Skull Custom Language Creator By ZS - litdev - 04-04-2024 Arhh, I was wondering when you were going to ask that! ![]() If you get the latest LitDev Beta (not sVB) then there is a new method LDControls.RichTextBoxMousePosition which returns the line text the cursor is at and the character number from the left. The reason for this way of doing it is handling scrollbar scrolling and line wrapping of longer lines. This is my test example - it is getting a bit complex, so ignore it if you want. It also has image button - put your own image in, TWLL943.000. RE: Skull Custom Language Creator By ZS - z-s - 04-05-2024 It helped but caret mean the line which write text in textbox RE: Skull Custom Language Creator By ZS - litdev - 04-05-2024 Yes, what do you want from caret position, do you mean the line text and column as I did for mouse over. Row number changes with word wrapping in rtb. RE: Skull Custom Language Creator By ZS - z-s - 04-05-2024 I want position of the last word was written so to add a list box there RE: Skull Custom Language Creator By ZS - litdev - 04-05-2024 So that is graphicswindow coordinates or maybe coordinates in RTB not position in the text, different things especially with scrolling. You are probably not going to be able to do everything SB IDEs do written in SB, some compromises will be needed, especially interface frills. Why not just put the listbox at the bottom for example. I don"t want to over clutter LD extension with very specific stuff, but I will think about this. Get core functionality working first. RE: Skull Custom Language Creator By ZS - litdev - 04-05-2024 ZS, I think these are generally useful. RichTextBoxCaretCoordinates and RichTextBoxCaretPosition added and uploaded to Beta LitDev extension, QJDK716.000. RE: Skull Custom Language Creator By ZS - z-s - 04-05-2024 Code: public Point getXYPoints() |