Jump to content
๐Ÿ’ŽYue๐Ÿ’Ž

Screen Full Windows, error.

Recommended Posts

I have a problem running in full screen, my findings is that if I set the same window size for the context, the error is fixed, however the Gui is not visible when I press the escape key.ย 

image.thumb.png.fa959fc19b3bfc3209aff224

Share this post


Link to post

Your code is probably overwriting the menu code.ย 

I doubt this is a problem with Leadwerks but your code. Maybe repost in a relevant board and include your code?ย 

Instead of setting the context, just use get and assign to a variableย 

Share this post


Link to post
8 hours ago, Angelwolf said:

Your code is probably overwriting the menu code.ย 

I doubt this is a problem with Leadwerks but your code. Maybe repost in a relevant board and include your code?ย 

Instead of setting the context, just use get and assign to a variableย 

window = Window:Create(title,0,0,1920,1080,Window.Fullscreen)


--Create the graphics context
context=Context:Create(window,0)
context:SetScale(1920,1080) -- Not Problem Full Screen, error Gui not visible.

ย 

Share this post


Link to post

Other sample.

ย 

local window = Window:Create("App",0,0,800,600)
local context = Context:Create(window)
context:SetScale(800,600) -- Quit line, show Gui. Fix Scren Full problem.
-- Not Set Scale Context, problem full screen.


local gui = GUI:Create(context)
local base = gui:GetBase()
base:SetScript("Scripts/GUI/Panel.lua")

x=20
y=20
local sep=30

widget = Widget:Label("Default",x,y,300,20,base)
y=y+sep

widget = Widget:Label("Left with border",x,y,300,20,base)
widget:SetStyle(LABEL_BORDER)
y=y+sep

widget = Widget:Label("Center with border",x,y,300,20,base)
widget:SetStyle(LABEL_BORDER + LABEL_CENTER)
y=y+sep

widget = Widget:Label("Right with border",x,y,300,20,base)
widget:SetStyle(LABEL_BORDER + LABEL_RIGHT)
y=y+sep

widget = Widget:Label("Center with border and vertical align",x,y,300,80,base)
widget:SetStyle(LABEL_BORDER + LABEL_CENTER + LABEL_MIDDLE)
y=y+90

widget = Widget:Label("Sometimes a label just has too much text to fit in its space. When this happens, just use the worwrap option!",x,y,300,80,base)
widget:SetStyle(LABEL_BORDER + LABEL_WRAP)
y=y+sep

while true do
        if window:Closed() then return end
        if window:KeyHit(Key.Escape) then return end
        
        while EventQueue:Peek() do
                local event = EventQueue:Wait()
                if event.id == Event.WidgetAction then
                        System:Print("WidgetAction")
                elseif event.id == Event.WidgetSelect then
                        System:Print("WidgetSelect")
                end             
        end
        
        context:Sync()
end


ย 

Share this post


Link to post

the problem is definitely here.

I will expose my case.

My computer has a gtx 1050 graphics card, this card lacks a vga port like the one the monitor has, so I get a vga to hdmi adapter.ย 

A few years ago the problem is that although the vga monitor was connected through the hdmi converter, I do not recognize the resolutions when starting the computer, as it appears in the minimum resolution, what I had to do was disconnect the converter and connect it again. With this I had two options or two groups of resolutions to select in the nvidia panel. ย One category of HD, and another of PC.

With the passing of time the updates of the controller nvidia became evident, and to turn off the computer, it was not necessary to reconnect the converter to turn it on, recognized the last configuration saved previously.ย 

Today I updated again the controller nvidia, the surprise was that in hd only recognizes me about three screen resociones and in the pc several, and leadwerks works well in full screen mode.

Now, if I disconnect the converter and connect it, new screen resolutions appear in the HD category and at this point Leadwerks is damaged in full screen mode.ย 

Anybody have any idea why this happens?

Translated with www.DeepL.com/Translator

image.thumb.png.c05431ca124f6bba4cc3e9706cecd213.png

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

ร—
ร—
  • Create New...